1 2009-09-04 Eric Blake <ebb9@byu.net>
3 Improve wording about what goes before AC_INIT.
4 * doc/autoconf.texi (Initializing configure): Update wording.
5 (Versioning) <AC_PREREQ>: Remove misleading text, to match
8 Reported by NightStrike, with input from Ralf Wildenhues.
10 2009-09-04 Thomas Jahns <jahns@dkrz.de> (tiny change)
12 Fix illegal tab character in Fortran source.
13 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
14 multiple spaces; regression introduced 2008-10-23.
18 2009-08-22 Romain Lenglet <romain.lenglet@laposte.net>
20 Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
21 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
22 versions of Erlang/OTP with an erlang:stop() function that doesn't
25 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27 Drop unneeded line in Eunit test.
28 * tests/autotest.at (Erlang Eunit unit tests): Do not copy
31 Fix build dependencies for Erlang macro files.
32 * lib/freeze.mk (autotest_m4f_dependencies): Add
33 $(src_libdir)/autotest/specific.m4.
34 * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
36 2009-09-19 Paolo Bonzini <bonzini@gnu.org>
38 Use a separate program to test whether the compiler works.
39 * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
40 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
41 (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
42 (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
43 works", before exiting.
44 (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
45 remove the "whether the xyz compiler works" message, use
46 conftest$ac_cv_exeext instead of $ac_file.
47 (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
48 the null program, and clean conftest.out only after
49 _AC_COMPILER_EXEEXT_CROSS.
50 (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
51 (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
53 2009-08-18 Bruno Haible <bruno@clisp.org>
55 Document Solaris tr range and NUL limitations.
56 * doc/autoconf.texi (Limitations of Usual Tools): Mention that
57 Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
60 2009-08-14 Eric Blake <ebb9@byu.net>
62 Simplify version control metadata.
64 * bin/.cvsignore: Likewise.
65 * config/.cvsignore: Likewise.
66 * doc/.cvsignore: Likewise.
67 * lib/.cvsignore: Likewise.
68 * lib/autoconf/.cvsignore: Likewise.
69 * lib/Autom4te/.cvsignore: Likewise.
70 * lib/autoscan/.cvsignore: Likewise.
71 * lib/autotest/.cvsignore: Likewise.
72 * lib/emacs/.cvsignore: Likewise.
73 * lib/m4sugar/.cvsignore: Likewise.
74 * man/.cvsignore: Likewise.
75 * tests/.cvsignore: Likewise.
76 * bin/.gitignore: Likewise.
77 * build-aux/.gitignore: Likewise.
78 * config/.gitignore: Likewise.
79 * doc/.gitignore: Likewise.
80 * lib/.gitignore: Likewise.
81 * lib/autoconf/.gitignore: Likewise.
82 * lib/Autom4te/.gitignore: Likewise.
83 * lib/autoscan/.gitignore: Likewise.
84 * lib/autotest/.gitignore: Likewise.
85 * lib/emacs/.gitignore: Likewise.
86 * lib/m4sugar/.gitignore: Likewise.
87 * man/.gitignore: Likewise.
88 * tests/.gitignore: Likewise.
89 * .gitignore: Consolidate all rules into one file.
91 Normalize remaining copyright lines.
92 * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
94 * README-hacking: Likewise.
96 * lib/Autom4te/ChannelDefs.pm: Likewise.
97 * lib/autoconf/fortran.m4: Likewise.
98 * lib/autoconf/general.m4: Likewise.
99 * lib/autoconf/lang.m4: Likewise.
100 * lib/autotest/general.m4: Likewise.
101 * maint.mk: Likewise.
102 * tests/compile.at: Likewise.
104 Improve copyright updating.
105 * build-aux/update-copyright: Resynchronize from upstream.
106 * maint.mk (update-copyright): Simplify based on gnulib.
107 (update-copyright-env): New variable.
108 * cfg.mk (update-copyright-exclude-regexp): Delete.
109 (update-copyright-env): New override.
110 * .x-update-copyright: New file.
111 * lib/Autom4te/Makefile.am: Add copyright.
112 * lib/Autom4te/Channels.pm: Revert copyright update to upstream
114 * lib/Autom4te/Configure_ac.pm: Likewise.
115 * lib/Autom4te/FileUtils.pm: Likewise.
116 * lib/Autom4te/Struct.pm: Likewise.
117 * lib/Autom4te/XFile.pm: Likewise.
120 * AUTHORS: Include 2009 in copyright.
121 * lib/Autom4te/C4che.pm: Likewise.
122 * lib/Autom4te/Channels.pm: Likewise.
123 * lib/Autom4te/Configure_ac.pm: Likewise.
124 * lib/Autom4te/FileUtils.pm: Likewise.
125 * lib/Autom4te/General.pm: Likewise.
126 * lib/Autom4te/Request.pm: Likewise.
127 * lib/Autom4te/Struct.pm: Likewise.
128 * lib/autoconf/Makefile.am: Likewise.
129 * lib/autoconf/autoconf.m4: Likewise.
130 * lib/autoconf/autoscan.m4: Likewise.
131 * lib/autoconf/autoupdate.m4: Likewise.
132 * lib/autoconf/functions.m4: Likewise.
133 * lib/autoconf/libs.m4: Likewise.
134 * lib/autoconf/oldnames.m4: Likewise.
135 * lib/autoconf/types.m4: Likewise.
136 * lib/autoscan/Makefile.am: Likewise.
137 * lib/autoscan/autoscan.pre: Likewise.
138 * lib/autotest/Makefile.am: Likewise.
139 * lib/autotest/autotest.m4: Likewise.
140 * lib/emacs/autoconf-mode.el: Likewise.
141 * lib/emacs/autotest-mode.el: Likewise.
142 * lib/freeze.mk: Likewise.
143 * lib/m4sugar/foreach.m4: Likewise.
144 * man/Makefile.am: Likewise.
145 * tests/atlocal.in: Likewise.
146 * tests/autoscan.at: Likewise.
147 * tests/foreign.at: Likewise.
148 * tests/fortran.at: Likewise.
149 * tests/mktests.sh: Likewise.
150 * tests/semantics.at: Likewise.
151 * tests/suite.at: Likewise.
152 * tests/wrapper.as: Likewise.
154 Prepare to bulk update copyright years.
155 * build-aux/update-copyright: New file.
156 * cfg.mk (gnulib-update): Sync it from gnulib.
157 (update-copyright-exclude-regexp): New variable.
158 (web-manual): Move...
159 * maint.mk (web-manual): ...here, to match gnulib.
160 (update-copyright): New target, copied from gnulib's
161 maint.mk (it would be nice to sync this file...).
162 (build_aux): New macro.
163 (VC_LIST, emit_upload_commands): Use it.
164 * build-aux/texinfo.tex: Resynchronize from upstream.
165 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
167 * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
169 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
171 Fix testsuite log capturing for tests 183 and 186.
172 * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
173 testsuite log file for AT_CAPTURE_FILE.
175 2009-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
177 Ensure we do not regress with AC_CHECK_MEMBERS.
178 * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
179 AC_CHECK_MEMBERS fix.
180 (AC_CHECK_MEMBER): New test group.
182 2009-08-10 Jeff Squyres <jsquyres@cisco.com> (tiny change)
184 Fix typo in AC_REQUIRE description.
185 * doc/autoconf.texi (Prerequisite macros): Fix typo.
187 2009-08-10 Paolo Bonzini <bonzini@gnu.org>
189 Fix description of the macro generated by AC_CHECK_MEMBERS.
190 * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
191 replacement. Reported by Bruno Haible.
193 2009-08-07 Romain Lenglet <romain.lenglet@laposte.net>
195 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
196 fail if the test module doesn't compile.
198 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
200 Use exit code to detect no occurrences with grep.
201 * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
203 2009-08-01 Romain Lenglet <romain.lenglet@laposte.net>
204 Paolo Bonzini <bonzini@gnu.org>
206 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
207 * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
208 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
209 variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
210 * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
212 * doc/autoconf.texi (Writing Testsuites): Document macro
214 * NEWS: Mention macro AT_CHECK_EUNIT.
216 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
217 Joel E. Denny <jdenny@clemson.edu>
219 Clarify comparison of echo, printf, and AS_ECHO*.
220 * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
221 give a reason why printf is better than echo. In printf's
222 entry, cross-reference echo's entry.
224 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
226 Add back AH_CHECK_HEADERS.
227 * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
228 * NEWS: Create new section.
230 2009-07-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 testsuite: avoid bogus hostname match from inner test logs.
233 * tests/autotest.at (Hard fail): Check more restrictively for
234 passed tests, so that hostnames recorded in the log file do not
236 Report by Ludovic Courtès.
238 2009-07-26 Eric Blake <ebb9@byu.net>
240 Release Version 2.64.
241 * NEWS: Mention the release.
242 * README: This release is stable.
243 * HACKING (release): Use dist-xz, not dist-lzma.
245 Document some optional features in INSTALL.
246 * doc/install.texi (Basic Installation): Mention that INSTALL is
247 generic, and that not all packages implement all features.
248 Mention 'make distcheck' for maintainers, and 'make installcheck'
249 for users. Mention the GNU Coding Standards.
250 (Installation Names): Mention DESTDIR vs. 'make prefix= install'
251 as ways to alter the configuration, with caveats of each. Move
252 --program-prefix discussion...
253 (Optional Features): ...here. Mention --enable-silent-rules and
256 Basic improvements to INSTALL.
257 * doc/install.texi (Basic Installation): Use better markup.
258 (Multiple Architectures): Introduce the term VPATH.
259 (Installation Names): Mention that --prefix must be absolute.
260 * doc/autoconf.texi (Preset Output Variables)
261 (Installation Directory Variables): Consistently refer to GNU
264 Update some upstream files.
265 * build-aux/config.guess: Resynchronize from upstream.
266 * build-aux/config.sub: Likewise.
267 * build-aux/texinfo.tex: Likewise.
268 * build-aux/vc-list-files: Likewise.
269 * doc/standards.texi: Likewise.
271 2009-07-25 Eric Blake <ebb9@byu.net>
273 Recognize new m4sugar keywords.
274 * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
275 m4_define_default, m4_defun_init, m4_defun_once.
276 (autoconf-font-lock-keywords): Likewise.
278 Require m4 1.4.6, and fix testsuite to support this version.
279 * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
280 regexp it can't handle.
281 * NEWS: Mention minimum version bump.
283 * README-hacking: Likewise.
284 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
285 * tests/tools.at (autom4te --trace and whitespace): Update test so
286 still work with older m4 line numbers.
287 * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
288 Reported by Ralf Wildenhues.
290 2009-07-25 Bruno Haible <bruno@clisp.org>
292 Clarify autom4te debugging tips.
293 * doc/autoconf.texi (Debugging via autom4te): Fix example from
294 previous commit, and add clarification.
296 2009-07-25 Eric Blake <ebb9@byu.net>
298 Document some autom4te debugging tips.
299 * doc/autoconf.texi (Debugging via autom4te): New node.
300 Suggested by Bruno Haible.
303 * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
305 Let autoheader see through m4 macros in AC_DEFINE.
306 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
308 * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
309 for using the macro in a template file.
310 * tests/tools.at (autoheader and macros): New test.
311 * NEWS: Mention this.
312 Reported by Bruno Haible.
314 Improve NEWS wording.
315 * NEWS: Use more accurate statement.
316 Suggestedy by Ralf Wildenhues.
318 2009-07-24 Eric Blake <ebb9@byu.net>
320 Fix AS_EXIT for FreeBSD sh.
321 * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
322 shell function, since $? is not reliable on function entry.
323 (_AS_EXIT_PREPARE): Simplify to assume argument.
324 Reported by Ralf Wildenhues.
326 2009-07-23 Eric Blake <ebb9@byu.net>
328 Run more tests under Solaris.
329 * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
330 group when passing over syntax checks.
332 2009-07-23 Romain Lenglet <romain.lenglet@laposte.net>
334 Clean up temporary files generated by Erlang macros.
335 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
336 (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
337 (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
338 erlang_cv_* cache variables into ac_cv_erlang_*.
339 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
340 files generated by Erlang compiler.
341 * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
343 * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
345 * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
346 generated Erlang tests; they are all hand-tested.
348 Add autotests for Erlang macros.
349 * tests/erlang.at: Added tests for all macros in erlang.m4.
350 * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
352 * tests/suite.at: Likewise.
353 * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
354 test for extension of Erlang files.
355 (Multiple languages): Use correct m4 quoting.
356 * NEWS: Mention this.
358 2009-07-22 Eric Blake <ebb9@byu.net>
360 Fix test of autom4te from stdin.
361 * tests/tools.at (autom4te cache locking): Make stdin request
362 explicit, so that --force is properly used.
364 2009-07-16 Eric Blake <ebb9@byu.net>
366 Don't hide leading space in autom4te --trace output.
367 * bin/autom4te.in (handle_traces): Don't flatten leading and
368 trailing space, since tracing spacing bugs can be useful.
369 * tests/tools.at (autom4te --trace and whitespace): New test.
371 2009-07-13 Eric Blake <ebb9@byu.net>
373 Document that $srcdir can be used during configure.
374 * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
376 Reported by Monty Taylor.
378 2009-07-13 Eric Blake <ebb9@byu.net>
380 Disable asynchronous job notification for parallel tests.
381 * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
382 mode, since zsh leaves it on after 'emulate sh'.
383 * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
384 job control options are not portable.
386 Guarantee that exit status trumps output matching.
387 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
389 * tests/autotest.at (Skip, parallel skip): Enhance tests.
391 Fix nits in recent patches.
392 * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
394 * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
396 (Introduction): Recommend m4 1.4.13.
398 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Use long option --gnu
401 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
403 Introduce AT_SKIP_IF and AT_FAIL_IF
404 * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
405 * doc/autoconf.texi (Autotest): Document them.
406 * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
407 AT_FAIL_IF, _AT_CHECK_EXIT): New.
408 (AT_CHECK): Use _AT_LINE_ESCAPED.
409 * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
411 * tests/local.at: Use AT_SKIP_IF.
413 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
415 Use m4 -g when available.
416 * m4/m4.m4: Unset POSIXLY_CORRECT during first test. Test for -g.
417 Warn user if he has POSIXLY_CORRECT set but -g is not supported.
418 * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
419 * bin/autom4te.in: Pass @M4_GNU@ to m4.
421 2009-07-13 Eric Blake <ebb9@byu.net>
424 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
426 (_AT_DECIDE_TRACEABLE): Likewise.
428 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
430 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
431 $at_trace_echo. Add new REASON argument.
432 (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
433 Use $at_check_filter_trace.
434 (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
435 (at_traceon): Initialize to ':'.
436 (at_traceoff): Remove, use 'set +x' instead throughout.
437 (at_check_filter_trace, at_trace_echo): New shell variables.
438 Initialize them if tracing is requested.
439 (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
441 2009-07-12 Paolo Bonzini <bonzini@gnu.org>
443 Move atlocal feature tests to configure
444 * configure.ac: Test for unsupported characters in files and
446 * tests/atlocal.in: ... and not here.
448 2009-07-09 Eric Blake <ebb9@byu.net>
451 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
452 creating file named -.
454 Fix testsuite under dash.
455 * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
456 (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
457 (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
458 (Functions Support, Functions and return Support)
459 (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
460 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
461 (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
462 (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
463 (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
464 (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
465 options during the testsuite run.
466 Reported by Ralf Wildenhues.
468 2009-07-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
470 Ignore messages on stderr when testing for the zsh issue.
471 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
473 2009-07-07 Eric Blake <ebb9@byu.net>
475 Skip parallel tests when zsh 'set -m' fails.
476 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
478 Reported by Ralf Wildenhues.
480 Make parallel testsuite more portable.
481 * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
482 instead open write descriptor in each group and read descriptor in
484 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
486 2009-07-03 Eric Blake <ebb9@byu.net>
488 Avoid syntax error in ash.
489 * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
490 errors on shells that don't recognize <>.
491 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
492 tests for this reason. Skip based on the shell to be tested,
493 not the shell driving the testsuite.
494 (parallel syntax error): Rearrange similar to previous patch.
495 (parallel test execution): Defer skip until after serial tests.
497 2009-07-02 Eric Blake <ebb9@byu.net>
499 Skip test on shells that can't catch syntax failure.
500 * tests/autotest.at (Syntax error): Skip test if shell aborts on
501 syntax error (AIX ksh88) or doesn't detect it (zsh).
502 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
504 Reported by Ralf Wildenhues.
506 2009-06-30 Jan Madzik <jmadzik@gmail.com> (tiny change)
507 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
509 Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
510 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
511 one character is output with `\c'; reset echo output state
512 if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
513 * doc/autoconf.texi (Limitations of Builtins): Document it.
514 * tests/m4sh.at (ECHO_C): New test.
517 2009-06-27 William Pursell <bill.pursell@gmail.com> (tiny change)
519 Fix grammaro in documenation.
520 * doc/autoconf.texi (Guidelines): Fix grammaro.
522 2009-06-17 Eric Blake <ebb9@byu.net>
524 Fix AC_CHECK_HEADER infloop for gcc.
525 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
526 (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
527 about obsoletion, to avoid infinite loop in gcc.
528 Reported by Ralf Wildenhues.
530 2009-06-15 Eric Blake <ebb9@byu.net>
532 Add m4_copy_force, m4_rename_force.
533 * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
535 * tests/m4sugar.at (m4@&t@_defn): Test them.
536 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
539 Suggested by Ralf Wildenhues.
541 Reinstate _AC_CHECK_HEADER_OLD for gcc.
542 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
543 (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
544 others used these undocumented macros.
545 Reported by Ralf Wildenhues.
547 2009-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 Fix concurrent autom4te.cache directory creation race.
550 * bin/autom4te.in: Do not error out if another `autom4te'
551 instance created the cache directory before we could.
553 2009-06-11 Steven G. Johnson <stevenj@alum.mit.edu>
554 and Eric Blake <ebb9@byu.net>
556 Create a file in test program when detecting cross-compilation.
557 * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
558 program that creates a file.
559 (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
560 and document why it's needed to robustly detect cross-compiling.
561 (AC_LANG_DEFINE): Copy implementation across similar languages.
562 * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
563 * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
565 * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
567 2009-06-11 Eric Blake <ebb9@byu.net>
569 Simplify AC_LANG(Fortran).
570 * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
571 77, which requires reordering portions of the file.
572 (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
575 Clarify m4_copy semantics.
576 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
578 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
580 2009-06-06 Eric Blake <ebb9@byu.net>
582 Improve documentation on trap pitfalls.
583 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
584 Posix 2008 requirement on trap, and dash bug in implementing it.
585 Mention various shell bugs with traps defined inside subshells.
586 Mention older bash limitation with single-command exit trap.
587 <set>: Mention another 'set -e' limitation.
588 Reported by Jens Schmidt.
590 2009-06-06 Jim Meyering <meyering@redhat.com>
592 Improve testsuite --help
593 * lib/autotest/general.m4: Correct the example in ./testsuite --help.
596 2009-06-06 Eric Blake <ebb9@byu.net>
598 Document fallback behavior of AC_PROG_LEX.
599 * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
600 why fallback is :, and that a --version check must be used to
601 determine whether flex was found.
602 Reported by Patrick Welche.
604 2009-05-28 Jim Meyering <meyering@redhat.com>
606 Fix syntax errors in autoconf.texi.
607 * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
610 2009-05-28 Romain Lenglet <romain.lenglet@laposte.net>
612 New AC_ERLANG_SUBST_ERTS_VER macro.
613 * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
614 * doc/autoconf.texi (Erlang Libraries): Document
615 AC_ERLANG_SUBST_ERTS_VER.
617 * AUTHORS: Update Romain Lenglet's email address.
619 Suggested by Ruslan Babayev.
621 2009-05-26 Eric Blake <ebb9@byu.net>
623 Sanitize more problematic environment variables.
624 * doc/autoconf.texi (Environment Variable Index): Add more
625 entries, particularly for precious variables and known culprit
626 variables. Needed to avoid overfull vbox.
627 (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
628 variables known to cause misbehavior.
629 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
630 known to cause problems.
632 Based on reports from Ilya Bobir and Joey Mingrone.
634 2009-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
636 Document VPATH = $(variable) issue in VPATH chapter.
637 * doc/autoconf.texi (Variables listed in VPATH): New node.
638 (Top, VPATH and Make): Adjust menus.
639 (Build Directories): Refer to it.
640 Prompted by report from Bruno Haible.
642 2009-05-19 Eric Blake <ebb9@byu.net>
644 Update uses of all-permissive license.
645 * ChangeLog: Relicense under GPL.
646 * ChangeLog.0: Likewise.
647 * ChangeLog.1: Likewise.
648 * ChangeLog.2: Likewise.
650 * m4/m4.m4: Use latest wording of FSF all-permissive license.
651 * m4/make-case.m4: Likewise.
652 * doc/install.texi: Likewise.
653 * tests/statesave.m4: Relicense to match rest of testsuite; this
654 file does not need all-permissive license since it is not designed
655 for reuse by other packages.
656 * BUGS: Relicense under all-permissive license.
660 * README-alpha: Likewise.
661 * README-hacking: Likewise.
664 Update some upstream files.
665 * build-aux/config.guess: Resynchronize from upstream.
666 * build-aux/gnupload: Likewise.
667 * build-aux/vc-list-files: Likewise.
668 * build-aux/texinfo.tex: Likewise.
669 * doc/gendocs_template: Likewise.
671 Don't mention undocumented interface in NEWS.
672 * NEWS: Correct earlier entry about AS_FOR.
674 2009-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
676 New manual section `Parallel Make'.
677 * doc/autoconf.texi (Parallel Make): New node, document NetBSD
679 (Top, Portable Make): Adjust menus.
681 2009-05-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
683 testsuite: skip `Multiple languages' test without C++ compiler.
684 * tests/compile.at (Multiple languages): Skip test on systems
685 without a C++ compiler.
686 Report by Jim Meyering.
688 2009-05-13 Eric Blake <ebb9@byu.net>
690 Document zsh bug with empty commands.
691 * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
692 more problems with $?.
694 2009-05-11 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
696 Also try X11R7 when looking for X11 files, for NetBSD.
697 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
698 with X11R7 in the name.
700 2009-05-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
702 Limit stderr logging for C compiler version.
703 * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
704 internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
705 an optional additional argument to limit the number of lines of
706 stderr output logged, defaulting to 10.
707 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
708 _AC_DO_LIMIT for capturing compiler version output. Also test
709 -qversion, for the IBM xlc compiler.
710 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
712 Report by Christian Rössel and John R. Cary against Libtool.
714 2009-04-24 Eric Blake <ebb9@byu.net>
716 Fix quoting of m4 macros in AT_CHECK.
717 * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
718 escapes, to avoid shell syntax errors caused by late macro
720 * NEWS: Document this change.
721 * tests/autotest.at (Metacharacters in command from M4 expansion):
724 manual: Use consistent spelling of here-document.
725 * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
726 (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
728 Reported by Ralf Wildenhues.
730 Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
731 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
732 undocumented semantics, where unbalanced " cannot be used in the
733 stdout/stderr argument.
734 (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
735 the text is used in double-quoted context.
736 * tests/autotest.at (unquoted output): New test.
737 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
738 shell expansions are handled.
740 Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
741 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
743 (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
744 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
747 * tests/autotest.at (Binary output, Cleanup): Adjust tests.
748 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
750 Reported by Ralf Wildenhues.
752 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
754 New test to ensure autom4te cache file locking works.
755 * tests/tools.at (autom4te cache locking): New test.
756 Report by Eric Blake.
758 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
760 manual: another grammar improvement.
761 * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
762 pronunciation of `FCFLAGS_f90'.
764 2009-04-23 Eric Blake <ebb9@byu.net>
766 Change FOO placeholder to use @var{text} instead.
767 * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
768 to AC_CONFIG_@var{ITEMS}.
769 * doc/autoconf.texi (config.status Invocation): Likewise.
770 (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
771 (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
773 2009-04-22 Eric Blake <ebb9@byu.net>
776 * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
778 * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
779 <m4_car, m4_cdr>: Improve documentation.
780 * tests/m4sugar.at (m4 lists): New test.
782 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
784 Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
785 * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
786 and AC_PROG_CC_C99 prefer extended over strict conformance modes.
787 Report by Vincent Lefèvre.
789 2009-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
791 Revert bogus change in last commit.
792 * doc/autoconf.texi (Initialization Macros): Revert change.
793 Spotted by Eric Blake.
795 manual: fix trivial grammar errors.
796 * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
797 (Limitations of Usual Tools, Pretty Help Strings)
798 (config.status Invocation): Fix `a' vs. `an' errors.
799 Report by Eric Blake.
801 2009-04-21 Eric Blake <ebb9@byu.net>
803 Shuffle maintainer-specific rules.
804 * Makefile.am (maintainer-check-tests): Delete.
805 (autom4te-update): Move...
806 * cfg.mk (autom4te-update): ...here.
807 (fetch): Depend on autom4te-update. Split...
808 (gnulib-update): ...into new rule. Import move-if-change from
810 * maint.mk (maintainer-distcheck): Absorb former maintainer-check
812 * build-aux/move-if-change: New file, undistributed.
813 * .gitattributes: Handle new upstream file.
814 * .gitignore: Ignore maintainer cruft.
815 * HACKING: Update maintainer instructions.
816 * build-aux/config.guess: Update from upstream.
817 * build-aux/config.sub: Likewise.
818 * build-aux/gendocs.sh: Likewise.
819 * build-aux/texinfo.tex: Likewise.
820 * doc/gendocs_template: Likewise.
821 * doc/standards.texi: Likewise.
823 2009-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
825 Sync autom4te perl modules from Automake.
826 * lib/Autom4te/Channels.pm: Sync from Automake.
827 * lib/Autom4te/FileUtils.pm: Likewise.
828 * lib/Autom4te/XFile.pm: Likewise.
830 Adjust channel definitions for new Automake `ordered' flag.
831 * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
832 `ordered' flag to zero for channels `fatal', `automake', and
833 `verb'. This has currently no effect on actual semantics but
834 avoids a consistency check needed for Automake's usage of the
837 manual: clarify m4_if synopsis.
838 * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
839 m4_if in the presence of more than three arguments.
841 Improve and clarify `config.status' usage documentation.
842 * doc/autoconf.texi (config.status Invocation): Fix markup in
843 synopsis. Use `tag' instead of `file' notation for the
844 non-option arguments, to be consistent with the documentation
845 of the AC_CONFIG_* macros.
846 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
847 use `tag' notation for non-option arguments.
848 Report by John Calcote.
850 2009-04-15 Eric Blake <ebb9@byu.net>
852 Test that autotest handles binary output.
853 * tests/autotest.at (Binary output): New test.
854 Suggested by Ralf Wildenhues.
856 Add stdout-nolog and ignore-nolog to AT_CHECK.
857 * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
858 (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
859 (AT_DIFF_STDOUT(ignore-nolog)): New macros.
860 * tests/autotest.at (Logging): New test.
861 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
864 Reported by Ralf Wildenhues.
866 Teach AT_CHECK about hard failures.
867 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
868 <at_fn_check_status, at_fn_group_postprocess>: Handle hard
870 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
871 AT_CHECK_NOESCAPE and exit status 99.
873 * tests/autotest.at (Hard fail, Cleanup): New tests.
875 2009-04-14 Eric Blake <ebb9@byu.net>
877 Fix yesterday's regression in AS_IF.
878 * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
879 branch; it is up to the user to avoid syntax errors.
880 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
882 2009-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
884 Add traces for AM_SILENT_RULES.
885 * lib/autom4te.in (Automake-preselections): Trace
888 2009-04-13 Eric Blake <ebb9@byu.net>
890 Improve documentation related to expanded-before-required.
891 * doc/autoconf.texi (Expanded Before Required): Add a case study.
892 (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
893 running a compile test will AC_REQUIRE the compiler check.
894 (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
895 (C Compiler) <AC_PROG_CC>: Mention the fact that only first
896 invocation of this macro checks for $EXEEXT, and that many other
897 macros use it via AC_REQUIRE.
898 Reported by Andreas Schwab.
900 Mention latest rules about make and set -e.
901 * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
902 that make must use set -e.
903 (Limitations of Builtins) <set>: Clarify more about set -e
906 Improve documentation about if exit status.
907 * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
908 exit status bugs don't affect modern targets.
909 Reported by Andreas Schwab.
911 Add cross-reference to new macros.
912 * doc/autoconf.texi (Text processing Macros) <m4_normalize>
913 <m4_strip>: Reference the new m4_ifblank.
914 Suggested by Mike Frysinger.
916 Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
917 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
918 (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
919 including a macro with an empty expansion.
920 * NEWS: Mention this.
921 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
923 Reported by Mike Frysinger.
925 Add m4_blank and friends.
926 * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
927 (m4_default_nblank_quoted): New macros.
928 * NEWS: Document them.
929 * doc/autoconf.texi (Conditional constructs): Likewise.
930 * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
931 Suggested by Mike Frysinger.
933 2009-04-13 Eric Blake <ebb9@byu.net>
935 Finish upgrade to GFDL 1.3.
936 * doc/autoconf.texi (copying): Use correct license; comment change
937 was missed on 2008-11-04.
939 2009-04-10 Eric Blake <ebb9@byu.net>
941 Test parallel handling of syntax error.
942 * tests/autotest.at (parallel syntax error): New test.
943 Suggested by Ralf Wildenhues.
945 2009-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
947 Document awk and config.status line length limitations.
948 * doc/autoconf.texi (Configuration Actions): The input to
949 config.status should have reasonable line length.
950 (Limitations of Usual Tools): Document IRIX, HP-UX awk input
952 Report by Bruno Haible.
954 Skip `Multiple languages' test if CC is a C++ compiler.
955 * tests/compile.at (Multiple languages): Before starting the
956 test proper, build and run a configure script that tests the
957 C compiler only, and skips the test if this is found to be a
959 Report by Eric Blake.
961 Note that AC_DEFUN is needed for aclocal.
962 * doc/autoconf.texi (Coding Style): Public third-party macros
963 should be AC_DEFUN'ed.
964 Report by John Calcote.
966 2009-04-10 Eric Blake <ebb9@byu.net>
968 Add undocumented _AS_CLEAN_DIR.
969 * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
971 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
973 * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
974 Reported by Ralf Wildenhues.
976 2009-04-09 Eric Blake <ebb9@byu.net>
978 Avoid problems caused by deleting in-use directory.
979 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
980 remove the contents of $at_group_dir, not the directory itself.
982 Fix regression in empty test.
983 * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
984 use in empty test. Fixes regression introduced 2009-04-06.
985 (_AT_CHECK): Undo fallback when a test is not empty.
986 (AT_CLEANUP): Expand AT_ingroup before deleting.
988 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
990 Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
991 * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
992 not crosscompiling to an obsolete system.
994 2009-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
996 Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
997 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
998 Automake relies on this macro.
1000 2009-04-06 Eric Blake <ebb9@byu.net>
1002 Reduce testsuite size.
1003 * tests/statesave.m4: New file.
1004 * tests/Makefile.am (EXTRA_DIST): Distribute it.
1005 * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
1006 repeating inline definition of AC_STATE_SAVE.
1007 (AT_CHECK_ENV): Factor code...
1008 (_AT_CHECK_ENV): ...into shell function.
1009 * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
1011 Handle shell comments in AT_CHECK.
1012 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
1013 test correctly. Latent bug in handling shell comment was first
1014 fixed 2008-11-20, but regressed two patches later.
1015 * tests/autotest.at (Shell comment in command): New test.
1016 * NEWS: Document the fix.
1018 Hard fail any test with syntax errors.
1019 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
1020 Guarantee test failure on syntax error, rather than inheriting
1021 status from previous test.
1022 * tests/autotest.at (Syntax error): New test.
1024 2009-03-31 Eric Blake <ebb9@byu.net>
1026 Beta Release Version 2.63b.
1027 * NEWS: Mention the release.
1028 * README: Clarify that this is a beta release.
1029 * build-aux/texinfo.tex: Synchronize from upstream.
1030 * .x-sc_trailing_blank: Exempt more upstream files.
1032 2009-03-30 Eric Blake <ebb9@byu.net>
1034 Fix testsuite failures under zsh.
1035 * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
1036 set by zsh -c 'emulate sh'.
1037 Reported by Ralf Wildenhues.
1039 For now, skip parallel tests under less-tested shells.
1040 * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
1041 (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
1042 (Fallacy, Skip, errexit, Long test source lines)
1043 (Debugging a successful test, Debugging script and environment)
1044 (Debugging a failed test, Using atlocal)
1045 (Choosing where testsuite is run): Adjust callers.
1046 (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
1047 under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined. Makes
1048 it easier to avoid testsuite hangs for users with dash or other
1050 (parallel test execution, parallel truth, parallel fallacy)
1051 (parallel skip, parallel errexit)
1052 (parallel autotest and signal handling): Use it.
1053 * BUGS: Mention this.
1055 2009-03-24 Andris Pavenis <andris.pavenis@iki.fi> (tiny change)
1057 Fix awk substitution of carriage returns on DJGPP.
1058 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
1059 generation of ac_cs_awk_cr.
1062 2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
1064 Work around cygwin bash igncr mode.
1065 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
1066 bash carriage returns if ac_cr lost \r from ``.
1068 Suggested by Eric Blake.
1070 2009-03-24 Eric Blake <ebb9@byu.net>
1072 Fix underquoted example in manual.
1073 * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
1074 Properly m4-quote #.
1075 * THANKS: Update spelling.
1076 Reported by Matěj Týč.
1078 2009-03-18 Eric Blake <ebb9@byu.net>
1080 Manual: mention more expr pitfalls.
1081 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
1082 Mention HP-UX limitation, and $ ambiguity.
1084 Reported by Jens Schmidt, in http://bugs.debian.org/466990.
1086 2009-03-17 Jim Meyering <meyering@redhat.com>
1089 * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
1091 2009-03-17 Eric Blake <ebb9@byu.net>
1093 Use test consistently in examples.
1094 * doc/autoconf.texi (Subdirectories, Caching Results)
1095 (Common Shell Constructs, Prerequisite Macros, Coding Style)
1096 (Changed Results, Particular Programs, Defining Symbols):
1097 Protect against arbitrary user strings.
1098 (Multiple Cases): Mention why $fstype does not need protection.
1099 Reported by Reuben Thomas.
1101 Improve confusing section names.
1102 * doc/autoconf.texi (Specifying Names): Rename node...
1103 (Specifying Target Triplets): ...to this.
1104 (Generic Programs): Adjust references.
1105 * doc/install.texi (System Type): Touch up formatting.
1107 Reported by Tim Freeman, in http://bugs.debian.org/312873.
1109 Remove historical inaccuracy.
1110 * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
1111 #!/bin/sh needing a space.
1112 Reported by Reuben Thomas.
1114 Recommend AS_HELP_STRING more prominently.
1115 * doc/autoconf.texi (External Software): Reduce mention of
1116 hand-written help strings.
1117 Reported by Reuben Thomas.
1119 2009-03-16 Eric Blake <ebb9@byu.net>
1122 * doc/autoconf.texi (Balancing Parentheses): Fix usage of
1124 Reported by Ralf Wildenhues, fix suggested by Karl Berry.
1126 2009-03-14 Eric Blake <ebb9@byu.net>
1128 Resync upstream files.
1129 * GNUmakefile: Run 'make fetch'.
1130 * build-aux/announce-gen: Likewise.
1131 * build-aux/config.guess: Likewise.
1132 * build-aux/config.sub: Likewise.
1133 * build-aux/gnupload: Likewise.
1134 * build-aux/texinfo.tex: Likewise.
1135 * build-aux/vc-list-files: Likewise.
1136 * doc/gnu-oids.texi: Likewise.
1137 * doc/standards.texi: Likewise.
1139 2009-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1141 New test for SunStudio `restrict' handling.
1142 * tests/c.at (AC_C_RESTRICT and C++): New test.
1143 Prompted by bug report from Rolf Vandevaart.
1145 2009-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1147 Manual: testsuite depends on package.m4.
1148 * doc/autoconf.texi (Making testsuite Scripts): In the example
1149 makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
1151 2009-03-02 Allan Caffee <allan.caffee@gmail.com> (tiny change)
1153 Fix a typo in comment for AS_LITERAL_IF.
1154 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
1155 out of date when this function was moved/renamed in 59ecd766.
1158 2009-03-02 Eric Blake <ebb9@byu.net>
1160 Improve wording for AS_ESCAPE.
1161 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
1163 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
1164 Reported by Ralf Wildenhues.
1166 2009-02-24 Eric Blake <ebb9@byu.net>
1168 Use pkgdatadir consistently.
1169 * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
1170 * lib/Makefile.am (edit): Likewise.
1171 * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
1172 (M4sugar): Use @pkgdatadir@, not @datadir@.
1173 * bin/autoheader.in ($datadir): Likewise.
1174 * bin/autom4te.in ($datadir): Likewise.
1175 * bin/autoreconf.in ($datadir): Likewise.
1176 * bin/autoscan.in ($datadir): Likewise.
1177 * bin/autoupdate.in ($datadir): Likewise.
1178 * bin/ifnames.in ($datadir): Likewise.
1179 * doc/autoconf.texi (Installation Directory Variables): Update
1180 example to be consistent; focus on $(bindir) as an autoconf
1181 variable, and mention that $(pkgdatadir) comes from automake.
1182 Reported by Reuben Thomas.
1184 2009-02-19 Eric Blake <ebb9@byu.net>
1186 Use m4_translit more efficiently in AS_ESCAPE.
1187 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
1188 of set separately from rest.
1189 (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
1191 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
1192 characters in translit request.
1193 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
1197 Mention recently documented macros.
1198 * NEWS: Update list of new documentation.
1200 2009-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1202 Add index for config.site.
1203 * doc/autoconf.texi (Site Defaults): Add index for config.site.
1205 Report by Stephen P. Schaefer.
1207 2009-02-12 Eric Blake <ebb9@byu.net>
1209 Fix m4_set speed regression introduced 2008-12-18.
1210 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
1211 creating larger argument on each iteration.
1212 (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
1213 (_m4_set_contents_2): Adjust all four-argument callers.
1215 2009-02-05 Eric Blake <ebb9@byu.net>
1217 Mention new AC_DEFUN_ONCE clients.
1218 * NEWS: Mention recent semantic changes.
1219 Reported by Ralf Wildenhues.
1221 2009-02-03 Eric Blake <ebb9@byu.net>
1223 Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
1224 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
1225 AC_DEFUN_ONCE, since this is a one-shot macro.
1226 (AC_PROG_INSTALL): Likewise.
1228 2009-02-03 Eric Blake <ebb9@byu.net>
1230 Mention that packagers should not pre-set CFLAGS.
1231 * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
1232 advice given by automake on handling variables reserved by GNU
1234 Reported by Karl Berry.
1236 Document lib64 in config.site.
1237 * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
1238 Mention use of lib64.
1240 Reported by Tom Browder, with help from Peter Breitenlohner.
1242 2009-01-28 Eric Blake <ebb9@byu.net>
1244 Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
1245 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
1246 AC_DEFUN_ONCE, since this is a one-shot macro.
1247 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1248 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
1249 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
1251 2009-01-28 Eric Blake <ebb9@byu.net>
1253 Reduce blank lines in AC_DEFUN_ONCE macros.
1254 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
1255 line when a defun_once macro is required.
1256 (_m4_defun_once): New helper macro, for less memory use.
1257 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
1259 Silence another false positive expand-before-require.
1260 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
1261 (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
1262 that caused a diversion change, not just diversion number.
1263 (m4_require): Factor...
1264 (_m4_require_check): ...into new macro, which also checks whether
1265 diversion that performed the expansion has been collected.
1266 * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
1267 Reported by Ralf Wildenhues.
1269 2009-01-28 Eric Blake <ebb9@byu.net>
1271 Fix AC_C_RESTRICT for Sun Studio 12 C++.
1272 * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
1273 __restrict__ rather than _Restrict, which still trips up Sun
1276 Reported by Rolf Vandevaart.
1278 2009-01-28 Eric Blake <ebb9@byu.net>
1280 Fix years in copyright notices.
1281 * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
1282 undocumented for now.
1283 * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
1285 (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
1286 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
1287 (AC_COPYRIGHT): Add undocumented third parameter.
1288 (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
1289 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
1290 * lib/autotest/general.m4 (AT_INIT): Likewise.
1291 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
1292 (AT_COPYRIGHT): Add undocumented third parameter.
1293 * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
1294 parameter; the generic copyright given by autotest is sufficient
1295 since we are the package that owns autotest.
1297 2009-01-27 Eric Blake <ebb9@byu.net>
1299 Use URLs in --help output, part 3: testsuite.
1300 * doc/autoconf.texi (Writing Testsuites): Mention autotest
1302 (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
1303 (Making testsuite Scripts): Document AT_PACKAGE_URL.
1304 * tests/Makefile.am (package.m4): Follow our own advice.
1305 * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
1306 package.m4. Enhance --help output.
1307 (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
1309 Use URLs in --help output, part 2: configure.
1310 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
1312 (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
1314 (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
1315 (_AC_INIT_HELP): Use it in './configure --help' output.
1316 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
1317 './config.status --help'. Bump copyright date.
1318 * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
1321 * tests/tools.at (autoheader): Adjust test.
1322 * tests/torture.at (@%:@define header templates)
1323 (Torturing config.status): Likewise.
1325 Use URLs in --help output, part 1: autoconf executables.
1326 * bin/autoconf.as (usage): Make output consistent with recent
1327 change in gnulib version-etc module.
1328 * bin/autoheader.in ($help): Likewise.
1329 * bin/autom4te.in ($help): Likewise.
1330 * bin/autoreconf.in ($help): Likewise.
1331 * bin/autoscan.in ($help): Likewise.
1332 * bin/autoupdate.in ($help): Likewise.
1333 * bin/ifnames.in ($help): Likewise.
1335 2009-01-27 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
1337 Quote traced macros passed from autom4te to M4.
1338 * bin/autom4te (handle_m4): Apply shell_quote to macro names.
1339 * tests/tools.at (autom4te --trace and unusual macro names): New
1343 2009-01-26 Eric Blake <ebb9@byu.net>
1345 Improve AC_DEFUN_ONCE semantics.
1346 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
1347 rather than warning, on second use, and make sure first use never
1348 occurs out of order.
1349 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
1351 * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
1352 (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
1353 * NEWS: Document this.
1354 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
1356 (Prerequisite Macros) <AC_REQUIRE>: Likewise.
1357 (Expanded Before Required): Likewise.
1358 (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
1359 Reported by Bruno Haible, with suggestion by Paolo Bonzini.
1361 2009-01-24 Eric Blake <ebb9@byu.net>
1363 Fix typos in recent patches.
1364 * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
1365 * doc/autoconf.texi (Expanded Before Required): Fix typos.
1366 Reported by Ralf Wildenhues.
1368 Revert change to AC_DIR_HEADER.
1369 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
1370 AC_HEADER_DIRENT no longer triggers a warning, and helps the user
1371 who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
1372 Reported by Paolo Bonzini.
1374 2009-01-22 Eric Blake <ebb9@byu.net>
1376 Silence a false positive expand-before-require case.
1377 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
1378 which a macro was provided.
1379 (m4_require): Compare diversion numbers, rather than m4_require
1380 nesting, when determining direct requires.
1381 * tests/m4sugar.at (m4@&t@_require: nested): Test it.
1382 Reported by Ralf Wildenhues, affecting Libtool.
1384 2009-01-21 Eric Blake <ebb9@byu.net>
1386 Fix out-of-order expansion with expand-before-require.
1387 * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
1388 required macro when issuing expand-before-require warning.
1389 * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
1390 (Expanded Before Required): New node.
1391 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
1392 * NEWS: Mention this fix.
1393 Suggested by Bruno Haible.
1395 Warn if macro is provided before indirectly required.
1396 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
1397 provided since last outermost defun.
1398 (_m4_defun_pro_outer): Empty the set.
1399 (_m4_require_call): Distinguish between direct and indirect
1400 requires, and remove required macros from the set.
1401 (m4_require): Check the set, in order to warn.
1402 * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
1403 test case for direct requires.
1405 2009-01-20 Eric Blake <ebb9@byu.net>
1407 Clean up some bugs caught by preliminary dependency validation.
1408 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
1409 AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
1410 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
1411 (_AS_SHELL_SANITIZE): Fix quoting bugs.
1413 2009-01-19 Eric Blake <ebb9@byu.net>
1415 Improve AC_REQUIRE documentation.
1416 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
1417 and mention interaction with AC_REQUIRE.
1418 (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
1419 ordering constraint bug, and how to fix it.
1420 * tests/m4sugar.at (m4@&t@_require: nested): New test.
1422 Speed up m4_require.
1423 * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
1424 always be defined, as either empty or a number.
1425 (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
1426 as a stack, rather than a one-shot macro.
1427 (_m4_require_call): Expect third argument to be pre-expanded.
1428 (m4_divert_require, m4_require): Adjust clients accordingly.
1429 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1431 2009-01-17 Eric Blake <ebb9@byu.net>
1433 Avoid underfull hbox.
1434 * doc/autoconf.texi (Installation Directory Variables): Reword to
1437 2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1439 Ignore `set -e'-related failure of NetBSD sh.
1440 * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
1441 fails to finish EXIT trap after set -e.
1443 2009-01-06 Eric Blake <ebb9@byu.net>
1445 Maintainer cleanups.
1446 * cfg.mk (web-manual): Use new feature of gendocs.
1447 (fetch): Fetch gendocs.
1448 * Makefile.am (EXTRA_DIST): Distribute new file.
1449 * doc/Makefile.am (EXTRA_DIST): Likewise.
1450 * .gitattributes: Ignore whitespace in upstream files.
1451 * HACKING (Other web updates): Update Free Software Directory
1453 (Upload): No longer mention xdelta.
1454 * maint.mk (xd-delta): Likewise.
1455 * build-aux/gendocs.sh: New upstream file.
1456 * doc/gendocs_template: Likewise.
1457 * build-aux/announce-gen: Resync from upstream.
1458 * build-aux/config.guess: Likewise.
1459 * build-aux/config.sub: Likewise.
1460 * build-aux/gnupload: Likewise.
1461 * build-aux/texinfo.tex: Likewise.
1463 2008-12-30 Eric Blake <ebb9@byu.net>
1465 Make it easier to track diversion bugs.
1466 * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
1467 internal macros, which are easier to trace than m4_builtin.
1468 (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
1469 (m4_undivert): Use them.
1470 (_m4_require_call): Likewise. Use fewer macros.
1471 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
1473 2008-12-26 Bruno Haible <bruno@clisp.org>
1475 Improve multiarch detection.
1476 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
1477 indicating a universal build more reliable.
1479 2008-12-28 William Pursell <bill.pursell@gmail.com> (tiny change)
1481 Use AS_CASE in documented example.
1482 * doc/autoconf.texi (Using the System Type): Use AS_CASE in
1483 example instead of raw case.
1485 2008-12-23 Eric Blake <ebb9@byu.net>
1487 Make m4_dumpdef more useful with M4 1.6.
1488 * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
1489 (m4_init): Install it for new enough m4.
1490 * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
1491 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1494 2008-12-24 Bruno Haible <bruno@clisp.org>
1496 Improve INSTALL for HP-UX.
1497 * doc/install.texi (Particular Systems): For HP-UX, also recommend
1498 -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
1501 2008-12-22 Bruno Haible <bruno@clisp.org>
1503 Improve INSTALL for Haiku.
1504 * doc/install.texi (Particular Systems): Add a recommendation
1505 which prefix to use on Haiku.
1507 2008-12-19 Eric Blake <ebb9@byu.net>
1509 Fix typo in previous commit.
1510 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
1513 Document some recently added macros.
1514 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
1516 * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
1517 <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
1519 (Set manipulation Macros) <m4_set_map_sep>: Likewise.
1520 * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
1521 * NEWS: Document new macros.
1523 2008-12-18 Eric Blake <ebb9@byu.net>
1525 Fix separator in m4_stack_foreach_sep.
1526 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
1528 * tests/m4sugar.at (m4@&t@_stack): Enhance test.
1530 2008-12-18 Eric Blake <ebb9@byu.net>
1532 Mention limitation of M4 1.4.x on builtin tokens.
1533 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
1534 ramification of M4 1.4.x's inability to pass builtin tokens
1535 through text macros.
1536 (Evaluation Macros) <m4_curry>: Likewise.
1537 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1538 * NEWS: Mention subtle change in m4_dumpdef semantics.
1540 Document m4_version_prereq.
1541 * doc/autoconf.texi (Number processing Macros)
1542 <m4_version_prereq>: Add documentation.
1544 Reported by Bruno Haible.
1546 2008-12-10 Jim Meyering <meyering@redhat.com>
1548 AC_HEADER_ASSERT: don't say assertions are disabled when they're not
1549 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
1550 report "checking whether to enable assertions... no", when they are
1551 in fact enabled. This is solely a bug in the output of configure.
1552 In spite of saying "no", NDEBUG was not defined in that case.
1553 Also, as noted by Eric Blake, leave assertions enabled upon
1554 --enable-assert=INVALID.
1556 2008-12-09 Eric Blake <ebb9@byu.net>
1558 Fix m4_location inside m4_wrap with m4 1.4.5.
1559 * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
1560 inside wrapped text if older m4 is detected.
1561 Reported by William Pursell.
1563 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
1564 and Eric Blake <ebb9@byu.net>
1566 Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
1567 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
1568 rather than treating it as a synonym for --disable-assert.
1569 * NEWS: Document the fix.
1571 2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
1573 Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
1574 treat --enable-assert and --disable-assert equivalently.
1575 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
1577 2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
1579 Fix some typos and grammatical errors in documentation.
1580 * doc/autoconf.texi: Clean up some bad use of English.
1582 2008-12-03 Eric Blake <ebb9@byu.net>
1584 Improve AC_STATE_SAVE.
1585 * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
1586 process by hoisting the uniqueness check into sed.
1587 * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
1590 2008-12-02 Eric Blake <ebb9@byu.net>
1592 Avoid MacOS readdir bug in testsuite.
1593 * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
1594 duplicated ls entries.
1596 Reported by Bruce Dugan and others.
1598 2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1600 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
1601 error messages about `set -m'.
1603 2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1605 Fix a couple of test failures with dash.
1606 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
1607 exit status of `cd'.
1608 * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
1609 regeneration, to avoid timing effects.
1611 2008-11-25 Eric Blake <ebb9@byu.net>
1614 * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
1615 * lib/autotest/general.m4 (AT_INIT): Use it.
1616 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
1617 * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
1618 * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
1621 Suggested by Paolo Bonzini.
1623 Add safety check for m4_expand vs. diversions.
1624 * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
1626 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
1629 2008-11-24 Eric Blake <ebb9@byu.net>
1631 Fix typo in AS_MESSAGE_LOG_FD patch.
1632 * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
1634 2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1636 More reliable signal handling in Autotest.
1637 * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
1638 Start parallel jobs in their own process group, enabling job
1639 control in the shell if possible, for better signal handling.
1640 Deal with INT, TERM, and HUP in the testsuite driver. In the
1641 parallel driver, propagate TSTP to jobs either as TSTP or as
1642 STOP (to avoid fork bombs with ksh).
1643 Inside the job processes, add PIPE handler to write back the
1644 job token, so the master process does not hang.
1645 Disable the parallel driver if job control is not provided or if
1646 trap does not understand signal names.
1647 * tests/autotest.at (parallel autotest and signals): New test,
1648 exercises INT, TERM, and PIPE, serial and parallel, with and
1649 without `make' in the loop.
1650 Kudos to Richard Stevens for writing APUE.
1652 2008-11-22 Eric Blake <ebb9@byu.net>
1654 Fix testsuite failure on Solaris.
1655 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
1656 failure status to 1.
1658 2008-11-21 Eric Blake <ebb9@byu.net>
1660 Clean up AS_MESSAGE_LOG_FD usage.
1661 * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
1662 (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
1663 (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
1665 (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
1666 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
1667 (AS@&t@_MESSAGE_FD): New test.
1668 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1669 Give more details about fd manipulation.
1670 (File Descriptor Macros): Describe M4sh defaults for the fds.
1672 2008-11-21 Eric Blake <ebb9@byu.net>
1674 Use shell function for AS_ERROR.
1675 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
1678 (_AS_LINENO_PREPARE): Break circular dependency.
1679 (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
1681 2008-11-21 Eric Blake <ebb9@byu.net>
1683 Fix typos in recent testsuite improvements.
1684 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
1686 * NEWS: Clarify the potential impact to users.
1687 * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
1689 (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
1690 (unusual file names): Test that the recent echo fix does not
1691 regress. Fix quoting bug that made the test a no-op.
1692 Reported by Paolo Bonzini and Ralf Wildenhues.
1694 2008-11-21 Eric Blake <ebb9@byu.net>
1696 Use modern m4sh constructs in autoconf.
1697 * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
1700 Change the semantics of AS_EXIT without argument.
1701 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
1703 (AS_ERROR): Guarantee non-zero status.
1704 * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
1705 we want non-zero status.
1706 * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
1707 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
1709 <AS_SET_STATUS>: Don't overly restrict implementation.
1710 (Printing Messages) <AC_MSG_ERROR>: Describe better default.
1711 Suggestions by Paolo Bonzini and Ralf Wildenhues.
1713 2008-11-21 Eric Blake <ebb9@byu.net>
1715 Add @anchors within Builtins and Usual Tools lists.
1716 * doc/autoconf.texi (Limitations of Builtins)
1717 (Limitatations of Usual Tools): Add anchors for tools called out
1718 by name. Adjust callers to narrow in on tool of interest.
1720 Move case statement style discussion to m4 quoting section.
1721 * doc/autoconf.texi (Limitations of Builtins): Move comparison of
1723 (Balancing Parentheses): ...to this new node.
1724 Suggested by Ralf Wildenhues.
1726 2008-11-20 Eric Blake <ebb9@byu.net>
1728 Factor more common code out of AT_CHECK into shell function.
1729 * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
1730 starts with -. Move preparations...
1731 (AT_INIT) <at_fn_check_prepare_trace>
1732 <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
1733 ...into these new shell functions.
1734 <at_fn_check_newline>: Inline into only caller.
1735 (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
1737 2008-11-20 Eric Blake <ebb9@byu.net>
1739 Handle version numbers as decimal, even if they start with 0.
1740 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
1741 interpreting leading zeros as octal.
1743 2008-11-20 Eric Blake <ebb9@byu.net>
1746 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1747 third and fourth arguments once.
1748 (_AT_CHECK): Don't re-expand expected output. Rearrange code for
1749 fewer scans of arguments.
1750 (AT_CHECK): Update caller.
1751 (AT_INIT) <at_fn_filter_trace>: Drop parameter.
1752 * tests/m4sugar.at (m4@&t@_split): Protect test with
1755 Fix XFAIL related to AT_CHECK.
1756 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1757 first argument once.
1758 (_AT_CHECK): Don't re-expand commands.
1759 * tests/autotest.at (Multiline command from M4 expansion): Remove
1761 * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
1762 * NEWS: Document the fallout.
1764 2008-11-20 Eric Blake <ebb9@byu.net>
1766 Reduce forks in AC_DEFINE.
1767 * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
1768 (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
1770 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
1771 * tests/torture.at (Substitute and define special characters):
1772 (Define to a 2000-byte string): Enhance tests to cover
1774 (@%:@define header templates): Enhance test to cover #.
1776 2008-11-20 Eric Blake <ebb9@byu.net>
1778 Improve m4_expand robustness, part 2.
1779 * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
1780 comments, by wrapping old implementation...
1781 (_m4_expand): ...as this, and renaming old core...
1782 (_m4_expand_): ...to this.
1783 (m4_text_box): Use lighter-weight _m4_expand.
1784 * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
1785 (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
1786 * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
1787 * tests/m4sugar.at (m4@&t@_expand): Enhance test.
1788 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
1789 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
1792 Improve m4_expand robustness, part 1.
1793 * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
1795 * tests/m4sugar.at (m4@&t@_expand): New test.
1797 2008-11-20 Eric Blake <ebb9@byu.net>
1799 Add m4_chomp, m4_esyscmd_s.
1800 * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
1802 * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
1804 (Text processing Macros) <m4_chomp>: Likewise.
1806 * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
1809 * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
1810 to make callers guarantee a match.
1811 (m4_init): Adjust caller.
1812 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
1813 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
1815 Describe different hacks for balancing ')' in case statements.
1816 * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
1817 exposition on various quoting styles.
1819 2008-11-20 Eric Blake <ebb9@byu.net>
1822 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
1823 (_AS_QUOTE): ...here, delete unused second paramenter, and factor
1825 (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
1827 2008-11-20 Alfred G. de Wijn <dwijn@iluvatar.eu.org> (tiny change)
1829 For consistency, make temporary variable match language name.
1830 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
1831 Match the save/test variables' names to the FFLAGS/FCFLAGS being
1835 2008-11-19 Eric Blake <ebb9@byu.net>
1837 Improve testsuite generation.
1838 * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
1839 (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@. Use
1842 2008-11-18 Eric Blake <ebb9@byu.net>
1844 Use fn for shell functions, func for autoconf CHECK_FUNCS.
1845 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
1847 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
1848 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
1849 (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
1850 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1851 (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
1852 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
1853 (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
1854 * lib/autotest/general.m4 (AT_INIT): Likewise.
1855 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
1856 (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
1857 (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
1858 (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
1859 * doc/autoconf.texi (Shell Functions): Likewise.
1861 2008-11-18 Eric Blake <ebb9@byu.net>
1863 Alter default value of AS_EXIT.
1864 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
1865 parameter be optional.
1866 (AS_EXIT): Use it to make better default.
1867 (_AS_DETECT_BETTER_SHELL): Use new default.
1868 * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
1869 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
1870 * tests/m4sh.at (AS@&t@_EXIT): Update test.
1871 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
1872 new default behavior.
1873 (Limitations of Builtins) <trap>: Adjust to use new default.
1874 * NEWS: Mention the semantic change.
1875 Suggested by Ralf Wildenhues.
1877 Update example to match actual Tru64 behavior.
1878 * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
1880 Reported by Ralf Wildenhues.
1882 Add AS_SET_STATUS, make AS_EXIT more efficient.
1883 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
1885 (AS_EXIT): Rewrite to avoid forks.
1886 (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
1887 (AS_PREPARE, _AS_PREPARE): Add new preparation.
1888 * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
1890 * NEWS: Mention new macro.
1891 * tests/m4sh.at (AS@&t@_EXIT): New test.
1892 (BASENAME_TEST): Sort.
1894 Document Tru64 bug with 'set -e'.
1895 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
1896 bug in mixing 'set -e' with 'trap .. 0'.
1897 Reported by Ralf Wildenhues.
1899 Document a Solaris /bin/sh bug with 'set -e'.
1900 * doc/autoconf.texi (Shell Functions): Mention the bug.
1902 2008-11-17 Eric Blake <ebb9@byu.net>
1904 Detect empty list in AS_FOR.
1905 * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
1907 * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
1908 Reported by Paolo Bonzini.
1910 2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1912 Use a different workaround for an automake quirk.
1913 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1914 (distclean_generic): New helper variable, to fool automake.
1915 ($(distclean_generic)): Depend on clean-local, to prevent
1916 the race in the two rules with accessing and removing
1918 Report by Eric Blake.
1920 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
1921 unbalanced parentheses from last change.
1922 Spotted by Eric Blake, fix suggested by Paolo Bonzini.
1924 Fix exit status of expr version of as_func_arith.
1925 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
1926 status of 1 of expr also as success, to avoid failure if the
1927 computation result is zero. Fixes test failures with IRIX sh,
1928 where the expr variant of as_func_arith is used.
1930 Do not use read-only variable $status.
1931 * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
1934 2008-11-15 Eric Blake <ebb9@byu.net>
1936 Use the new AS_FOR function.
1937 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
1938 abstraction for cleaner code.
1939 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1941 Add AS_FOR, undocumented for now.
1942 * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
1943 * tests/m4sh.at (AS@&t@_FOR): New test.
1944 Suggested by Paolo Bonzini.
1946 2008-11-13 Eric Blake <ebb9@byu.net>
1948 Optimize single-argument loop.
1949 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
1950 loop only has one argument.
1951 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1953 2008-11-13 Eric Blake <ebb9@byu.net>
1955 Fix AS_ESCAPE usage bugs.
1956 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1957 (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
1959 (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
1960 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
1961 caveat due to conditional AS_ESCAPE.
1962 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1964 2008-11-12 Eric Blake <ebb9@byu.net>
1966 Whitespace reduction in configure.
1967 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
1968 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
1970 (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
1973 2008-11-12 Eric Blake <ebb9@byu.net>
1975 Make M4sh, not autoconf, guarantee sane $SHELL.
1976 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
1978 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
1979 * doc/autoconf.texi (Initialization Macros): Document the effect
1981 * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
1982 Reported by Ralf Wildenhues.
1984 2008-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1986 Wrap keywords in `testsuite --list' output.
1987 * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
1988 avoid lint warnings from gawk, wrap keyword lists to stay below
1989 80 characters per line if possible.
1990 * tests/autotest.at (Keyword wrapping): New test.
1992 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
1994 * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
1997 2008-11-10 Eric Blake <ebb9@byu.net>
1999 Work around <=m4-1.4.9 bug in m4_format.
2000 * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
2001 (m4_init): Only use it in older m4.
2002 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
2003 m4_format bug in older m4.
2004 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
2005 Reported by Bob Proulx.
2007 2008-11-10 Eric Blake <ebb9@byu.net>
2009 Match upstream standards.texi.
2010 * doc/standards.texi: Resync from upstream.
2011 * doc/fdl-1.3.texi: Rename...
2012 * doc/fdl.texi: ...to this.
2013 * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
2015 * doc/autoconf.texi (GNU Free Documentation License): Likewise.
2016 * cfg.mk (fetch): Likewise.
2018 Yet more FDL 1.3 fallout.
2019 * NEWS: Mention manual license change.
2021 2008-11-10 Eric Blake <ebb9@byu.net>
2023 Avoid some regex uses.
2024 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
2025 than m4_bpatsubst to grab string prefix.
2026 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
2027 (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
2028 (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
2029 m4_bpatsubst to change bytes.
2030 (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
2031 m4_bmatch to find byte.
2032 (_AC_CONFIG_COMPUTE_DEST): New helper macro.
2034 Use more efficient macros in AC_CONFIG_SUBDIRS.
2035 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
2037 (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
2038 (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
2040 Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
2041 * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
2043 (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
2044 (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
2046 (AC_LIBSOURCES): Use m4_map_args.
2048 Use more efficient macros in AC_CHECK_TYPES.
2049 * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
2051 (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
2053 Use more efficient macros in AC_CHECK_HEADERS.
2054 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
2055 (AH_CHECK_HEADERS_DIRENT): Rename...
2056 (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
2057 argument, rather than a list.
2058 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
2059 Adjust callers to use m4_map_args_w.
2060 (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
2061 (_AC_CHECK_HEADER_ONCE): New helper macro.
2063 Use more efficient macros in AC_CHECK_FUNCS.
2064 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
2065 (_AH_CHECK_FUNC): ...and take only one argument, rather than a
2067 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
2069 (_AC_CHECK_FUNC_ONCE): New helper macro.
2070 (AC_REPLACE_FUNCS): Use m4_map_args_w.
2072 Use more efficient macro in AT_INIT.
2073 * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
2075 2008-11-10 Eric Blake <ebb9@byu.net>
2077 More FDL 1.3 fallout.
2078 * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
2079 * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
2081 * doc/fdl.texi: Delete.
2082 * doc/gnu-oids.texi: New upstream file.
2083 * doc/standards.texi: Resync from upstream.
2084 * doc/make-stds.texi: Likewise.
2085 * build-aux/announce-gen: Likewise.
2086 * build-aux/texinfo.tex: Likewise.
2088 2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
2090 Pass autoreconf -I to aclocal -I
2091 * bin/autoreconf.in (parse_args): Pass --include to aclocal.
2092 * doc/autoconf.texi (autoreconf Invocation): Updates for above.
2093 * NEWS: Document it.
2096 2008-11-10 Eric Blake <ebb9@byu.net>
2098 Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
2099 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
2100 * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
2101 the print workaround.
2102 Idea by Paolo Bonzini.
2104 2008-11-10 Eric Blake <ebb9@byu.net>
2106 Provide a section on all tools allowed in GNU Coding Standards.
2107 * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
2108 <wait>: Add section.
2109 (Limitations of Usual Tools) <awk>: Make table entry consistent.
2110 <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
2112 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
2114 Balance parentheses in _AC_CACHE_DUMP.
2115 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
2116 without introducing \).
2118 2008-11-07 Eric Blake <ebb9@byu.net>
2120 Further doc updates for AC_CHECK_HEADER change.
2121 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
2122 new default, and make it more obvious that using [-] is generally
2125 2008-11-07 Eric Blake <ebb9@byu.net>
2127 * ChangeLog: Enforce UTF-8 encoding.
2129 2008-11-06 Eric Blake <ebb9@byu.net>
2131 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
2132 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
2133 argument to speed up check.
2135 2008-11-06 Eric Blake <ebb9@byu.net>
2137 Speed up AC_CHECK_TYPE.
2138 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
2139 regex when enough arguments are present.
2141 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
2143 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
2144 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
2145 sequence when the program's stderr was empty, while providing a
2146 conftest.err file even in that case.
2147 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
2149 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
2151 Change `present but cannot be compiled' behavior to use compiler result.
2152 * NEWS: Document it.
2153 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
2154 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
2156 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
2158 2008-11-05 Eric Blake <ebb9@byu.net>
2161 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
2163 (_m4_split): Allow user control over separator.
2164 (m4_split): Adjust caller.
2165 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
2167 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
2168 (M4 loops): Test new interface.
2170 Use m4_set_map_sep in more places.
2171 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
2172 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
2173 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
2174 Enhance documentation.
2175 <m4_set_foreach>: Mention faster alternative.
2176 (Looping constructs) <m4_foreach>: Likewise.
2178 Unify m4_set_foreach and m4_set_map.
2179 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
2181 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
2182 (m4_set_map): Adjust callers.
2184 Use _m4_foreach in more places.
2185 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
2186 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
2188 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
2189 instead of m4_foreach or m4_map_args.
2191 Unify _m4_foreach and _m4_map.
2192 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
2193 (_m4_foreach): ...this.
2194 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
2195 (m4_map_args, m4_map_args_sep): Adjust callers.
2196 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
2197 (_m4_foreach): ...to this, overwriting old definition.
2199 2008-11-04 Eric Blake <ebb9@byu.net>
2201 Add m4_map_args_sep, undocumented for now.
2202 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
2203 (_m4_map): Change API to cover more of m4_map*.
2204 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
2205 (m4_map_args): Delete.
2206 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
2209 Improve m4_for performance.
2210 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
2211 avoid m4_define by some clients.
2212 (m4_for): Adjust caller.
2213 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
2214 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
2215 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
2216 (_m4_list_cmp): Likewise.
2218 2008-11-04 Eric Blake <ebb9@byu.net>
2220 Adjust expected output.
2221 * tests/torture.at (Missing templates): Reflect added quoting.
2222 Detected by Bob Proulx's buildbot.
2224 Reject arguments with leading =.
2225 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
2226 missing variable name, with fewer forks. Quote invalid arguments
2227 in message, in case they include spaces.
2228 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
2229 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
2230 * lib/autotest/general.m4 (AT_INIT): Likewise.
2231 * tests/base.at (configure arguments): Test this.
2232 Reported by Jeff Squyres.
2234 2008-11-04 Eric Blake <ebb9@byu.net>
2237 * cfg.mk (fetch): Add fdl-1.3.texi.
2238 * .gitattributes: Likewise.
2239 * doc/autoconf.texi (GNU Free Documentation License): Point to new
2241 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
2242 (standards_TEXINFOS): Mention current dependence on older license.
2243 * doc/fdl-1.3.texi: New upstream file.
2244 * GNUmakefile: Resync from upstream.
2245 * build-aux/announce-gen: Likewise.
2246 * build-aux/texinfo.tex: Likewise.
2248 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2250 Point at AM_SUBST_NOTMAKE.
2251 * doc/autoconf.texi (Setting Output Variables): Add cross
2252 reference to new Automake macro AM_SUBST_NOTMAKE.
2254 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2256 Eliminate a fork per invocation of AC_LANG_CONFTEST.
2257 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
2259 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
2260 top of confdefs.h, which also works around cpp deficiencies.
2261 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
2262 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
2263 (AC_LANG_CONFTEST()): New.
2265 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2267 Reorganize definition of languages.
2268 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
2269 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
2270 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
2271 Replace definitions with usage of AC_LANG_DEFINE.
2272 (Sections 2b, 2c): Delete.
2273 (Sections 1b, 1c): Move after section 2a.
2274 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
2275 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
2276 with usage of AC_LANG_DEFINE.
2277 (AC_LANG_ERLANG): Define using AU_DEFUN.
2278 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
2279 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
2280 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
2281 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
2282 definitions with usage of AC_LANG_DEFINE.
2283 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
2285 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2287 Use preprocessor in cpp tests.
2288 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
2290 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
2292 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
2293 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
2294 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
2295 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
2296 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
2297 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
2298 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
2301 2008-10-31 Eric Blake <ebb9@byu.net>
2303 Support multiple undiverts and dumpdefs at once.
2304 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
2306 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
2307 <m4_undivert>: Document argument list change.
2308 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
2311 Simplify diversion stack handling.
2312 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
2313 avoid extra newlines.
2314 (m4_divert_stack_push): Compute location here, rather than caller.
2315 (m4_divert_push): Update caller.
2316 (m4_divert): Likewise, and also adjust current diversion name.
2317 (m4_divert_pop): Simplify rule that diversion stack must never go
2319 (_m4_require_call): Bypass diversion stack when collecting
2320 required macro text.
2321 (m4_init): Set current diversion without requiring m4_init.
2322 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
2323 * lib/autotest/general.m4 (AT_INIT): Likewise.
2324 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
2325 text to run prior to m4sugar cleanup.
2326 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
2328 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
2329 * NEWS: Undo blurb about m4_divert.
2330 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
2332 Simplify expansion stack handling.
2333 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
2334 always output 'top level'.
2335 (_m4_expansion_stack_entry): New macro, to format the string only
2337 (m4_expansion_stack_push): Only push a macro name.
2338 (m4_warn, _m4_defun_pro): Update callers.
2339 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
2340 (_m4_defun_epi, m4_fatal): Inline the calls.
2341 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
2343 2008-10-30 Eric Blake <ebb9@byu.net>
2345 Better documentation of AC_CHECK_HEADER's fourth argument.
2346 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
2347 how to suppress compiler or preprocessor header check.
2348 Reported by Jeff Squyres.
2350 2008-10-30 Eric Blake <ebb9@byu.net>
2352 Fix LINENO testsuite failure.
2353 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
2354 undocumented _AS_PREPARE, and move unset earlier in script.
2356 Update LINENO documentation.
2357 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2358 (Special Shell Variables) <LINENO>: Mention that LINENO support in
2359 child scripts may be broken. Modernize example.
2361 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2363 Do not check for $LINENO in generated scripts.
2364 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
2367 2008-10-30 Eric Blake <ebb9@byu.net>
2369 Don't check for non-POSIX extensions in suggested tests.
2370 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
2371 we still use += if available, but should not reject shells (like
2372 dash) that don't provide it.
2373 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
2374 Reported by Paolo Bonzini.
2376 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2378 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
2379 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
2380 with a given CONFIG_SHELL, move it to SHELL.
2381 (AS_INIT_GENERATED): Re-export SHELL.
2383 2008-10-30 Eric Blake <ebb9@byu.net>
2385 Work around Solaris /bin/sh case bug.
2386 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
2387 a non-empty command list.
2388 (AS_CASE): Always guarantee that a case will match.
2389 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
2390 Solaris bug, and mention AS_CASE.
2392 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2394 Require _AS_CR_PREPARE where appropriate.
2395 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
2396 (AS_PREPARE): Require _AS_CR_PREPARE.
2398 Avoid walking the entire PATH when looking for a better shell.
2399 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
2400 as the PATH is walked.
2402 Add third argument to _AS_PATH_WALK
2403 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
2404 (_AS_PATH_WALK): Add third optional argument.
2406 Trim down the length of the shell function test.
2407 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
2409 2008-10-29 Eric Blake <ebb9@byu.net>
2411 Fix LINENO detection to work around bash and pdksh limitations.
2412 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
2413 that we can choose which of two tests to trust.
2414 (_AS_RUN): Set flag when alternate shell is running.
2415 (_AS_DETECT_EXPAND): New macro.
2416 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
2418 2008-10-29 Eric Blake <ebb9@byu.net>
2420 Mention proper fix for zsh users.
2421 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
2422 version known to work.
2423 Suggested by Paolo Bonzini.
2425 Document current beta-quality status.
2426 * configure.ac: Reflect fact that change to git-version-gen
2427 produces -, but not always a letter, on non-release builds.
2428 * BUGS: Mention known issues.
2429 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
2430 debugging platforms with deficient shells.
2432 2008-10-29 Eric Blake <ebb9@byu.net>
2434 Alter signature of AS_INIT_GENERATED.
2435 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
2436 manage here-doc and chmod in place. This also allows future
2437 changes for optimizing the child via diversion/m4_wrap magic.
2438 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
2440 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2441 Update the documentation.
2443 2008-10-29 Eric Blake <ebb9@byu.net>
2445 Use _m4_stack_reverse in m4_set.
2446 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
2447 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
2449 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
2450 (m4_set_map): Adjust callers to new API.
2452 Add m4_stack_foreach_sep.
2453 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
2454 (m4_stack_foreach_sep_lifo): New macros.
2455 (_m4_stack_reverse): Adjust prototype, to support it.
2456 (m4_copy): Use fewer macros.
2457 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
2458 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
2460 2008-10-29 Bruno Haible <bruno@clisp.org>
2462 Mention Sun WorkShop 6.2 OpenMP bug.
2463 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
2465 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
2467 Rewrite handling of diversion and expansion stack.
2468 * NEWS: Document stricter requirement on m4_init.
2469 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
2471 (_m4_divert_stack_push): New.
2472 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
2474 (m4_divert_push): Use _m4_divert_stack_push.
2475 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
2476 pop _m4_divert_stack instead of m4_divert_stack.
2477 (m4_expansion_stack): New. Update comment above it.
2478 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
2479 _m4_expansion_stack instead of m4_expansion_stack.
2480 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
2481 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
2482 instead of the definition, and compensate for the trailing newline
2484 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
2485 _m4_expansion_stack instead of m4_expansion_stack.
2486 (m4_newline): Expand first argument after the newline.
2487 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
2488 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
2489 * tests/tools.at (whitespace in file names, the empty token): Likewise.
2491 2008-10-28 Eric Blake <ebb9@byu.net>
2493 Reduce forks while searching for better shell.
2494 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
2495 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
2496 already does the job.
2497 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
2500 Undo needless efforts to protect $2 in $2_t.
2501 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
2502 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
2504 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2506 Fix parallel test execution output lossage.
2507 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
2508 standard output and standard error before the test, use append
2511 Caught by Bob Proulx' build daemons, analysis and suggested fix
2512 by Stéphane Chazelas.
2514 2008-10-28 Eric Blake <ebb9@byu.net>
2516 Use m4_map_args in more places.
2517 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
2518 (m4_undefine, m4_combine): Use m4_map_args, rather than
2521 2008-10-28 Eric Blake <ebb9@byu.net>
2523 Override m4 1.4.x dumpdef, as it breaks autom4te.
2524 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
2525 (m4_copy): Formatting touchup.
2526 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
2527 semantic differences as well as m4_dumpdefs.
2529 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
2531 2008-10-28 Eric Blake <ebb9@byu.net>
2533 Allow m4sugar to be used without autom4te, such as in bison.
2534 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
2535 alternate escape sequences can be used.
2536 (m4_text_box): Likewise. Don't output quadrigraphs.
2537 (m4_qdelta): Delete unused macro.
2539 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2541 Add m4_stack_foreach and m4_stack_foreach_lifo.
2542 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
2543 (m4_stack_foreach, m4_stack_foreach_lifo): New.
2544 (m4_copy): Use m4_stack_foreach and m4_curry.
2545 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
2546 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
2547 * tests/m4sugar.at (m4_stack_foreach): New test.
2549 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2551 use a shell function for AC_TYPE_INTx_T
2552 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
2554 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
2556 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2558 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
2559 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
2560 _AC_CHECK_HEADER_NEW): Likewise.
2561 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2563 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2565 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
2566 (AC_CHECK_MEMBER): Define and use a shell function.
2568 2008-10-27 Eric Blake <ebb9@byu.net>
2570 Prefer m4_fatal over AC_FATAL.
2571 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
2572 (AC_CHECK_MEMBER): Use non-obsolete macro name.
2573 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
2574 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
2576 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
2577 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
2578 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
2580 2008-10-27 Eric Blake <ebb9@byu.net>
2582 Avoid raw carriage return in scripts.
2583 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
2584 via tr, rather than with literal byte.
2586 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
2588 2008-10-27 Eric Blake <ebb9@byu.net>
2591 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
2592 clients with AS_VAR_ARITH instead.
2593 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
2595 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
2596 * tests/torture.at (Torturing config.status): Likewise.
2597 * tests/tools.at (autom4te --force): Likewise.
2600 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
2601 (AS_VAR_ARITH): New macros.
2602 (_AS_PREPARE, AS_PREPARE): Emit preparation.
2603 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
2604 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
2606 (Limitations of Usual Tools) <expr>: Mention portability problem
2607 if first argument starts with -.
2608 (Shell Substitutions) <$((expression))>: Mention it.
2611 2008-10-27 Eric Blake <ebb9@byu.net>
2613 Use read, rather than `cat`, for safe one-line files.
2614 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
2615 known that the file has only one line and no \.
2616 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
2618 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2620 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
2621 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
2622 (_AC_COMPUTE_INT_BODY): New.
2623 (AC_COMPUTE_INT): Define and use a shell function.
2625 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2627 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
2628 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
2629 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
2631 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2633 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
2634 (AC_CHECK_DECL): Use a shell function.
2636 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2638 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
2639 _AC_CHECK_HEADER_NEW): Use a shell function.
2641 2008-10-25 Eric Blake <ebb9@byu.net>
2643 Track recent copyright assignments.
2646 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
2647 and Eric Blake <ebb9@byu.net>
2649 Use a shell function for _AC_CHECK_HEADER_MONGREL.
2650 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
2652 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
2654 2008-10-25 Eric Blake <ebb9@byu.net>
2656 Simplify _AS_PREPARE handling of functions.
2657 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
2658 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
2659 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
2661 (_AS_LINENO_PREPARE): Make more efficient.
2662 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
2663 (_AS_UNSET_PREPARE): Avoid blank newline.
2664 (AS_INIT): Emit as_func_unset alongside other functions.
2666 2008-10-25 Eric Blake <ebb9@byu.net>
2669 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
2671 (Limitations of Builtins): Mention AS_EXIT.
2674 Use AS_EXIT in autoconf.as.
2675 * bin/autoconf.as: Consistently use AS_EXIT.
2677 2008-10-24 Eric Blake <ebb9@byu.net>
2679 Fix m4 underquoting in AC_PROG_INSTALL.
2680 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
2683 Speed up AC_CHECK_HEADER.
2684 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
2686 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
2687 and Eric Blake <ebb9@byu.net>
2689 Use a shell function for AC_CHECK_FUNC.
2690 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
2691 (AC_CHECK_FUNC): Use a shell function.
2692 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
2694 2008-10-24 Eric Blake <ebb9@byu.net>
2696 Work around fact that gnulib-tool doesn't use m4_copy.
2697 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
2698 define, so that an initial location is present, to account for
2699 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
2701 Make m4_defun_init more robust.
2702 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
2703 names, and correct number of arguments.
2704 (m4_copy): Also set up location of the copy.
2705 (m4_defun): When copied, use current macro name, not original.
2706 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
2709 Optimize clients of AS_REQUIRE.
2710 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
2712 (m4_defun_init): New undocumented macro.
2713 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
2714 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
2715 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
2716 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
2717 simplify these macros once the one-shot initialization is
2719 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
2723 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
2725 (_m4_copy): New macro, which preserves pushdef stacks.
2726 (_m4_defun_pro_outer): Bypass it, for speed.
2727 (m4_init): Bypass new implementation, since it breaks on m4_defn.
2728 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
2729 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
2730 now that m4_copy checks this.
2731 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2732 this, as well as m4_rename.
2733 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
2734 renaming builtins, since it breaks on m4_ifdef.
2736 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2738 2008-10-24 Eric Blake <ebb9@byu.net>
2740 AC_FUNC_GETGROUPS: Revert regression.
2741 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
2742 ac_cv_func_getgroups_works=no when it is not available.
2744 2008-10-23 Eric Blake <ebb9@byu.net>
2747 * lib/autoconf/fortran.m4: Consistently use tabs.
2749 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
2751 For gfortran on sh, ignore -little.
2752 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
2753 list of ignored arguments.
2756 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2758 Eliminate empty lines after AC_*_IFELSE.
2759 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2760 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
2762 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2764 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
2765 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
2766 Return a boolean status code based on $ac_status.
2768 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2770 Ensure actions can look at conftest* files.
2771 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
2772 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
2773 Move rm commands, except IPA files and Apple debug symbols...
2774 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
2775 _AC_RUN_IFELSE): ...in here.
2776 * tests/compile.at: Add regression test.
2778 2008-10-23 Eric Blake <ebb9@byu.net>
2780 Remove excess dnl from m4sh.
2781 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
2782 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
2783 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
2784 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
2785 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
2786 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
2787 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
2788 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
2789 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
2790 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
2792 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
2793 and Eric Blake <ebb9@byu.net>
2795 Use a shell function for _AC_RUN_IFELSE.
2796 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
2797 (_AC_RUN_IFELSE): Use a shell function.
2798 (_AC_RUN_LOG): Avoid subshell for logging.
2800 2008-10-23 Eric Blake <ebb9@byu.net>
2802 Formatting tweak: balance () with m4sh case statements.
2803 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
2804 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
2805 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
2806 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
2807 allow output of strategic shell comments.
2808 (AS_VERSION_COMPARE): Use AS_CASE.
2809 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2811 2008-10-22 Jim Meyering <meyering@redhat.com>
2813 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
2814 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
2815 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
2816 it is set to "yes" in the environment and configure is run on
2817 a system like mingw that lacks the getgroups function, it would
2818 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
2819 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
2821 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
2822 and Eric Blake <ebb9@byu.net>
2824 Use a shell function for _AC_LINK_IFELSE.
2825 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
2826 (_AC_LINK_IFELSE): Use a shell function.
2828 2008-10-22 Eric Blake <ebb9@byu.net>
2830 Fix autoconf logging commands.
2831 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
2832 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
2833 (_AC_DO_ECHO): Likewise, and use fewer dnl.
2834 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
2836 2008-10-22 Eric Blake <ebb9@byu.net>
2838 Fix testsuite failure.
2839 * tests/mktests.sh (ac_exclude_list): Don't generate test for
2840 AC_REQUIRE_SHELL_FN.
2842 2008-10-21 Eric Blake <ebb9@byu.net>
2844 Improve wording related to automake and autotest.
2845 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
2846 relation to automake. Mention dependency on package.m4.
2847 Consolidate examples. Define AUTOM4TE.
2849 Reported by William Pursell.
2851 2008-10-21 Eric Blake <ebb9@byu.net>
2853 Allow AS_VAR_SET_IF in shell lists.
2854 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
2856 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
2857 provided by AS_VAR_SET_IF.
2858 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
2860 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2861 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2863 Allow AS_VAR_IF in shell lists.
2864 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
2865 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
2866 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
2868 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
2869 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
2870 (_AC_CHECK_HEADER_DIRENT): Likewise.
2871 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2872 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
2874 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2876 Allow AS_CASE in shell lists.
2877 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
2878 side effects. Allow continuation of script on same line as esac.
2879 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
2880 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2881 * NEWS: Document the subtle change.
2883 Allow AS_IF in shell lists.
2884 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
2885 side effects. Allow continuation of script on same line as fi.
2886 (_AS_DETECT_BETTER_SHELL): Adjust clients.
2887 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
2889 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
2890 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
2891 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
2892 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2893 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
2894 (Polymorphic Variables): Move mention of dnl to the only two
2895 AS_VAR functions that need it.
2897 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
2898 and Eric Blake <ebb9@byu.net>
2900 Use a shell function for _AC_COMPILE_IFELSE.
2901 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
2902 (_AC_COMPILE_IFELSE): Use a shell function.
2904 2008-10-21 Eric Blake <ebb9@byu.net>
2907 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
2908 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
2909 (_AC_LIBOBJS_NORMALIZE): Likewise.
2910 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
2911 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
2912 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
2913 * lib/autotest/general.m4 (AT_INIT): Likewise.
2916 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
2917 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
2918 (AS_PREPARE, _AS_PREPARE): Emit preparation.
2919 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
2920 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
2922 <AS_VAR_SET>: Mention ramification of `""` rules.
2923 * NEWS: Mention new macro.
2925 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
2926 and Eric Blake <ebb9@byu.net>
2928 Use a shell function for _AC_PREPROC_IFELSE.
2929 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
2930 (_AC_PREPROC_IFELSE): Use a shell function.
2931 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
2932 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
2935 2008-10-21 Eric Blake <ebb9@byu.net>
2937 Add banners to generated files.
2938 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
2940 (AS_INIT): Add new banners at strategic points.
2941 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
2942 make consistent with other banners.
2943 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
2945 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
2947 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
2948 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
2949 (m4_divert(SHELL_FN)): New.
2951 2008-10-20 Eric Blake <ebb9@byu.net>
2953 Avoid unportable use of echo in testsuite.
2954 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
2957 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
2959 Make sure that nested AS_REQUIRE do not lose the desired diversion.
2960 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
2961 passing it to m4_divert_require, so that its content is not used
2963 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
2965 2008-10-18 Eric Blake <ebb9@byu.net>
2967 Document bugs in { } handling.
2968 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
2971 Fix some testsuite failures introduced two days ago.
2972 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
2973 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
2975 Reported by Ralf Wildenhues.
2977 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2979 Show how to extract single substitutions from config.status.
2980 * doc/autoconf.texi (config.status Invocation): Show example
2983 2008-10-17 Eric Blake <ebb9@byu.net>
2986 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
2987 * tests/m4sugar.at (m4@&t@_map_args): Rename...
2988 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
2989 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
2990 currying as a way to add parameters.
2991 (Evaluation Macros) <m4_curry>: Document the new macro.
2994 Improve suggested test filtering.
2995 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
2997 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
2998 check for an empty required set.
3001 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
3002 * tests/m4sugar.at (m4@&t@_set): Enhance test.
3003 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
3007 Document m4_map_args.
3008 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
3010 (m4_map_args, m4_map_args_pair): ...to these names, and document.
3011 (m4_version_unletter): Use the interface.
3012 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
3013 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
3014 Perform same renames.
3015 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
3016 * tests/m4sugar.at (m4@&t@_map_args): New test.
3017 (recursion): Adjust caller.
3018 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
3019 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
3021 * NEWS: Mention the new macros.
3023 2008-10-17 Eric Blake <ebb9@byu.net>
3025 Reduce vertical whitespace in configure.
3026 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
3027 m4 side effect initializations.
3028 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
3030 2008-10-17 Eric Blake <ebb9@byu.net>
3032 Document AS_VAR interfaces.
3033 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
3034 (Polymorphic Variables): New node.
3035 * NEWS: Update accordingly.
3037 Test AS_VAR interfaces.
3038 * tests/m4sh.at (AS@&t@_VAR): New test.
3039 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
3040 _AS_TR_SH_PREPARE at top level, rather than argument collection.
3041 (AS_TR_SH): Support command substitution.
3044 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
3045 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
3046 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
3047 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
3048 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
3050 Sort AS_VAR_* interfaces.
3051 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
3052 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
3055 2008-10-16 Eric Blake <ebb9@byu.net>
3057 Allow comments before functions emitted by m4sh.
3058 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
3059 argument. Supply closing comment, to ease readability.
3060 (_AS_MKDIR_P_PREPARE): Adjust caller.
3061 (_AS_UNSET_PREPARE): Add comment.
3063 Add AS_FUNCTION_DESCRIBE.
3064 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
3065 * lib/autotest/general.m4 (AT_INIT): Use it.
3067 2008-10-16 Eric Blake <ebb9@byu.net>
3069 Speed up m4_qlen with caching.
3070 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
3071 (m4_qlen): Cache results for speed.
3073 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
3075 Add a testcase using more then one language.
3076 * tests/compile.at (Multiple languages): New test.
3078 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
3080 Fix Libtool's config.lt test.
3081 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
3084 2008-10-15 Eric Blake <ebb9@byu.net>
3086 Break circular require chain in _AS_LINENO_PREPARE.
3087 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
3088 disabled when reporting LINENO failure, since logging requires
3090 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
3091 not m4_rename, since the latter is undocumented.
3092 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
3093 m4_rename, as it does not yet handle pushdef stacks.
3094 Reported by Ralf Wildenhues.
3096 2008-10-15 Eric Blake <ebb9@byu.net>
3098 Cleanups to previous patches.
3099 * doc/autoconf.texi (Portable Shell): Minor edits.
3100 (Limitations of Builtins): Touch up wording.
3101 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
3102 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
3104 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3106 Updates to shell portability documentation.
3107 * doc/autoconf.texi: Updates all references to "Portable Shell" and
3108 "Limitations of Builtins" to use three-argument commands.
3109 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
3110 (Portable Shell): Move here discussion about "Where is the POSIX
3111 shell?" Mention that M4sh provides a SVR2 shell and takes care
3112 of unsetting variables if necessary. Talk about M4sh and not only
3113 Autoconf-generated scripts.
3114 (Special Shell Variables): Talk about M4sh and not only
3115 Autoconf-generated scripts. Don't talk about things that Autoconf
3116 does not do. Mention problems of $LINENO with shell functions.
3117 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
3118 discussion of eval bugs before discussion on proper use of eval.
3119 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
3120 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
3121 * NEWS: Update list of documented M4sh macros.
3123 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3125 Assume a (possibly buggy) `unset' is present after a
3126 `better shell' was found.
3127 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
3128 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
3129 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
3130 alias for AS_UNSET, for backwards compatibility.
3131 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
3132 the shell does not support unset.
3133 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
3134 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
3135 (AS_UNSET): Assume it is there but it might fail if the variable is
3136 not set. Use it throughout instead of $as_unset.
3138 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3140 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
3141 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
3142 m4_require of _AS_DETECT_BETTER_SHELL.
3143 (_AS_CLEANUP): Add it here.
3144 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
3146 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
3147 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
3148 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
3149 (AS_INIT): Add m4_provide of itself.
3151 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3153 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
3154 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
3155 "test x$foo = xyes".
3157 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3159 Trim down the size of the better-shell test.
3160 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
3161 snippets into shell variables.
3164 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3166 Support a stack of LINENO values for AS_MESSAGE.
3167 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
3168 the line number emitted to the log file.
3169 (AS_LINENO_PUSH, AS_LINENO_POP): New.
3170 * tests/m4sh.at (LINENO Stack): New test.
3172 2008-10-14 Eric Blake <ebb9@byu.net>
3174 Correct previous patch.
3175 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
3178 Document shell function environment pitfall.
3179 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
3182 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
3184 Use m4_require to implement AS_REQUIRE.
3185 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
3186 (m4_require): Pass it.
3187 (m4_divert_require): New.
3188 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
3189 Remove comment about differences with m4_require.
3190 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
3191 the expected behavior.
3192 (Nested AS_REQUIRE_SHELL_FN): New test.
3194 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
3196 Test AS_LINENO_PREPARE.
3197 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
3199 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
3202 * tests/m4sh.at (as_me): New test.
3204 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
3206 Add and document AS_INIT_GENERATED.
3207 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
3208 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
3209 * doc/autoconf.texi (Initialization macros): Document it.
3211 2008-10-13 Eric Blake <ebb9@byu.net>
3213 Use consistent shell function style.
3214 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
3215 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
3218 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
3220 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
3221 contributors under m4 rather than shell comments.
3223 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3225 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
3226 * doc/autoconf.texi (Initialization macros): Document them.
3227 (Portable Shell): Refer to AS_LINENO_PREPARE.
3228 * NEWS: Mention them.
3230 * bin/autoconf.as: Invoke AS_ME_PREPARE.
3231 * lib/autotest/general.m4: Likewise.
3233 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3235 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
3237 2008-10-10 Eric Blake <ebb9@byu.net>
3239 Fix _AS_MKDIR_P usage.
3240 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
3241 match implementation.
3242 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
3243 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
3244 wording to better match behavior.
3246 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3248 * doc/autoconf.texi: Be less wary of shell functions.
3249 * NEWS: Document the increased use of shell functions.
3251 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3253 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
3254 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
3255 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
3256 (_AS_PREPARE): Define shell functions.
3257 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
3258 Define shell functions.
3260 2008-10-09 Eric Blake <ebb9@byu.net>
3262 Only prepare $as_me if it will be used.
3263 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
3265 (_AS_ECHO_LOG): Depend on $LINENO preparation.
3266 (AS_MESSAGE): Depend on $as_me preparation.
3267 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
3269 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
3271 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
3272 until the M4SH-INIT diversion using _AS_ME_PREPARE.
3273 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
3274 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
3275 before _AS_LINENO_PREPARE.
3276 (AS_PREPARE): Include all the AS_REQUIREs manually.
3277 (_AS_ME_PREPARE): New.
3278 (_AS_LINENO_PREPARE): Use m4_defun.
3280 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
3282 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
3283 require _AS_EXPR_PREPARE.
3284 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
3285 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
3287 2008-10-08 Eric Blake <ebb9@byu.net>
3290 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
3291 (fetch): ...into new target.
3292 (executable-update): Delete, now that it is unused.
3293 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
3294 (wget-update, cvs-update): Likewise.
3295 * HACKING (Update the foreign files): Document new procedure.
3296 * GNUmakefile: Resync from upstream, via new 'make fetch'.
3297 * build-aux/config.guess: Likewise.
3299 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3301 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
3302 (AS_INIT): Do not call it.
3304 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3306 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
3307 _AS_UNSET_PREPARE in M4SH-SANITIZE.
3309 2008-10-08 Eric Blake <ebb9@byu.net>
3311 Avoid repeating required shell tests in suggested set.
3312 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
3313 Use m4_set, rather than m4_expand_once/m4_append.
3314 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
3315 required tests out of suggested tests.
3316 Reported by Paolo Bonzini.
3318 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3320 Add m4sh keyword to all m4sh.at tests.
3321 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
3324 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3326 Document AS_VERSION_COMPARE.
3327 * doc/autoconf.texi (Programming in M4sh): Document
3331 Do not write to testsuite log fd before initialization.
3332 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
3333 Define fds only when initializing the log fd so early error
3334 messages do not try to write to it.
3335 * tests/autotest.at (Startup error messages): New test.
3336 * NEWS: Document this 2.63 regression.
3338 2008-10-07 Eric Blake <ebb9@byu.net>
3340 Ensure _AS_CLEANUP is defined.
3341 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
3342 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
3344 Improve m4sh maintainability.
3345 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
3348 Fix m4 quoting in previous patch.
3349 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
3350 name prior to invoking AS_REQUIRE.
3351 Reported by Ralf Wildenhues.
3353 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
3354 and Eric Blake <ebb9@byu.net>
3356 Add a separate diversion for shell functions.
3357 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
3358 (AS_REQUIRE): Accept diversion parameter.
3359 (AS_REQUIRE_SHELL_FN): Use it.
3361 2008-10-06 Eric Blake <ebb9@byu.net>
3363 Add m4_default_quoted.
3364 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
3365 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
3366 * doc/autoconf.texi (Conditional constructs): Document it.
3369 Fix build with case-insensitive make, again.
3370 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
3371 Reported via Keith Marshall, originally by newthinker in
3372 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
3374 2008-10-06 Bruno Haible <bruno@clisp.org>
3376 Warn about /usr/ucb on Solaris.
3377 * doc/install.texi (Particular Systems): Recommend putting
3378 /usr/ucb late in PATH, if at all.
3380 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3382 Fix more testsuite hang corner cases.
3383 * lib/autotest/general.m4: Use the serial code path if no test
3385 * tests/autotest.at (parallel test execution): Test -j and -jN
3386 with `-k notmatched'.
3388 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3390 Fix hang with `testsuite -k notmatched'.
3391 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
3392 to one. Fixes hang with `-k notmatched'.
3394 2008-10-02 Eric Blake <ebb9@byu.net>
3396 Document more binary file portability traps.
3397 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
3398 reader that NUL and sed don't always mix.
3399 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
3401 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3403 Implement parallel Autotest test execution: testsuite --jobs.
3404 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
3405 (AT_INIT): <at_jobs>: New variable.
3406 Accept -j, -jN, --jobs[=N], document them in --help output.
3407 Implement parallel driver loop using a FIFO, enabled with --jobs
3408 and if mkfifo works; otherwise, fall back to sequential loop.
3409 (AT_SETUP): Store, do not output summary progress line if
3411 * tests/autotest.at (parallel test execution, parallel truth)
3412 (parallel fallacy, parallel skip): New tests.
3413 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
3414 the mkfifo requirement, and that --errexit may cause concurrent
3418 2008-09-20 Eric Blake <ebb9@byu.net>
3420 Fix sample isinf definition.
3421 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
3424 Reported by David Cournapeau.
3426 2008-09-16 Eric Blake <ebb9@byu.net>
3428 Fix Erlang regression, introduced 2006-11-17.
3429 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
3430 caused by underquoting.
3431 * NEWS: Mention this fix.
3433 Reported by BJ Terry.
3435 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3437 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
3439 Mention Solaris sh ':' redirection bug.
3440 * doc/autoconf.texi (File Descriptors): Redirecting ':'
3441 in a loop causes bogus optimization with Solaris sh.
3443 2008-09-10 Eric Blake <ebb9@byu.net>
3445 Avoid testsuite bug when autom4te cache is disabled by user.
3446 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
3447 cache, even if user normally disabled it.
3448 Reported by Bruno Haible.
3450 Avoid testsuite bug in presence of verbose config.site.
3451 * tests/base.at (Input/Output): Nullify config.site during test.
3452 Reported by Bob Friesenhahn.
3454 2008-09-09 Eric Blake <ebb9@byu.net>
3456 Release Version 2.63.
3457 * NEWS: Mention the release.
3459 Formatting tweaks to the manual.
3460 * doc/autoconf.texi (Introduction, Systemology)
3461 (File System Conventions, Portable C and C++)
3462 (Floating Point Portability): Allow URLs to split as needed.
3463 (Indices): Add entries, to work around texinfo bug on indices that
3464 start too close to a page break.
3465 (Particular Functions): Mention ftello.
3466 (Introduction, Language Choice): Use @enddots at sentence end.
3469 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
3470 although for now, they are still manually sync'd.
3471 * build-aux/gnupload: Update.
3472 * build-aux/config.sub: Likewise.
3473 * GNUmakefile: Likewise.
3475 2008-09-06 Eric Blake <ebb9@byu.net>
3477 Mention that Automake already supports VPATH.
3478 * doc/autoconf.texi (Build Directories): Details in this section
3479 only apply to users avoiding automake.
3481 Reported by Matej Tyc.
3483 Relax tone when warning about cross-compiler names.
3484 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
3485 with poorly named tools; the issue has been reported too many
3486 times in the last four years to pull support.
3487 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
3488 documentation accordingly.
3490 Reported by Josef Tran and others, wording suggested by Ralf
3493 2008-09-01 Eric Blake <ebb9@byu.net>
3495 Improve AC_C_BIGENDIAN.
3496 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
3497 universal builds require a config header.
3498 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
3499 AH_HEADER at the last possible moment, so that users can use
3500 AC_CONFIG_HEADER after this macro.
3501 Reported by Stepan Kasal.
3503 Fix manual date information.
3504 * doc/autoconf.tex: UPDATED refers to the day the manual was
3505 built, not the release date of Autoconf.
3506 Based on a bison patch by Akim Demaille.
3508 2008-08-27 Eric Blake <ebb9@byu.net>
3510 Fix off-by-one bug in _m4_shiftn.
3511 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
3513 * tests/m4sugar.at (M4 loops): Test it.
3514 Reported by Akim Demaille.
3516 2008-08-26 Eric Blake <ebb9@byu.net>
3518 Improve INSTALL formatting.
3519 * doc/install.texi [!autoconf]: Ensure first paragraphs are
3520 indented like all others in a plain text rendering.
3521 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
3522 Reported by Bruno Haible.
3524 2008-08-26 Stepan Kasal <skasal@redhat.com>
3526 Check for case sensitive make.
3527 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
3528 * configure.ac: ... called here.
3529 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
3530 ($(srcdir)/INSTALL): ...this, but enclose the rule in
3531 "if MAKE_CASE_SENSITIVE".
3533 2008-08-26 Eric Blake <ebb9@byu.net>
3535 Update invocation documentation.
3536 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
3537 (autoreconf Invocation): Mention -v.
3538 (autom4te Invocation): Tie --freeze to -F, not -f.
3539 (autoupdate Invocation): Mention --prepend-include.
3540 * doc/install.texi (configure Invocation): Mention --help=short,
3541 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
3542 * bin/autoscan.in ($help): Omit space before `...'.
3543 * bin/ifnames.in ($help): Likewise.
3544 * bin/autoconf.as (Usage): Likewise.
3545 * bin/autoreconf.in ($help): Likewise.
3546 * bin/autoheader.in ($help): Likewise.
3547 * bin/autom4te.in ($help): Likewise.
3548 * bin/autoupdate.in ($help): Likewise.
3549 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
3550 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
3553 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
3554 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
3555 (files_to_options): Avoid inheriting __m4_version__ from frozen
3556 file if current M4 does not support it.
3558 2008-08-25 Eric Blake <ebb9@byu.net>
3560 Adjust to recent m4 1.6 change to support m4_debugmode(d).
3561 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
3562 freeze-time decision of using faster 1.6 implementation...
3563 (m4_init): ...to a runtime decision, and add use of new debugmode
3566 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
3568 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
3569 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
3570 __APPLE_CC__ with possible -arch flags.
3571 * NEWS: Document it.
3573 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3577 2008-08-22 Eric Blake <ebb9@byu.net>
3579 * TODO: Add an item for additional m4sugar looping constructs.
3580 Suggested by Ralf Wildenhues.
3582 Add reminder to keep dual implementations in sync.
3583 * lib/m4sugar/m4sugar.m4: Add comments.
3584 * lib/m4sugar/foreach.m4: Likewise.
3585 Suggested by Ralf Wildenhues.
3587 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
3589 Format warning and error messages to match GCS.
3590 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
3591 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
3592 messages with a lowercase letter, end them without punctuation.
3593 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
3594 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
3595 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
3597 * tests/fortran.at (GNU Fortran): Likewise.
3598 * tests/torture.at (Deep Package): Likewise.
3600 2008-08-21 Eric Blake <ebb9@byu.net>
3602 Avoid extra side effects in m4sugar list expansion.
3603 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
3605 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
3606 duplicate side effects.
3607 (m4_version_compare): Adjust caller.
3608 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
3609 (_m4_list_cmp_raw): ...to match m4sugar.
3610 * doc/autoconf.texi (Looping constructs): Document the behavior of
3612 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
3613 Ensure only one side effect.
3614 (recursion): Fix test typo.
3615 Reported by Ralf Wildenhues.
3617 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3619 * TODO: Add item for compiler default flags.
3620 Suggested by Bruno Haible.
3622 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
3625 2008-08-21 Eric Blake <ebb9@byu.net>
3627 Formatting improvements.
3628 * doc/autoconf.texi: Use @file and @command, rather than @code,
3631 Document another make bug.
3632 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
3633 make, GNU make <= 3.80.
3635 Tweak wording about SHELL in Makefile.
3636 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
3637 the importance of proper SHELL settings.
3638 Reported by Bruno Haible, in
3639 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
3641 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3643 Avoid timestamp races for updated input.
3644 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
3646 * tests/tools.at (autotools and whitespace in file names): Add
3647 --force for repeated invocations.
3649 2008-08-20 Bruno Haible <bruno@clisp.org>
3651 Add section to INSTALL about particular systems.
3652 * doc/install.texi (Particular systems): New node.
3653 * doc/autoconf.texi: Adjust menus.
3655 2008-08-19 Bruno Haible <bruno@clisp.org>
3656 and Peter O'Gorman <peter@pogma.com>
3658 Mention universal binaries in INSTALL.
3659 * doc/install.texi (Compiling For Multiple Architectures): Explain
3660 how to create universal binaries on MacOS X.
3662 2008-08-19 Jim Meyering <jim@meyering.net>
3663 Eric Blake <ebb9@byu.net>
3664 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3666 Avoid shell parse errors after interrupt due to empty ``.
3667 * doc/autoconf.texi (Shell Substitutions): Document the issue.
3668 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
3669 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
3670 "test AS_VAR_GET([...]) = yes"
3671 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
3672 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
3673 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
3674 (_AC_CHECK_HEADER_DIRENT): Likewise.
3675 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
3676 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
3677 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
3678 temporary variable to work around the issue.
3679 * tests/foreign.at (Libtool): Quote result of command
3682 2008-08-18 Eric Blake <ebb9@byu.net>
3684 Test m4_transform without tickling shell bugs.
3685 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
3686 something more manageable.
3687 * tests/m4sugar.at (recursion): Move stress test of
3688 m4_transform_pair here.
3689 Reported by Ralf Wildenhues.
3691 Let 'git diff' give better context for doc updates.
3692 * .gitattributes (*.texi*): Add new entry.
3693 * README-hacking: Mention how to use it.
3694 Inspired by a coreutils patch by Jim Meyering.
3696 2008-08-15 Eric Blake <ebb9@byu.net>
3698 Fix m4_map regression from 2007-10-16.
3699 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
3700 (m4_map): Ignore empty sublists. For a list consisting of only an
3701 empty sublist, this restores 2.61 behavior of being a no-op.
3702 (m4_map_sep): Likewise, and expand separator.
3703 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
3704 (_m4_map): Rewrite, to be common base for all four variants.
3705 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
3706 * tests/m4sugar.at (m4@&t@_map): Add tests.
3707 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
3708 macros, and mention ramifications of expanded separator.
3709 * NEWS: Mention the change.
3711 2008-08-14 Eric Blake <ebb9@byu.net>
3713 Implement m4_transform_pair, to speed up AS_IF.
3714 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
3715 macros, undocumented for now.
3716 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
3717 the m4 1.4.x counterparts.
3718 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
3719 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
3721 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3723 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
3724 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
3725 warn about previous AC_CANONICAL_TARGET.
3726 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
3727 unusable in the non-cross-compiling case.
3728 * NEWS, THANKS: Update.
3729 Report by Dave Erickson.
3731 2008-08-12 Eric Blake <ebb9@byu.net>
3734 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
3735 implementation for m4 1.4.x.
3736 * tests/m4sugar.at (m4@&t@_bmatch): New test.
3737 (recursion): Test the linear nature.
3738 * NEWS: Document the fix.
3740 Fix m4_cond corner case.
3741 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
3742 implementation allows concatenation with subsequent text.
3743 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
3745 Add test for m4_cond.
3746 * tests/m4sugar.at (m4@&t@_cond): New test.
3747 Reported by Ralf Wildenhues.
3749 2008-08-06 Eric Blake <ebb9@byu.net>
3751 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
3752 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
3753 unique key for the AH_VERBATIM.
3754 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
3755 * NEWS: Mention the fix.
3756 Reported by Andreas Schwab, analyzed by Stepan Kasal.
3758 Add linear m4_cond for m4 1.4.x.
3759 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
3760 (_m4_cond): ...this, for fewer macros per iteration.
3761 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
3762 * tests/m4sugar.at (recursion): Test it.
3763 * NEWS: Document the linear guarantee.
3765 Speed up diversion handling.
3766 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
3767 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
3770 AC_C_CHAR_UNSIGNED is not strictly necessary.
3771 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
3772 portable alternative to this macro.
3774 Reported by Hallvard B Furuseth.
3776 Update some files from upstream.
3777 * GNUmakefile: Update.
3778 * build-aux/announce-gen: Likewise.
3779 * build-aux/config.guess: Likewise.
3780 * build-aux/config.sub: Likewise.
3781 * build-aux/git-version-gen: Likewise.
3782 * build-aux/texinfo.tex: Likewise.
3783 * build-aux/vc-list-files: Likewise.
3784 * doc/make-stds.texi: Likewise.
3785 * doc/standards.texi: Likewise.
3787 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3789 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
3790 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
3791 whitespace in $ac_config_files and $ac_config_headers.
3792 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
3793 Report by Andreas Schwab and Per Øyvind Karlsen.
3796 2008-07-30 Eric Blake <ebb9@byu.net>
3798 Fix bugs in previous version of m4_bpatsubsts.
3799 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
3800 allow concatenation with subsequent text.
3801 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
3803 2008-07-29 Eric Blake <ebb9@byu.net>
3805 Add linear m4_bpatsubsts for m4 1.4.x.
3806 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
3807 about anchors, even for only one substitution.
3808 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
3809 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
3810 Clarify behavior with regard to quoting.
3811 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
3812 (m4@&t@_bpatsubsts): New test.
3813 * NEWS: Document the linear guarantee.
3815 Tweak m4_do semantics.
3816 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
3818 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
3819 arguments, and avoid infinite loop.
3820 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
3822 * tests/m4sugar.at (m4@&t@_do): New test.
3825 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
3826 (_m4_for): Take additional parameter, for fewer m4_indir calls.
3827 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
3828 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
3829 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
3830 semantic change caused by the optimization.
3831 * tests/m4sugar.at (M4 loops): Test the new semantics.
3833 One more m4_list_cmp tweak.
3834 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
3835 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
3836 * tests/m4sugar.at (recursion): Test both directions of list
3839 Add m4_reverse, and improve m4_list_cmp.
3840 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
3841 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
3843 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
3845 * tests/m4sugar.at (recursion): Test it.
3846 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
3848 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
3849 * NEWS: Mention new macro.
3851 2008-07-28 Eric Blake <ebb9@byu.net>
3853 Avoid _m4_shiftn for m4 1.6 speedup.
3854 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
3855 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
3856 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
3858 Implement O(n) unique element set creation.
3859 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
3860 (m4_set_contains, m4_set_contents, m4_set_delete)
3861 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
3862 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
3863 (m4_set_size, m4_set_union): New macros.
3864 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
3866 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
3867 new m4_set API for the set most likely to be large.
3868 * doc/autoconf.texi (Set manipulation Macros): New node.
3869 * NEWS: Mention new macros.
3870 * tests/m4sugar.at (m4@&t@_set): New test.
3872 2008-07-25 Eric Blake <ebb9@byu.net>
3874 Avoid infinite aclocal loop.
3875 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
3876 that aclocal doesn't insist on finding m4sugar/foreach.m4.
3878 Provide O(n) replacement macros for M4 1.4.x.
3879 * lib/m4sugar/foreach.m4: New file.
3880 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
3881 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
3882 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
3883 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
3885 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
3886 older M4 is assumed.
3887 (m4_map_sep): Optimize.
3888 (m4_max, m4_min): Refactor, by adding...
3889 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
3890 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
3891 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
3893 * tests/m4sugar.at (M4 loops): Add a stress test that takes
3894 forever if m4_foreach and friends are quadratic.
3895 * NEWS: Mention this.
3897 2008-07-21 Eric Blake <ebb9@byu.net>
3899 Ignore undefined macros, necessary with m4 1.6.
3900 * bin/autoupdate.in (_au___undefine): New macro,...
3901 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
3902 Reported by Ralf Wildenhues.
3905 * GNUmakefile: Grab from upstream, to fix issue where 'make
3906 install' would allow installation of stale version string.
3908 2008-07-19 Eric Blake <ebb9@byu.net>
3910 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
3911 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
3912 through all variables, per POSIX and newer m4.
3913 (_m4_text_wrap): Exploit the looping capabilities.
3914 * tests/m4sugar.at (m4@&t@_defn): Test this.
3915 * NEWS: Document it.
3916 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
3917 <m4_undefine>: Likewise.
3919 Reduce overhead of m4_builtin([defn]).
3920 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
3921 internal macros, which are slightly more efficient than
3922 m4_builtin([defn]) and company.
3923 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
3924 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
3925 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
3926 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
3927 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
3928 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
3929 (m4_version_prereq): Use them.
3931 Use warnings from m4 when available.
3932 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
3933 define slower wrapper if m4 will warn on our behalf; key off of
3934 __m4_version__, added alongside the new warnings in m4 1.6.
3935 * tests/m4sugar.at (m4@&t@_defn): New test.
3937 2008-07-18 Eric Blake <ebb9@byu.net>
3940 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
3941 * tests/m4sugar.at (m4@&t@_join): Test them.
3942 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
3946 2008-07-17 Stepan Kasal <skasal@redhat.com>
3947 and Eric Blake <ebb9@byu.net>
3949 Improve documentation of config.h.in template rules.
3950 * doc/autoconf.texi (Header Templates): Mention rules on comments
3951 and whitespace, and that the user cannot rely on #undef to survive
3952 through config.status.
3954 2008-07-16 Eric Blake <ebb9@byu.net>
3956 Revert m4_prepend; it is less efficient, and unused by bison.
3957 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
3958 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
3959 (_m4_grow_uniq_1): Rename back...
3960 (_m4_append_uniq): ...to this.
3961 * NEWS: Revert NEWS blurb.
3962 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
3963 * tests/m4sugar.at (m4@&t@_prepend): Delete.
3965 2008-07-15 Eric Blake <ebb9@byu.net>
3967 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
3968 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
3969 definition for non-Autoconf clients of m4sugar.
3971 2008-07-14 Eric Blake <ebb9@byu.net>
3973 Tighten bound of potential speed of m4_append.
3974 * doc/autoconf.texi (Text processing Macros) <m4_append>
3975 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
3977 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
3978 Analysis by Bruno Haible.
3980 2008-07-11 Eric Blake <ebb9@byu.net>
3982 Inherit improvements from bison's fork of m4sugar.
3983 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
3984 find version.texi, since bison does not provide it.
3985 (m4_prepend): Add new macro, from bison.
3986 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
3988 (_m4_append_uniq): Rename...
3989 (_m4_grow_uniq_1): ...to this to share implementation, and
3990 optimize initial assignment.
3991 (m4_append_uniq_w): Adjust caller.
3992 * NEWS: Document new macros.
3993 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
3994 speed consideration.
3995 <m4_prepend>: Document the new prepend variants.
3996 * tests/m4sugar.at (m4@&t@_prepend): New test.
3998 Work around M4 1.6 warning on undefined macros.
3999 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
4000 not already available as builtins.
4002 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4004 * doc/autoconf.texi (@dvar): Remove trailing newline.
4005 (@ovar): Likewise. Fix macro documentation.
4007 2008-07-02 Stepan Kasal <skasal@redhat.com>
4009 Add quotes to the header of autoscan-generated source.
4010 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
4012 2008-06-28 Andreas Schwab <schwab@suse.de>
4014 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
4015 (autoconf Invocation): Likewise.
4016 (autoreconf Invocation): Likewise.
4017 (autoheader Invocation): Likewise.
4018 (autom4te Invocation): Likewise.
4020 2008-06-19 Eric Blake <ebb9@byu.net>
4022 Add comment explaining recent patch.
4023 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
4024 of * vs. ? globbing.
4026 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4028 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
4029 linking a file to itself.
4030 Report by Bruno Haible.
4032 2008-06-19 Eric Blake <ebb9@byu.net>
4035 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
4036 Reported by Stepan Kasal.
4038 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4040 Reorganize autotest files, factorize for parallel execution.
4041 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
4042 earlier in the file.
4043 (AT_INIT): Create line number cache in
4044 $at_suite_dir/at-source-lines.
4045 <at_helper_dir>: New directory at-groups below $at_suite_dir.
4046 Add comment explaining the new directory structure.
4047 (at_func_group_prepare, at_func_group_postprocess): New shell
4048 functions to factorize per-test group work. Keep the actual
4049 test execution outside of a shell function in order to avoid
4050 zsh 4.x exit status bugs.
4051 <at_check_line_file, at_status_file, at_stdout, at_stder1>
4052 <at_stderr, at_test_source>: Turn these into per-group files
4053 below $at_helper_dir. Also store test results there in files
4054 named pass, fail, xpass, xfail, skip. Let the parent collect
4055 results from $at_helper_dir. Adjust summary statistics
4056 computation and result output.
4058 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4060 Fix '#undef variable /* comment */' transform in config headers.
4061 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
4062 undefined preprocessor macros that are followed by a comment
4063 in the header template, do not create nested comments in the
4065 * tests/torture.at (@%:@define header templates): Extend test.
4067 Report by Karsten Hopp <karsten@redhat.com>.
4069 2008-06-09 Eric Blake <ebb9@byu.net>
4071 Mark AC_TYPE_SIGNAL as obsolete.
4072 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
4073 * doc/autoconf.texi (Function Portability): Update documentation.
4074 (Particular Types): Move AC_TYPE_SIGNAL...
4075 (Obsolete Macros): ...here, and mention why.
4076 * NEWS: Mention the change.
4078 Allow lib64 as a default X library location.
4079 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
4080 * NEWS: Mention the change.
4082 Reported by Brad Walker.
4084 2008-06-05 Eric Blake <ebb9@byu.net>
4086 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
4087 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
4088 converting it to lower case.
4089 * tests/autotest.at (Keywords and ranges): Test this.
4090 * NEWS: Document the fix.
4092 Reported via Karsten Hopp, by Jochen Schmitt in
4093 https://bugzilla.redhat.com/show_bug.cgi?id=449973
4095 2008-06-03 Eric Blake <ebb9@byu.net>
4097 Fix 'make dist' regression from 2008-05-08.
4098 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
4099 GNUmakefile's _autoconf rule removes INSTALL.
4101 2008-05-27 Eric Blake <ebb9@byu.net>
4103 Document Solaris /bin/sh redirection pitfall.
4104 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
4106 2008-05-14 Eric Blake <ebb9@byu.net>
4108 Improve documentation of ! issues.
4109 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
4110 Reported by Noah Misch.
4112 Document some FreeBSD shell bugs.
4113 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
4114 in compound pipe commands.
4115 <export>: Mention difference of exporting an undefined variable.
4116 (Shell Functions): Mention loss of $? in entry to shell functions.
4117 Extracted from the git mailing list.
4119 2008-05-13 Stepan Kasal <kasal@ucw.cz>
4121 Work around MSYS and Cygwin bugs when dealing with trailing space.
4122 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
4123 even when platform bugs are tickled.
4124 Reported by Keith Marshall and Eric Blake.
4126 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4128 Let AC_MSG_FAILURE report pwd.
4129 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
4130 Output $ac_pwd along with fatal failure.
4131 * tests/torture.at (Deep Package): Extend test.
4132 Reported numerous times against GCC, and probably other packages.
4134 2008-05-12 Eric Blake <ebb9@byu.net>
4136 Enforce --help and --version compliance.
4137 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
4139 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
4141 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
4142 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
4143 ($(abs_srcdir)/INSTALL): ...with this.
4145 2008-05-06 Eric Blake <ebb9@byu.net>
4148 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
4150 Avoid overfull \hbox.
4151 * doc/autoconf.texi (Versioning): Reword to fit line size.
4153 Document $(( )) pitfalls.
4154 * doc/autoconf.texi (Shell Substitutions): Mention octal
4155 vs. decimal. Mention autotest's at_func_arith.
4157 Improve behavior of './testsuite 01'.
4158 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
4159 Alter usage to eval its arguments, in order to normalize away
4160 leading zero. All callers updated.
4161 * tests/autotest.at (Keywords and ranges): Test range
4162 normalization with leading 0.
4164 2008-04-26 Eric Blake <ebb9@byu.net>
4166 Mention Solaris /usr/ucb/tr pitfall.
4167 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
4168 Reported by Bruno Haible and Jim Meyering.
4170 2008-04-24 Eric Blake <ebb9@byu.net>
4172 Mention m4sugar's internal quote strings.
4173 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
4174 in m4sugar, and how to still output it literally.
4175 * tests/m4sugar.at (m4@&t@_split): And test it.
4176 Reported by Joel E. Denny.
4178 2008-04-23 Eric Blake <ebb9@byu.net>
4180 Allow unbalanced () in m4_expand.
4181 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
4183 (m4_noquote, _m4_split): Use consistent complex quote.
4184 * tests/autotest.at (Left paren, Right paren): Test this.
4185 (Parentheses): Ensure new quadrigraphs still work.
4186 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
4187 * NEWS: Mention the fix.
4188 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
4189 require quadrigraphs for ().
4190 (Evaluation Macros) <m4_expand>: Relax the restriction against
4192 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
4193 (Writing Testsuites) <AT_SETUP>: Likewise.
4194 Reported by Joel E. Denny, fix suggested by Noah Misch.
4196 2008-04-22 Eric Blake <ebb9@byu.net>
4198 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
4199 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
4200 (handle_traces): Likewise.
4201 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
4202 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
4203 * doc/autoconf.texi (Quadrigraphs): Document them.
4204 (Evaluation Macros) <m4_expand>: Enhance documentation.
4205 (Text processing Macros) <m4_text_box>: Document cases where
4206 quadrigraphs can help for problemetic unbalanced parentheses.
4207 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
4208 (Writing Testsuites) <AT_SETUP>: Likewise.
4209 (Limitations of Builtins) <case>: Consolidate text on unbalanced
4210 parentheses, and add an example of creative comments.
4211 * NEWS: Document the addition.
4212 Reported by Joel E. Denny.
4214 2008-04-16 Eric Blake <ebb9@byu.net>
4216 Document pdksh exec behavior.
4217 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
4219 Discovered by Jim Meyering.
4221 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4223 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
4224 arguments to the inner suite.
4225 (errexit, input from stdin): New tests.
4227 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4229 * NEWS: Post-release update.
4231 2008-04-10 Eric Blake <ebb9@byu.net>
4233 AC_AUTOCONF_VERSION might contain arbitrary macro names.
4234 * doc/autoconf.texi (Versioning): Mention problem with expansion.
4235 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
4237 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
4239 Flush buffered output before exit.
4240 * bin/autom4te.in (handle_output): Explicitly close file.
4242 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
4244 2008-04-08 Eric Blake <ebb9@byu.net>
4246 Generate web docs for 2.62.
4247 * doc/autoconf.texi (Evaluation Macros): Fix typo.
4248 (Notices): Use recommended means to escape RCS keyword.
4249 * cfg.mk (gnulib_dir): New macro.
4250 (web-manual): New target.
4252 2008-04-05 Eric Blake <ebb9@byu.net>
4254 Release Version 2.62.
4255 * NEWS: Mention the release.
4257 2008-04-04 Stepan Kasal <kasal@ucw.cz>
4258 and Eric Blake <ebb9@byu.net>
4260 Return back to GPLv2+, until the text of the exceptions is
4261 finalized, reverting the change from 2007-07-03 and the first
4262 part of the change from 2007-07-20.
4263 * COPYING: Revert to GPLv2.
4264 * COPYINGv3: New file, since some auxiliary build tools, used for
4265 building autoconf and not installed, are GPLv3.
4266 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
4267 * NEWS: Remove mention of GPLv3.
4268 * README: Clarify situation regarding GPLv3.
4270 2008-04-05 Eric Blake <ebb9@byu.net>
4272 Prepare for release.
4273 * maint.mk (announcement): Avoid deleted option.
4274 * cfg.mk (release_archive_dir): Use default.
4275 * build-aux/gnupload: New file, from automake/gnulib.
4276 * Makefile.am (EXTRA_DIST): Distribute it.
4277 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
4280 2008-04-05 Jim Meyering <meyering@redhat.com>
4281 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4283 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
4284 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
4285 is the EOL marker, skip a step that would remove and translate
4286 carriage return bytes.
4288 Reported by Elbert Pol.
4290 2008-04-05 Eric Blake <ebb9@byu.net>
4292 Avoid some autoreconf -Wall warnings.
4293 * configure.ac: Use proper quoting, to be a good example.
4294 (PACKAGE_NAME): Remove setting covered by autoconf.
4295 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
4296 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
4298 (html, autoconf_1.html, standards_1.html): Likewise.
4299 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
4300 * Makefile.am (html): Likewise.
4301 * doc/autoconf.texi (Quoting and Parameters): Add missing section
4303 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
4304 warning about our override, until Automake is fixed.
4305 * README-hacking: Document minimum requirements for bootstrap.
4307 2008-04-03 Eric Blake <ebb9@byu.net>
4309 Fix version number generation in man pages.
4310 * Makefile.am (EXTRA_DIST): Distribute .version.
4311 (.version): New rule.
4312 * man/Makefile.am (common_dep): Depend on .version, not
4314 (.x.1): Use package name for version string.
4315 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
4316 * build-aux/git-version-gen: Sync from upstream.
4318 More maintainer tweaks: pass 'make maintainer-distcheck'.
4319 * GNUmakefile (_is-dist-target): Sync from upstream.
4320 * build-aux/vc-list-files: Sync from upstream, yet again.
4321 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
4322 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
4324 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
4326 Fix VPATH 'make syntax-check'.
4327 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
4328 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
4329 (author_mark_check): Avoid error message.
4330 * build-aux/vc-list-files: Sync from upstream again.
4331 * build-aux/texinfo.tex: Likewise.
4333 Sync files from upstream, and pass 'make syntax-check'.
4334 * config/announce-gen: Move...
4335 * build-aux/announce-gen: ...here, and sync from gnulib.
4336 * Makefile.am (EXTRA_DIST): Adjust accordingly.
4337 * cfg.mk (announce_gen): Likewise.
4338 (prev_version_file): Delete, relying on default in maint.mk.
4339 (gpg_key_ID): New macro.
4340 (url_dir_list): Rewrite to match coreutils.
4341 * config/prev-version.txt: Move...
4342 * .prev-version: ...here, and adjust to 2.61.
4343 * build-aux/vc-list-files: Sync from coreutils.
4344 * maint.mk: Resynchronize with coreutils, where possible.
4345 (ME): Remove $(srcdir) from definition.
4347 (GIT, VC, VC-tag): New macros.
4348 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
4349 (VC_LIST, VC_LIST_EXCEPT): ...to this.
4350 (cvs-tag-check): Delete.
4351 (cvs-diff-check): Rename...
4352 (vc-diff-check): ...to this.
4353 (sc_file_system): Allow FHS acronym.
4354 * doc/autoconf.texi (Particular Functions): Recommend
4355 unconditional <config.h>.
4356 * build-aux/config.guess: Sync from upstream (manually).
4357 * build-aux/config.sub: Likewise.
4358 * build-aux/texinfo.tex: Likewise.
4359 * doc/make-stds.texi: Likewise.
4360 * doc/standards.texi: Likewise.
4361 * .gitattributes: Ignore whitespace problems in upstream files.
4363 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4365 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
4367 Report by Peter O'Gorman.
4369 2008-04-02 Eric Blake <ebb9@byu.net>
4371 Recommend the just-released M4 1.4.11.
4372 * NEWS: Update recommendation.
4374 * doc/autoconf.texi (Introduction): Likewise.
4375 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
4377 2008-04-01 Eric Blake <ebb9@byu.net>
4379 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
4382 2008-03-28 Peter O'Gorman <peter@pogma.com>
4384 Find X11 on Mac OS X too.
4385 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
4386 Check for libX11 with extensions dylib la and dll too.
4388 Reported by Martin Costabel.
4390 2008-03-28 Eric Blake <ebb9@byu.net>
4392 Update TODO based on completed tasks.
4393 * TODO (AC_PROG_INSTALL takes multiple files): Done.
4394 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
4395 (AC_COMPILE_IFELSE documentation): Done.
4396 (Tracing builtins): Done, now that we require M4 1.4.5.
4397 (AC_PROG_CC_POSIX suggestion, providing header files)
4398 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
4399 (cache consistency): Done with precious variables.
4401 2008-03-26 Eric Blake <ebb9@byu.net>
4403 Document --trace=macro:format in --help output.
4404 * bin/autom4te.in (help): Mention optional trace format.
4405 * bin/autoconf.as (usage): Likewise.
4407 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
4408 typos in last patch.
4409 Reported by Ralf Wildenhues.
4411 2008-03-26 Jim Meyering <meyering@redhat.com>
4413 Fix texinfo syntax error.
4414 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
4416 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4418 Warn, not fail on whitespace-only precious variable differences.
4419 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
4420 precious variable differences less ambiguous with `ugly-quotes'.
4421 If their settings differ only in whitespace, do not fail, but
4422 reuse the old value.
4423 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
4424 an optional status and expected-warning argument. Fix m4
4425 quotation for initial value.
4426 (AC_ARG_VAR): Also test for whitespace-only differences, and
4427 that the old value is retained in this case.
4428 * doc/autoconf.texi (Setting Output Variables): Document this.
4430 Report and initial patch by Paolo Bonzini.
4432 2008-03-26 Eric Blake <ebb9@byu.net>
4434 Document busybox sed bug.
4435 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
4436 restrictions when using back-references.
4437 Reported by Vincent Lefevre:
4438 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
4440 Document Automake interaction with AC_CONFIG_MACRO_DIR.
4441 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
4444 Reported by Chris Pickett.
4446 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4448 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
4450 * tests/local.at (AT_CHECK_M4): Factorize warning output
4452 Suggested by Eric Blake.
4454 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4456 Fix .exe-related test failure on MinGW.
4457 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
4458 for comparing warning output.
4460 Fix Fortran testsuite failures with gfortran 4.3.
4461 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
4462 verbose compiler output, skip lines that set variables; gfortran
4463 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
4465 Report by Vincent Lefèvre.
4467 2008-03-21 Eric Blake <ebb9@byu.net>
4469 * GNUmakefile: Resynchronize with gnulib.
4471 Document more uses of $cross_compiling.
4472 * doc/autoconf.texi (Runtime): Document that a temporary override
4475 Reported by Ineiev, example by Ralf Wildenhues.
4477 Don't swallow $1 in textual local variables.
4478 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
4479 expansion of text arguments, as that swallows $1.
4480 (m4_text_wrap): Likewise, by splitting out...
4481 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
4482 expression for width.
4483 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
4484 (m4@&t@_combine): Likewise.
4486 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4488 Avoid leftover files on Leopard.
4489 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
4490 directory created on darwin.
4491 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
4492 left over from a broken link.
4493 * tests/c.at (AC_NO_EXECUTABLES (working linker))
4494 (AC_NO_EXECUTABLES (broken linker)): New tests.
4495 Report by Gary V. Vaughan.
4497 * lib/autom4te.in (Automake-preselections): Trace
4498 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
4500 2008-03-20 Eric Blake <ebb9@byu.net>
4502 Kill more CVS references.
4503 * README-cvs: Delete. See README-hacking instead.
4504 * README-hacking: Update wording, based on older file.
4505 * BUGS: Remove CVS mention.
4507 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4509 * tests/tools.at (autotools and whitespace in file names): Skip
4510 if aclocal is not present.
4512 2008-03-20 Eric Blake <ebb9@byu.net>
4514 Sync GNUmakefile with gnulib.
4515 * GNUmakefile (Makefile.cfg): Rename...
4516 (cfg.mk): ...to this, and make optional.
4517 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
4518 (Makefile.maint): Rename...
4519 (maint.mk): ...to this.
4520 (all) [!_have-Makefile]: Rename...
4521 (abort-due-to-no-makefile): ...to this, and invoke via
4522 .DEFAULT_GOAL to pick up all targets.
4523 * Makefile.cfg: Rename...
4524 * cfg.mk: ...to this.
4525 * Makefile.maint: Rename...
4526 * maint.mk ...to this.
4527 (ME): Reflect name change.
4528 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
4529 rather than hard-coded name.
4530 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
4531 * Makefile.am (EXTRA_DIST): Reflect file name changes.
4532 * .x-sc_prohibit_atoi_atof: Likewise.
4533 * lib/freeze.mk: Likewise.
4535 2008-03-19 Stepan Kasal <kasal@ucw.cz>
4537 * doc/autoconf.texi (Introduction): Improve the paraphrase of
4538 Henry Spencer's quotation.
4540 2008-03-19 Eric Blake <ebb9@byu.net>
4542 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
4543 * bin/autoscan.in (output): Avoid obsolete spelling.
4544 * tests/local.at (AC_STATE_SAVE): Update usage.
4546 Reported by John Calcote.
4548 Emphasize that ease of configure triumphs over ease of autoconf.
4549 * doc/autoconf.texi (Introduction): Expand on primary
4550 vs. secondary goal of autoconf.
4552 Inspired by Paul Smith.
4554 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4556 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
4557 $hint, show if the executing program does not exist.
4558 (xsystem_hint): New function, like xsystem but allows to pass
4560 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
4562 Report by Bruce Korb.
4564 2008-03-14 Stepan Kasal <kasal@ucw.cz>
4566 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
4567 tests/mktests.sh, tests/wrapper.as: Fix typos.
4569 2008-03-12 Eric Blake <ebb9@byu.net>
4571 Fix yesterday's regression in m4_wrap([$1]).
4572 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
4573 text, since it may contain text that looks like parameters.
4574 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
4576 2008-03-11 Eric Blake <ebb9@byu.net>
4578 Improve error messages for common testsuite bugs.
4579 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
4580 macros for defining order-enforced macros.
4581 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
4582 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
4583 messages when order violations are detected.
4584 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
4585 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
4586 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
4587 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
4588 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
4589 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
4590 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
4591 (Banner-only test suite): New tests.
4592 Reported by Christopher Hulbert.
4594 Tweak m4_wrap to force FIFO or LIFO semantics.
4595 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
4596 (m4_wrap_lifo, _m4_wrap): New macros.
4597 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
4598 order, prior to m4sugar's.
4599 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
4601 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
4602 known order, prior to m4sh's.
4603 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
4605 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
4607 * tests/m4sh.at (AS_INIT cleanup): New test.
4608 * NEWS: Document the change.
4610 2008-03-10 Eric Blake <ebb9@byu.net>
4612 Encode nested autotest data.
4613 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
4614 (unusual file names): Likewise.
4615 (m4_pattern_allow): Remove loophole, to make it easier to catch
4616 poorly written tests.
4618 Factor some autotest tests.
4619 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
4620 common initialization.
4621 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
4622 (whitespace in absolute testdir, unusual file names): Use it.
4624 2008-03-06 Eric Blake <ebb9@byu.net>
4626 Minor documentation fix.
4627 * doc/autoconf.texi (Evaluation Macros): Fix typo.
4629 2008-03-04 Eric Blake <ebb9@byu.net>
4631 Make AT_CHECK act like a simple command.
4632 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
4633 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
4635 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4637 On MinGW, substitution of CR and 0xFF fails.
4638 * tests/torture.at (Substitute and define special characters):
4639 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
4642 2008-03-04 Eric Blake <ebb9@byu.net>
4644 Pull in recent maintainer improvements from coreutils.
4645 * GNUmakefile (_is-dist-target): 'make distclean' should not
4647 (_dummy): Change directories before removing autom4te.cache.
4648 (check dist distcheck install) [!_have-Makefile]: Provide nicer
4650 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
4651 builds, after initial bootstrap.
4652 * Makefile.am (distclean-local): Work around current automake bug.
4653 * Makefile.maint (ME): Allow VPATH usage.
4655 Use git-merge-changelog when available.
4656 * .gitattributes: New file.
4657 * README-hacking: Document use of git-merge-changelog.
4659 Work around cygwin bug.
4660 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
4661 "touch 't\'" creates regular file 't'.
4663 Ignore tests that require read-only directories under root.
4664 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
4665 no-write portion if user has root-like privileges.
4667 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4669 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
4671 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4673 autoreconf -m now honors $MAKE.
4674 * bin/autoreconf.in ($run_make): Renamed from ...
4675 ($make): ... this. Use now as command to run `make',
4676 overridden by $MAKE. Document this in --help output.
4677 * doc/autoconf.texi (autoreconf Invocation): Document
4678 all environment variables honored by autoreconf.
4680 Report by Paul Eggert.
4682 2008-03-03 Eric Blake <ebb9@byu.net>
4684 Documentation improvements.
4685 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
4686 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
4687 that preceeds @dots. Improve wording.
4688 (Text processing Macros): Drop `1' suffix from metasyntax variable
4689 name that preceeds @dots.
4690 (Number processing Macros): Drop `1' suffix from metasyntax
4691 variable name that preceeds @dots. Improve wording.
4692 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
4693 Suggested by Ralf Wildenhues.
4695 2008-03-02 Jim Meyering <meyering@redhat.com>
4697 Don't infloop upon "make dist".
4698 * GNUmakefile: Merge from coreutils.
4699 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
4701 * configure.ac (AC_INIT): Use .tarball-version, not .version.
4702 * build-aux/git-version-gen: Update from gnulib.
4704 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4706 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4707 Before using /dev/full, check that it is a writable character
4709 Report by Benoit Sigoure and Eric Blake.
4711 Actually test that @configure_input@ is expanded correctly.
4712 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4713 Actually check generated file contents for the name of the
4714 generated file, using AC_PROG_FGREP and $FGREP.
4716 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
4718 Be nice with file systems that don't handle unusual characters.
4719 * tests/atlocal.in (func_sanitize_file_name)
4720 (func_sanitize_dir_name): New shell functions.
4721 * tests/tools.at (autom4te and whitespace in file names)
4722 (autotools and whitespace in file names): Use them.
4723 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4724 Cover more potentially problemtic file names. Use the new
4727 Properly handle funny file names for headers in config.status.
4728 The test suite did not cover this bug because the code was not
4729 quoting properly the arguments of `rm -f' (which "fails" silently)
4730 as well as the arguments of `diff' (whose output was redirected to
4731 /dev/null so we couldn't see its error message).
4732 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
4733 file names passed to `rm' and `diff'.
4734 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4735 Add a regression test.
4737 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
4738 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4740 Properly expand @configure_input@ in config.status.
4741 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
4742 Escape the backslashes and ampersands in $configure_input before
4743 using it in the sed replacement string to expand @configure_input@.
4744 Report by Eric Blake and Patrick Welche.
4746 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4748 Ignore errors from ./run on w32.
4749 * tests/autotest.at (whitespace in absolute testdir):
4750 Ignore stderr for `./run' which fails to remove the
4751 busy test directory on w32.
4753 2008-02-22 Eric Blake <ebb9@byu.net>
4755 Improve documentation for writing autotest suites.
4756 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
4757 checks must live inside a test group.
4758 Reported by Christopher Hulbert.
4760 2008-02-21 Eric Blake <ebb9@byu.net>
4762 Sync git-version-gen from upstream.
4763 * build-aux/git-version-gen: Pull from gnulib.
4764 * configure.ac (AC_INIT): Adjust to new calling convention.
4766 2008-02-12 Eric Blake <ebb9@byu.net>
4768 Avoid trailing space in config.h with AC_DEFINE([var], []).
4769 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
4770 defines with a comment.
4772 2008-02-08 Eric Blake <ebb9@byu.net>
4774 Fix texinfo typos in previous patch.
4775 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
4776 Reported by Ralf Wildenhues.
4778 Describe a config.site that can be used for FHS compliance.
4779 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
4782 Reported by Jules Colding and Ralf Wildenhues.
4784 2008-02-02 Eric Blake <ebb9@byu.net>
4786 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
4788 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4790 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
4791 again, broken since introduction of `-C dir'.
4792 * tests/autotest.at (Choosing where testsuite is run): Test it.
4794 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
4796 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
4798 2008-01-29 Eric Blake <ebb9@byu.net>
4800 Fix more autotest regressions.
4801 * lib/autotest/general.m4 (AT_LINE): Fix regression from
4802 2007-10-04 when file name is `dnl'.
4803 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
4804 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
4805 yesterday in libtool's testsuite.
4806 (_AT_ARG_OPTION): Detect write failure.
4807 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
4808 make libtool's use kosher. Document m4_init.
4809 (Programming in M4sh): Document AS_INIT.
4810 (Writing Testsuites): Document limitation of AT_DATA file name.
4811 * tests/autotest.at (unusual file names): New test.
4812 (Banners, Keywords and ranges): Use correct shell.
4814 More corner cases in testsuite VAR=VALUE handling.
4815 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
4817 <PARSE_ARGS_END>: Also detect leading digits in assignments.
4818 * tests/autotest.at (Using atlocal): Enhance test to catch last
4821 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
4824 2008-01-28 Eric Blake <ebb9@byu.net>
4826 Fix regression in handling VAR=VALUE arguments to testsuite.
4827 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
4828 leading = as invalid. Defer use of command-line variable
4830 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
4831 regression in sourcing files.
4832 * tests/autotest.at (Using atlocal): New test to catch this.
4833 (Debugging a successful test, Choosing where testsuite is run):
4835 Reported by Ralf Wildenhues.
4837 Document grep peculiarity.
4838 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
4839 BSD behavior on binary input.
4841 Minor testsuite improvements.
4842 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
4843 forks when sanitizing PATH. Always output machine information,
4844 not just when atconfig was located.
4846 Add 'testsuite -C dir'.
4847 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
4849 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
4851 <DEFAULTS>: Delay computation of variables based on $at_dir...
4852 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
4853 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
4854 <PARSE_ARGS>: Parse new option.
4855 <HELP_TUNING>: Document it.
4856 * tests/autotest.at (Choosing where testsuite is run): New test
4858 (Keywords and ranges): Add test for missing -k argument.
4859 * NEWS: Document this.
4860 * doc/autoconf.texi (testsuite Invocation): Likewise.
4862 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4864 * build-aux/config.guess, build-aux/config.sub,
4865 build-aux/texinfo.tex: Sync from gnulib.
4866 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
4869 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4871 * doc/autoconf.texi (Particular Programs): Do not mention the
4872 Autoconf version in which the AC_PROG_INSTALL change was done.
4873 Suggested by Paul Eggert.
4875 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4877 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
4878 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
4879 mode, we change to the source directory, also set $ac_pwd so we
4880 do not go back to the build tree for the next config subdir.
4881 * tests/torture.at (Deep Package): Extend test to contain two
4882 config subdirs on the top level.
4884 Fix parallel `maintainer-check'.
4885 * Makefile.am (maintainer-check-tests): Depend on `all'.
4886 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
4887 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
4889 (maintainer-check): Serialize the testsuite runs.
4891 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
4892 in feature string for --enable/--with. Convert to underscore
4895 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
4896 `install -c file1 file2 dir' works.
4897 * doc/autoconf.texi (Particular Programs): Document this.
4900 2008-01-21 Eric Blake <ebb9@byu.net>
4902 Improve documentation about default include directives.
4903 * doc/autoconf.texi (Generic Headers, Generic Declarations)
4904 (Generic Structures, Generic Types)
4905 (Generic Compiler Characteristics): Add links to
4906 AC_INCLUDES_DEFAULT.
4907 Reported by Reuben Thomas.
4909 2008-01-15 Eric Blake <ebb9@byu.net>
4911 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
4913 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4915 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
4916 check_SCRIPTS. Building the wrappers for `all' allows help2man
4917 to use them for the manpages.
4918 Report by Benoit Sigoure.
4920 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
4922 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4924 Fix some write failure cases in Autotest.
4925 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
4926 upon write failures for --help, --version, --list.
4927 Guard against write failures for intermediate created scripts.
4928 <at_func_create_debugging_script>: Do not make the debugging
4929 script executable if it is not complete.
4931 2007-12-12 Eric Blake <ebb9@byu.net>
4933 Fix thinko in earlier patch - m4_join isn't defined yet.
4934 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
4935 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
4936 (m4_require): Use m4_do, not m4_join.
4938 Fix some whitespace tests on cygwin.
4939 * tests/tools.at (autom4te and whitespace in file names): Restore
4940 font-lock. Create $TMPDIR before it might be used.
4942 Fix spurious testsuite failure with M4 1.4.11.
4943 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
4945 Optimize AC_REQUIRE.
4946 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
4947 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
4948 (m4_require): Avoid extra macro calls.
4950 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4952 * tests/torture.at (srcdir): Fix quoting.
4954 Do not pass top_srcdir to configure scripts in testsuite.
4955 * tests/autotest.at (srcdir propagation): Copy install-sh to
4957 (my only test): Drop setting of `top_srcdir'.
4958 * tests/base.at (Input/Output): Likewise.
4959 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
4960 config.guess, and config.sub to test source tree.
4961 Drop AC_CONFIG_AUX_DIR setting.
4962 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
4963 * tests/torture.at (Substitute a 2000-byte string): Drop
4964 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
4965 (Substitute a newline, datarootdir workaround): Likewise.
4966 (Define a newline): Adjust for linenumber changes in configure.ac.
4967 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
4969 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
4970 if `pwd` contains whitespace.
4972 Quote $abs_top_srcdir in tests.
4973 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
4974 * tests/tools.at (Syntax of the shell scripts): Likewise.
4976 * tests/m4sh.at (LINENO): Quote $0.
4978 Fix testsuite program wrapper for whitespace in `pwd`.
4979 The problem here is that the usual mantra is that command
4980 variables can contain arguments, thus we cannot just escape
4981 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
4982 $top_builddir/tests directory early in $PATH, so that the
4983 wrappers are found by their plain name.
4984 * tests/wrapper.as: Put $testdir early in $PATH.
4985 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
4987 Proper config.status --file/--header and $srcdir escaping.
4988 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
4989 characters in $ac_file_inputs.
4990 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
4992 * tests/torture.at (datarootdir workaround): Adjust.
4993 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
4995 Fix Autotest for whitespace in `pwd`.
4996 * lib/autotest/general.m4 (AT_INIT)
4997 <at_func_create_debugging_script, Driver Loop>:
4998 Quote $at_group_dir.
4999 * tests/autotest.at (whitespace in absolute testdir): New test.
5001 * lib/autom4te.in: Quote @datadir@.
5003 Proper file name escaping in Autoconf programs and Perl modules.
5004 This includes escaping of characters special to the shell
5005 as well as special to Perl, e.g., leading `<' or `>'.
5006 For example, when $file starts with `>', `open ">$file"'
5007 wrongly tries to append to a different file.
5008 * bin/autoconf.as: Fix quoting for autom4te options.
5009 * lib/Autom4te/General.pm (shell_quote): New function, taken
5010 from coreutils, written by Jim Meyering.
5012 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
5014 * bin/autoreconf.in (parse_args): Likewise.
5015 * bin/autoscan.in (main): Likewise.
5016 * bin/autoupdate.in (main): Likewise.
5017 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
5018 * bin/ifnames.in: Likewise, XFile usage fixes.
5019 * tests/tools.at (autom4te and whitespace in file names): Extend
5020 test. Test twice, with special characters allowed on w32, and the
5021 rest. Test leading and trailing whitespace, for `open_quote'.
5022 (autotools and whitespace in file names): New, analogous test.
5023 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
5024 by Russ Allbery and Eric Blake.
5027 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
5028 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
5029 * lib/Autom4te/FileUtils.pm (open_quote): New function.
5030 (update_file, contents): Use it.
5032 * Makefile.am (autom4te-update): Rewrite for git.
5034 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5036 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
5038 Fix copyright years.
5039 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
5040 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
5042 2007-12-04 Eric Blake <ebb9@byu.net>
5044 Manually resync with gnulib, since 'make cvs-update' no longer works.
5045 * build-aux/config.guess: New upstream version.
5046 * build-aux/config.sub: Likewise.
5048 When using older automake, don't downgrade build-aux/texinfo.tex.
5049 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
5050 * doc/Makefile.am (TEXINFO_TEX): Add.
5052 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
5054 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
5055 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
5056 #undef as this runs afoul of our new way of creating config.h.
5057 Problem reported by Jim Meyering in
5058 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
5060 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5062 Fix autom4te for unusual characters in input file names.
5063 * bin/autom4te.in (files_to_options): Quote active characters
5065 * tests/tools.at (autom4te and white space in file names):
5068 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
5069 Document that Tru64 awk always splits $0.
5071 2007-11-24 Stepan Kasal <kasal@ucw.cz>
5073 * lib/autotest/general.m4 (AT_INIT): Do not extract the
5074 `#AT_STOP_...' line at the end of each test.
5076 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5078 * lib/autotest/general.m4 (AT_INIT): For awk line number
5079 extraction script, ensure `$at_group' has a defined value
5080 even for the empty set, and properly quote its usage inside
5083 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5085 * doc/autoconf.texi (Shell Functions): New chapter. Document
5086 IRIX sh $0 issue in functions, move content from ...
5087 (Portable Shell): ... here.
5088 (Shell Script Compiler): Note that shell functions are not
5089 totally unportable any more.
5091 2007-11-22 Stepan Kasal <kasal@ucw.cz>
5092 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5094 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
5095 extracting the line numbers of the last needed test.
5097 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5099 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
5102 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5104 Fix IRIX testsuite debugging failures: $0 in functions.
5105 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
5106 Do not use $0 inside a function, as IRIX sh will set that to the
5107 function name rather than the script invocation name.
5109 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
5110 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5112 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
5113 to extract test scripts.
5114 (AT_INIT): Extract and cache test script line numbers.
5116 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5118 * lib/autotest/general.m4: Revert 2007-11-15 patch and
5119 subsequent fixups; the awk -> here-document conversion trashes
5120 performance too much with AIX sh.
5122 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5124 * tests/local.at: Do not test m4, perl with AT_TESTED.
5126 Diagnose and guard against write errors dealing with config.status.
5127 The general idea is this: all write failures from `configure'
5128 writing `config.status' are indicated by $ac_write_error, which
5129 is only checked at the end. This is safe because config.status
5130 code is not executed before the file is complete. Other write
5131 failures, be they inside config.status, or in sub shell/awk
5132 scripts spawned from configure or config.status, typically need
5133 earlier checking, as their results are used right afterwards.
5134 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
5135 before writing config.status, check afterwards.
5136 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
5137 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
5138 Set `ac_write_error' for write failures to config.status. Barf
5139 upon write failures to temporary files.
5140 Adjust note about closing and reopening the here-document.
5141 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
5142 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
5143 reopening the here-document.
5144 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5145 Ensure `ac_write_error' does not escape into config.status.
5146 Also, add a couple of code paths not yet exercised in the test
5147 suite: a config file with input from stdin, and a config header
5149 Suggestion for catching write errors by Bruno Haible.
5151 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5153 Avoid error with Tru64 awk and testsuite lines with many words.
5154 * lib/autotest/general.m4 (AT_INIT): In the awk script that
5155 reads the testsuite, set the field separator to an unusual value,
5156 in order to not run over the limit of 199 fields. Tru64 4.0D awk
5157 even splits the input if $i, i>0, was never accessed in the script.
5159 Revert 2007-10-17 change.
5160 * TODO: Multiline args in config files and headers mean something
5161 different and are not fixed, see
5162 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
5163 Report by Stepan Kasal.
5165 * doc/autoconf.texi (Generic Programs): Fix typo.
5167 2007-11-16 Stepan Kasal <kasal@ucw.cz>
5169 AC_*_TOOL does not canonicalize the prefix
5170 * doc/autoconf.texi (Generic Programs): Do not say that
5171 the *_TOOL macros canonicalize, they simply use the `host_alias'.
5173 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5175 Diagnose write errors in config.status instantiations.
5176 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
5177 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
5179 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5180 Extend test to also check for some write error failures, using...
5181 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
5182 Report by Bruno Haible.
5185 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
5187 (_AT_CHECK): Use less indentation, to save space.
5189 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5191 Add witness macro for @top_build_prefix@ substitution.
5192 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
5193 (_AC_OUTPUT_FILE): Mention it here.
5195 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
5196 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5198 * lib/autotest/general.m4 (at_func_test): Remove.
5199 (AT_INIT): Pre-extract test groups into separate files.
5200 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
5201 Remove at-test-source files together with the $at_group_dir.
5202 * tests/autotest.at (Long test source lines): New test.
5204 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5206 Shell functions and variables may share a namespace.
5207 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
5210 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
5212 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
5215 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5217 * lib/autoconf/status.m4: Fix a couple of comment typos.
5219 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
5221 2007-11-13 Jim Meyering <meyering@redhat.com>
5223 Clean up the rule to create "expr".
5224 * tests/Makefile.am (expr): Don't redirect directly to target.
5225 Redirect just once, not for each echo statement.
5226 Use $@, not literal "expr".
5228 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
5230 Don't worry about preprocessor when testing long long.
5231 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
5232 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
5233 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
5234 These no longer check for preprocessor flaws.
5235 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
5236 Do not check for preprocessor flaws.
5238 2007-11-13 Jim Meyering <meyering@redhat.com>
5240 Adapt dependencies, now that a version change doesn't modify configure.ac
5241 * GNUmakefile: Remove "make clean" kludge.
5242 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
5244 Don't redirect directly to target.
5245 Use $@, not literal "version.m4".
5247 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5249 * doc/autoconf.texi (Making testsuite Scripts): Document
5250 ":;{" shorthand as in previous patch.
5252 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
5254 * doc/autoconf.texi (Limitations of Builtins): Document problem
5255 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
5257 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
5258 Use ":;{" shorthand.
5259 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
5261 2007-11-12 Jim Meyering <meyering@redhat.com>
5263 Add more non-srcdir build support.
5264 * GNUmakefile (dummy): Split a long line.
5265 Add -v option to autoreconf invocation.
5267 Remove the autoreconf-provided INSTALL, so that we regenerate it.
5268 * GNUmakefile (dummy): Remove INSTALL.
5270 Remove racy commands to build scripts in bin/ and tests/.
5271 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
5272 are guaranteed to be built, remove the rules that tried to build
5273 them. Before, with a parallel build, these rules could lead to
5274 two processes writing tests/wrapper.in concurrently.
5276 Build in man/ only *after* building in bin/ and tests/.
5277 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
5278 in both bin/ and tests/.
5280 Accommodate non-srcdir build-from-checkout.
5281 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
5282 Use git's --git-dir=$srcdir/.git option.
5283 Add quotes, in case tarball_version_file contains shell meta-characters.
5284 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
5285 * configure.ac: Pass "." to git-version-gen.
5287 Avoid spurious test failures due to version skew.
5288 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
5290 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5292 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
5293 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
5294 Remove conftest.dSYM directory.
5295 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
5296 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
5297 Remove `conftest.*' recursively.
5298 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
5299 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5301 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
5303 Report and analysis by Jeff Squyres and Peter O'Gorman.
5305 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
5307 Fix typos in variable names.
5308 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
5310 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
5312 Document that $((expression)) is not portable.
5313 * doc/autoconf.texi (Shell Substitutions): Here.
5315 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5317 Ignore configure --help* errors due to LINENO-impaired shells.
5318 * tests/torture.at (Configuring subdirectories, Deep Package):
5319 In the --help* tests in read-only trees, make `.' temporarily
5320 writable again for the `stderr' file, and ignore errors due to
5321 the attempt to write configure.lineno.
5322 Report by Patrick Welche.
5324 2007-11-10 Jim Meyering <meyering@redhat.com>
5326 Generate package.m4 in build-dir, not srcdir.
5327 * tests/Makefile.am (package.m4): Adjust target.
5328 Don't redirect directly to $@.
5329 (CLEANFILES): Add package.m4.
5330 ($(TESTSUITE)): Depend on just-built package.m4, not the one
5332 When running $(AUTOTEST), search "." before searching $(srcdir).
5334 Avoid a race condition that would make parallel "distclean" fail.
5335 * tests/Makefile.am (distclean-generic): Replace the default,
5336 automake-provided rule with an identical one, but with an additional
5337 dependency on distclean-local. Simply adding the dependency would
5338 cause automake not to emit the rule at all.
5339 * BUGS: Building with -jN works, now.
5341 Distribute git-version-gen.
5342 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
5343 since GNUmakefile is distributed, and requires it for dist* rules.
5345 Remove two more generated files from version control.
5346 * INSTALL: Remove generated file.
5347 * lib/autoscan/autoscan.list: Remove generated file.
5349 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
5351 * GNUmakefile (PATH): Remove stray apostrophes; they become
5352 part of PATH, which isn't wanted here.
5354 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5356 New config files output variable `top_build_prefix'.
5357 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
5359 * doc/autoconf.texi (Preset Output Variables): Document it.
5361 Report by Bob Friesenhahn.
5363 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
5364 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
5365 function, to parametrize arithmetic with expr vs. the shell.
5366 Use it where possible.
5367 Suggestion by Benoit Sigoure.
5369 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
5371 Adjust the documentation of autotest WRT atlocal.
5372 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
5373 when using Automake, to write a rule to produce atlocal, since it's
5374 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
5375 distributed, not atconfig.in.
5377 2007-11-04 Eric Blake <ebb9@byu.net>
5379 Update list information.
5380 * README: Mention new autoconf-commit list.
5381 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
5383 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5385 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
5387 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
5389 * build-aux/.gitignore: Ignore mkinstalldirs.
5391 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
5393 2007-11-03 Jim Meyering <meyering@redhat.com>
5395 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
5396 * build-aux/git-version-gen: This syncs from coreutils.
5398 Adjust the build procedure so "make check" works reliably.
5399 * README-hacking: Include an extra step between "make" and
5400 "make check" to ensure that the latter passes.
5402 Use just-built tools, when possible.
5403 * GNUmakefile (PATH): Set and export here, ...
5404 (dummy): ... rather than here.
5406 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5407 and Andreas Schwab <schwab@suse.de>
5409 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
5412 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5414 * configure.ac (AC_PREREQ): Require version 2.60, for
5415 AC_PROG_SED, AC_PROG_GREP.
5417 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
5418 and Jim Meyering <meyering@redhat.com>
5419 and Andreas Schwab <schwab@suse.de>
5420 and Eric Blake <ebb9@byu.net>
5422 Document a bug in GNU Bash with compound commands and redirections.
5423 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
5424 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
5427 2007-11-03 Eric Blake <ebb9@byu.net>
5429 Support m4 1.4.5 in testsuite.
5430 * tests/torture.at (Define a newline): Exclude line numbers in
5432 Reported by Ralf Wildenhues.
5434 2007-11-03 Jim Meyering <meyering@redhat.com>
5436 Remove automake-provided files from version control.
5437 * build-aux/elisp-comp: Remove file.
5438 * build-aux/install-sh: Remove file.
5439 * build-aux/missing: Remove file.
5440 * build-aux/mdate-sh: Remove file.
5441 * build-aux/.gitignore: New file.
5442 Suggestion from Ralf Wildenhues.
5444 2007-11-03 Eric Blake <ebb9@byu.net>
5446 Adjust version comparison to account for git snapshot numbers.
5447 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
5448 component separator.
5449 * doc/autoconf.texi (Number processing Macros)
5450 <m4_version_compare>: Document this change.
5451 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
5453 2007-10-30 Bruno Haible <bruno@clisp.org>
5455 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
5456 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5457 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
5458 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
5459 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
5460 Suggested by Paul Eggert.
5462 2007-10-28 Jim Meyering <meyering@redhat.com>
5464 * README-hacking: Autoconf, Automake, and Perl are required to build.
5465 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
5467 2007-10-28 Jim Meyering <meyering@redhat.com>
5469 README-hacking: Recommend running autoreconf -vi.
5470 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
5471 so that we use just-built tools when they're available.
5472 Suggestions from Ralf Wildenhues.
5474 2007-10-28 Jim Meyering <meyering@redhat.com>
5476 Make inter-release --version output more useful.
5478 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
5479 which indicates that it is built using the 19th change set
5480 (in _some_ repository) following the "v2.61a" tag, and that 58dd
5481 is a prefix of the commit SHA1.
5482 * build-aux/git-version-gen: New file.
5483 * configure.ac: Run it to set the version.
5484 (AM_INIT_AUTOMAKE): Don't check NEWS here.
5485 * Makefile.am (dist-hook): Arrange so that .version appears only
5486 in distribution tarballs, never in a checked-out repository.
5487 * .gitignore: Add .version here, too. Just in case.
5488 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
5489 not configure.ac, now that the version number changes automatically.
5491 Ensure that $(VERSION) is up to date for dist-related targets.
5492 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
5493 git-version-gen doesn't match $(VERSION), but only for dist targets.
5495 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5497 Fix `Deep Package' failure with a configure script early in PATH
5498 * tests/torture.at (Deep Package): Add `.' early in PATH.
5499 Report by Jim Meyering.
5501 2007-10-27 Jim Meyering <meyering@redhat.com>
5503 Remove all generated files from version control.
5504 * aclocal.m4: Remove.
5505 * configure: Remove.
5506 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
5507 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
5508 * README-hacking: New file: how to build from just-checked-out sources.
5510 2007-10-23 Eric Blake <ebb9@byu.net>
5512 Improve corner case of m4_expand.
5513 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
5515 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
5516 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
5519 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
5521 * doc/make-stds.texi: Update from gnulib.
5523 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
5524 and Eric Blake <ebb9@byu.net>
5526 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
5527 problem reported by Bruno Haible in
5528 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
5530 2007-10-22 Eric Blake <ebb9@byu.net>
5532 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
5535 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
5537 Don't check for bug in HP-UX 11.00 cpp.
5538 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5539 Use -1ull rather than -1u, since that causes problems with gnulib; see
5540 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
5542 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5544 * tests/autotest.at (Backquote command substitution)
5545 (Multiline backquote command substitution)
5546 (Parenthetical command substitution)
5547 (Multiline parenthetical command substitution): Fix typos in
5550 2007-10-21 Eric Blake <ebb9@byu.net>
5552 * configure: Regenerate.
5554 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5556 Fix config status generation with Tru64 ksh.
5557 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
5558 escaping of backslash in here-documents.
5560 Fix `Deep Package' test failure on FreeBSD.
5561 * tests/torture.at (Deep Package): Do not add `.' to $PATH
5562 unnecessarily. Do not try running `/bin/sh configure' with a
5563 configure script to be found in $PATH, if the shell does not do
5564 this resolution. Fixes test failure on FreeBSD.
5566 Fix config header generation with AIX awk.
5567 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
5568 script, use helper array D_is_set, as `" 0"' does not evaluate
5569 to true for AIX awk.
5571 2007-10-21 Eric Blake <ebb9@byu.net>
5573 * tests/autotest.at (Banners): Reinstate test, with typo
5576 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5578 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
5579 <at_func_validate_ranges>: ... using this new function.
5580 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
5581 Test --list with ranges and keywords.
5582 (Banners): Remove one now-failing test.
5584 2007-10-20 Eric Blake <ebb9@byu.net>
5586 Fix testsuite --list subset.
5587 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
5588 back to spaces, before listing subset of tests.
5589 Reported by Ralf Wildenhues.
5591 2007-10-19 Eric Blake <ebb9@byu.net>
5593 s/parenthesis/parentheses/ where appropriate.
5594 * doc/autoconf.texi: Fix typos.
5595 * lib/m4sugar/m4sugar.m4: Likewise.
5596 Reported by Ralf Wildenhues.
5598 Document m4_expand limitation.
5599 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
5601 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
5602 (Writing Testsuites): Mention limitations inherited from
5605 Improve AT_BANNER handling.
5606 * lib/autotest/general.m4 (BANNERS): New named diversion.
5607 (TESTS_END): Diversion no longer used.
5608 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
5609 shell function, which prints only as needed, using an associative
5610 array of banner text from a special diversion.
5611 <PARSE_ARGS_END>: No longer need awk to find banners.
5612 <TESTS>: Banners are no longer processed by main driver loop, so
5613 we no longer need case statement.
5614 (AT_BANNER): Rewrite to populate new diversion.
5615 (AT_SETUP): Each test invokes its own banner. No output is needed
5616 to the TESTS diversion.
5617 * doc/autoconf.texi (Writing Testsuites): Document slight
5619 * tests/autotest.at (AT_BANNERS): Enhance test.
5620 * NEWS: Document AT_BANNER.
5622 Document and test AT_BANNER.
5623 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
5624 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
5625 (AT_CHECK_BANNERS): New test.
5628 * doc/autoconf.texi (Text processing Macros) <m4_strip>
5629 <m4_text_wrap>: Clarify and fix typos.
5631 2007-10-18 Eric Blake <ebb9@byu.net>
5633 Ignore `make dist' changelogs in testsuite.log.
5634 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
5635 directories matching AT_PACKAGE_TARNAME-*.
5637 Fix AT_TESTED, AT_KEYWORDS.
5638 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
5639 occurs in string, as duplicates may be added.
5640 (_m4_append_uniq): New helper macro.
5641 (m4_append_uniq_w): New macro.
5642 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
5643 duplication bug by using new macro.
5644 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
5645 programs with stdin redirected, so programs that don't
5646 understand --version won't try to behave interactively.
5647 * tests/autotest.at (Tested programs): Catch this bug.
5648 * tests/m4sugar.at (m4@&t@_append): Test new macro.
5649 * tests/local.at (AT_TESTED): Add m4, perl.
5650 * doc/autoconf.texi (Text processing Macros): Document
5651 m4_append_uniq_w, and update text on m4_append.
5652 * NEWS: Document the addition.
5654 2007-10-17 Eric Blake <ebb9@byu.net>
5657 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
5659 (AT_INIT) <at_func_create_debugging_script>: ...to shell
5661 (AT_INIT): Defer function declarations until after --help,
5662 --version. Format functions consistently, trying to fit in 80
5664 (TEST_FUNCTIONS): Based on recent changes, rename...
5665 (TEST_GROUPS): ...to this.
5668 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
5669 * configure: Regenerate.
5670 Reported by Bob Friesenhahn.
5672 Test recent additions.
5673 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
5674 (m4@&t_max and m4@&t_min): New tests.
5675 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
5678 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5680 * TODO: multiline args in config files and headers work now.
5682 Autotest: do not use shell functions for individual tests.
5683 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
5684 extract the source test source, do not invoke it.
5685 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
5686 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
5687 expect exit status of 1.
5688 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
5690 * lib/autotest/general.m4 (at_func_test): Fix test extraction
5693 2007-10-17 Eric Blake <ebb9@byu.net>
5695 Fix m4_combine for empty suffix list.
5696 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
5697 * doc/autoconf.texi (Text processing Macros): Document this.
5699 Add m4_combine, based on Libtool's lt_combine.
5700 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
5701 * doc/autoconf.texi (Text processing Macros): Document it.
5704 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5706 Fix `configure --help=recursive' in unconfigured/read-only trees.
5707 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
5708 is not writable, use 'cp -p' in this case, in the hope that it
5709 will not actually be needed. Still try removing files, in case
5710 of other write errors.
5711 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
5712 use $as_myself, not $0.
5713 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
5714 exist, try again in the the source tree. This change assumes
5715 that the subpackage configure script is capable of running
5716 --help=recursive in the source tree.
5717 * tests/torture.at (Configuring subdirectories, Deep Package):
5718 Adjust tests to expose both issues, also try invocation as
5719 `sh configure ...' and plain `configure ...' with PATH adjusted.
5720 * NEWS, THANKS: Update.
5721 Report by Hans Ulrich Niedermann.
5723 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
5725 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
5726 Problem reported by H.Merijn Brand in
5727 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
5728 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
5729 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5730 Check that preprocessor handles 64-bit ints, too.
5732 2007-10-16 Eric Blake <ebb9@byu.net>
5734 m4_map is a looping construct.
5735 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
5737 Fix m4_map, and add some more utility macros.
5738 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
5739 (m4_echo, m4_make_list): New documented macros.
5740 (_m4_quote, _m4_shift2): New helper macros.
5741 (m4_map): Change semantics to allow calling macro without
5743 (m4_map_sep): Likewise. Also change semantics to quote separator,
5744 to match m4_join and m4_append.
5745 (m4_version_unletter): Fix use of m4_map.
5746 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
5747 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
5748 (Text processing Macros): Mention m4_dquote as a faster
5749 alternative to joining with commas.
5750 (Looping constructs): Document m4_map, m4_map_sep.
5751 * NEWS: Mention new macros.
5753 A few more m4sugar improvements, to benefit libtool.
5754 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
5755 of expansion by avoiding extra uses of $@.
5756 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
5757 (_m4_cdr): New helper macro.
5758 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
5759 (_m4_shift3): New helper macro.
5760 (_m4_foreach): Swap argument order, and use new macro to reduce
5762 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
5763 count must be positive.
5765 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
5766 Reported by Ralf Wildenhues.
5768 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5770 * doc/autoconf.texi (Portable Shell): Improve description of zsh
5771 4.x function subshell bug with exit and trap.
5773 2007-10-15 Eric Blake <ebb9@byu.net>
5775 Enhance AS_HELP_STRING.
5776 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
5777 and reduce number of expansions.
5778 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
5779 and to take indent and wrap column numbers.
5780 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
5781 * doc/autoconf.texi (Pretty Help Strings): Document details about
5783 (Text processing Macros): Minor tweaks.
5784 * NEWS: Document this change.
5786 Fix 2007-10-03 regression with AT_SETUP([a, b]).
5787 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
5788 (m4_text_box): Use it.
5789 * lib/autotest/general.m4 (AT_SETUP): Use it.
5790 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
5791 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
5792 * NEWS: Revert caveat about semantics change on comma.
5793 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
5795 2007-10-13 Eric Blake <ebb9@byu.net>
5797 Change m4_join to match libtool's ltsugar semantics.
5798 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
5799 Ignore empty arguments, using...
5800 (_m4_join): ...this new helper.
5801 * tests/m4sugar.at (m4@&t@_join): New test.
5802 * doc/autoconf.texi (Text processing Macros): Document new
5803 semantics of m4_join.
5805 Make AC_PREREQ faster and more robust.
5806 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
5807 (m4_version_prereq): Inline constant expansions.
5808 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
5809 Rewrite in terms of [] list, not () list.
5810 (_m4_list_cmp, _m4_version_unletter): New helper macros.
5811 (m4_version_unletter): Write wrapper around new implementation to
5812 preserve old semantics.
5813 (m4_version_compare): Pass correct type of list, and avoid
5814 overhead of flattening expressions too early.
5815 (m4_do): Move to be near other quoting macros.
5816 (m4_max, m4_min): Always result in decimal output.
5817 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
5819 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
5820 (Text processing Macros): Move m4_version_compare...
5821 (Number processing Macros): ...to this new node; document m4_cmp,
5822 m4_list_cmp, m4_sign, m4_max, m4_min.
5823 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
5824 up on bugs fixed by this patch.
5825 * NEWS: Document new macros.
5827 2007-10-12 Eric Blake <ebb9@byu.net>
5829 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
5830 (Reporting Messages): Fix underfull hbox.
5832 Some more m4sugar documentation.
5833 * lib/m4sugar/m4sugar.m4: Clean up macro order.
5834 * doc/autoconf.texi (Programming in M4): Lighten the warning on
5835 using m4sugar; it is stabilizing and useful.
5836 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
5837 m4_divert, m4_undivert, __file__, __line__, __oline__.
5838 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
5839 m4_fatal, m4_location, m4_warn.
5840 (Diversion support): New node, documenting m4_divert_push,
5841 m4_divert_pop, m4_divert_text, m4_divert_once.
5842 (Text processing Macros): Sort. Add m4_flatten, m4_join,
5843 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
5844 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
5846 (Printing Messages): Change cross-reference.
5848 Document interaction of recent m4_append change with Libtool HEAD.
5849 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
5850 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
5851 * tests/m4sugar.at (m4@&t@_append): New test.
5852 * NEWS: Document semantics change.
5853 * doc/autoconf.texi (Text processing Macros): Likewise.
5855 s/AC_VERSION/AC_AUTOCONF_VERSION/.
5856 * doc/autoconf.texi (Versioning): Change the name.
5858 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
5859 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
5860 Suggested by Ralf Wildenhues.
5863 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
5864 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
5866 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
5867 (Programming in M4sh, Macro Names): Beef up description of
5868 namespaces reserved for autoconf.
5869 * configure: Regenerate.
5871 2007-10-12 Eric Blake <ebb9@byu.net>
5872 and Paolo Bonzini <bonzini@gnu.org>
5874 Speed up execution of subset of testsuite.
5875 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
5876 (AT_INIT) <at_func_test>: New shell function.
5877 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
5878 (AT_INIT) <at_test_source> New variable, names file that holds
5879 current test function definition.
5880 (AT_SETUP): Start the shell function at_func_test_#, into the
5881 TEST_FUNCTIONS diversion.
5882 (AT_CLEANUP): End the shell function. Simplify the TESTS
5883 diversion to invoke the function.
5885 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5887 * .gitignore: Ignore tags and TAGS files.
5889 2007-10-11 Eric Blake <ebb9@byu.net>
5891 Config header generation followup.
5892 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
5893 which won't work with the preprocessor nor with the awk
5895 * tests/torture.at (Define a newline): Test raw newline detection,
5897 * doc/autoconf.texi (Defining Symbols): Document recent change to
5898 allow backslash-newline.
5901 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5903 * lib/autotest/general.m4: Put function braces in separate line.
5905 2007-10-10 Eric Blake <ebb9@byu.net>
5907 Avoid some overhead from m4_defn and m4_popdef.
5908 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
5909 pass on first argument, since we are documented that way.
5910 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
5911 check where it is safe to do so.
5912 (m4_append): Likewise, and quote the separator.
5913 (m4_text_box): Likewise, and avoid regex, also be robust to
5914 expansion and quadrigraphs.
5916 Another AC_DEFINE speedup.
5917 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
5919 (_AC_DEFINE_Q): ...here, and only do it once.
5920 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
5921 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
5922 introduced 2007-10-05.
5925 * lib/autoconf/general.m4: Use consistent indentation.
5926 * configure: Regenerate.
5928 * NEWS: Announce recent round of speed optimizations.
5930 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5932 * NEWS: Announce shell function usage in Autotest.
5934 2007-10-10 Eric Blake <ebb9@byu.net>
5935 and Paul Eggert <eggert@cs.ucla.edu>
5937 Reduce number of forks at startup.
5938 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
5940 * configure: Regenerate.
5942 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5943 and Paul Eggert <eggert@cs.ucla.edu>
5945 Use awk for config header generation.
5946 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
5947 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
5948 header machinery for use with awk and placement outside the main
5949 config.status instantiation loop. Retain multi-line defines
5950 through backslash-newline combinations, do not split the script
5952 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
5953 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
5955 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
5958 * tests/torture.at (#define header templates): Extend test by
5959 several more cases: white space before and after `#', macros
5960 with parameters in config.hin and as defines, multi-line macro
5962 (Torturing config.status): Use a define value twice the length
5963 in order to exercise the awk literal string limit.
5964 (Substitute and define special characters): Also try special
5965 delimiter, to exercise the special-case code.
5966 Suggestion by Eric Lemings.
5968 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5970 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
5972 2007-10-09 Eric Blake <ebb9@byu.net>
5974 Improve header of bin/autoconf.
5975 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
5976 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
5978 * bin/autoconf.as: Put copyright up front in generated file.
5980 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
5982 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5984 * doc/install.texi (Basic Installation): Document `uninstall'.
5985 * INSTALL: Regenerate.
5986 Suggestion by Roberto Bagnara.
5988 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
5990 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
5992 Adjust doc. to match latest gnulib.
5993 * build-aux/texinfo.tex: Sync from gnulib.
5994 * doc/standards.texi: Likewise.
5995 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
5996 Documentation License" and remove the subsection. This simplifies
5997 the manual a bit and is more like what other GNU projects do
6000 2007-10-08 Eric Blake <ebb9@byu.net>
6003 * configure: Regenerate.
6005 Fix regression in m4_text_wrap from 2007-10-05.
6006 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
6008 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
6010 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
6011 * tests/autotest.at (Long test title, Longer test title): Test
6012 this fix, beyond what AS_HELP_STRING already tests.
6014 Avoid m4 warnings on bad m4_format usage.
6015 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
6017 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
6018 enough arguments are provided.
6020 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
6022 * doc/autoconf.texi (Shell portability): Document shell function
6025 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
6027 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
6028 at_func_check_skip, at_func_check_status, at_func_filter_trace,
6029 at_func_log_failure shell functions. Use test -s to avoid
6030 useless diff invocations.
6031 (at_func_check_newline): Renamed from at_check_newline.
6032 (AT_SETUP): Define AT_captured_files to empty.
6033 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
6034 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
6035 the shell functions.
6037 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
6039 Don't assume "." is writeable, for commands like "autoconf --version".
6040 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
6041 different heuristic instead, one that doesn't rely on creating
6044 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
6047 2007-10-05 Jim Meyering <meyering@redhat.com>
6049 Avoid makeinfo warnings.
6050 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
6051 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
6053 2007-10-05 Eric Blake <ebb9@byu.net>
6055 Resolve Python issue 1676135 regarding configure directory args.
6056 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
6057 slashes from directory arguments.
6058 * tests/base.at (configure directories): New test.
6059 * doc/autoconf.texi (Installation Directory Variables): Document
6063 Reported by Björn Lindqvist.
6065 Provide better short-circuiting operation.
6066 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
6067 (m4_text_wrap): Use it. Also avoid useless m4_for.
6068 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
6070 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
6071 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
6073 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
6074 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
6075 (Conditional constructs): ...here, to new section. Also document
6076 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
6077 m4_bpatsubsts, and m4_default.
6078 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
6081 2007-10-04 Eric Blake <ebb9@byu.net>
6083 Fix recent testsuite failures.
6084 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
6085 that must not be re-expanded after AS_ESCAPE.
6086 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
6087 checking if it is an identifier.
6090 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
6091 leading whitespace, as it caused space-tab in testsuite.
6092 (AT_INIT): Avoid trailing newlines in testsuite.
6094 One more round of m4_foreach_w speedups.
6095 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
6097 (_m4_split): Avoid useless expansions inside definition. Move
6098 argument defaulting...
6099 (m4_split): ...here. Change alternate quote to something less
6100 likely to appear in $1. Also, special case space as regexp...
6101 (m4_foreach_w): ...to avoid regexp on single-term list.
6102 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
6103 useless expansions inside definition.
6104 * tests/m4sugar.at (m4@&t@_split): Add tests.
6106 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
6108 * general.m4 (AT_INIT): Add at_check_newline function.
6109 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
6110 (_AT_CHECK): Don't use at_trace_this.
6112 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
6114 Fix previous commit.
6115 * lib/autotest/general.m4 (AT_LINE): Fix regex.
6117 2007-10-04 Eric Blake <ebb9@byu.net>
6119 Speed up building testsuites.
6120 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
6121 changed since last time. Use simpler regex.
6123 2007-10-03 Eric Blake <ebb9@byu.net>
6125 Optimize checking for identifiers.
6126 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
6127 macros, more efficient than regex on m4_re_word.
6128 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
6129 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
6131 * configure: Regenerate.
6133 Remove some XFAILs, and make AT_SETUP output line up.
6134 * lib/autotest/general.m4 (AT_SETUP): Only expand description
6135 once; thereafter, use its expansion, properly quoted.
6136 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
6137 expansion with arguments, and check for aligned output.
6138 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
6139 Add a test for macros with parameters.
6140 * NEWS: Document the semantics change.
6141 * tests/base.at: Fix test titles containing commas.
6142 * tests/compile.at: Likewise.
6143 * tests/tools.at: Likewise.
6144 * tests/torture.at: Likewise.
6146 Another round of regex avoidance.
6147 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
6148 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
6149 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
6150 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
6151 character ranges useful in m4_translit.
6152 (m4_toupper, m4_tolower): Optimize the constant portion of
6154 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
6155 creates $, and reject [] thanks to AS_TR_SH rewrite.
6156 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
6157 (AS_ESCAPE): Factor...
6158 (_AS_ESCAPE): ...into new macro, with second argument required.
6159 Avoid regex in common case.
6160 (_AS_QUOTE): Use new macro.
6163 * lib/autoconf/types.m4: Avoid space-tab.
6164 * lib/m4sugar/m4sh.m4: Use tab consistently.
6166 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
6168 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
6169 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
6170 should remove m4_shiftn entirely?
6171 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
6172 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
6173 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
6174 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
6175 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
6177 2007-10-03 Eric Blake <ebb9@byu.net>
6180 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
6182 2007-10-02 Eric Blake <ebb9@byu.net>
6184 Optimize appending text.
6185 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
6189 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
6190 lot of hot spots; optimize it for 2 and 3 shifts.
6192 Optimize AC_PREREQ and other m4sugar numerics.
6193 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
6194 (m4_cmp): Compare arbitrary expressions, without overflow.
6195 (m4_version_unletter): Also recognize capital letters.
6196 (m4_version_compare): Avoid regex when splitting version number
6199 2007-10-01 Eric Blake <ebb9@byu.net>
6201 Once again, reject IRIX m4.
6202 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
6203 implementations that ignore --trace.
6204 * configure: Regenerate.
6205 Reported by Ralf Wildenhues.
6207 Fix regression in AC_DEFINE([macro(with_arg)]).
6208 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
6209 quotes with a careless m4_substr.
6211 2007-09-30 Eric Blake <ebb9@byu.net>
6213 Allow nameless iteration.
6214 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
6216 * tests/m4sugar.at (myvar): Test this.
6218 2007-09-29 Eric Blake <ebb9@byu.net>
6220 Speed optimization: avoid m4 regex when other algorithms work.
6221 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
6222 (_AS_QUOTE_IFELSE): Likewise.
6223 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
6224 (m4_bpatsubsts): Split...
6225 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
6227 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
6228 (m4_qlen): Optimize on short strings, to avoid regex.
6229 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
6230 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
6231 (AC_DEFINE_TRACE): Likewise.
6233 2007-09-28 Eric Blake <ebb9@byu.net>
6235 Oops - my earlier 'optimization' caused a regression.
6236 * tests/local.at (AT_CHECK_M4): Fix typo.
6238 2007-09-27 Eric Blake <ebb9@byu.net>
6239 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6241 Catch even more common AC_CACHE_VAL mistakes.
6242 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
6243 lacks '_cv_', or if AC_SUBST appears in body.
6244 * tests/base.at (AC_CACHE_CHECK): Test this change.
6246 2007-09-27 Stepan Kasal <kasal@ucw.cz>
6247 and Eric Blake <ebb9@byu.net>
6249 Autotest no longer caters to Ultrix redirection limitation.
6250 * doc/autoconf.texi (Writing testsuite.at): Remove the
6251 limitation that the first parameter of AT_CHECK cannot
6252 contain redirection.
6253 (File Descriptors): Mention that Ultrix limitation is no longer a
6254 show-stopper in modern code.
6255 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
6256 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
6257 * lib/autotest/general.m4 (AT_CHECK): Update comment.
6259 2007-09-27 Eric Blake <ebb9@byu.net>
6261 Squelch changeword in m4sugar.
6262 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
6263 feature of m4 1.4.x.
6265 Configure whitespace touchups.
6266 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
6267 installation directories, and avoid TAB, in configure --help
6269 * configure.ac: Avoid extra trailing newline.
6270 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
6271 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
6272 config.status --help output.
6273 * configure: Regenerate.
6275 Fix underquotation in AS_HELP_STRING.
6276 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
6278 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
6279 first-prefix argument.
6280 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
6281 * NEWS: Document AS_HELP_STRING fix.
6283 Autotest formatting touchups.
6284 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
6286 (PATH): Simplify computation of new PATH.
6288 2007-09-26 Eric Blake <ebb9@byu.net>
6290 Fix testsuite breakage in last patch.
6291 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
6293 * tests/torture.at (@%:@define header templates): Rename, so that
6294 output lines up correctly.
6296 More font-lock happiness.
6297 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
6300 2007-09-25 Eric Blake <ebb9@byu.net>
6303 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
6304 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
6306 Improve documentation of M4 parameter expansion.
6307 * doc/autoconf.texi (Quoting and Parameters): New section.
6308 (Quotation and Nested Macros): Improve wording.
6310 Improve C99 detection.
6311 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
6312 avoid deprecation warning with icc.
6314 Reported by Ted Bullock.
6316 2007-09-24 Jim Meyering <jim@meyering.net>
6318 Whenever possible, use the vertical bar as sed delimiter.
6319 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
6321 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
6322 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
6323 * tests/mktests.sh (as_me): Likewise.
6324 * lib/freeze.mk (check-forbidden-patterns): Likewise.
6325 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
6326 * configure: Regenerate.
6327 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
6328 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
6329 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
6330 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
6332 2007-09-22 Jim Meyering <jim@meyering.net>
6335 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
6336 2004-05-31 change also with a comment in the code.
6338 2007-09-20 Eric Blake <ebb9@byu.net>
6340 More contribution housekeeping.
6342 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
6344 Ignore additional files, when copying cross-repository.
6345 * .gitignore: Ignore CVS directories, emacs edits.
6346 * .cvsignore: Ignore .git directory, emacs edits.
6348 2007-09-15 Eric Blake <ebb9@byu.net>
6350 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
6351 * doc/autoconf.texi (Text processing Macros): Remove mention of
6352 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
6354 (Notices): Move AC_PREREQ...
6355 (Versioning): ...to this new section, alongside the new AC_VERSION
6356 alias for the undocumented m4_PACKAGE_VERSION.
6357 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
6358 * lib/autoconf/general.m4 (AC_VERSION): New macro.
6359 * NEWS: Update to match this rename.
6360 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
6362 * tests/tools.at (autoconf: AC_VERSION): New test.
6363 Suggested by Paolo Bonzini and Benoit Sigoure.
6365 2007-09-14 Eric Blake <ebb9@byu.net>
6367 Prepare for conversion to git.
6368 * doc/.cvsignore: Avoid multiple listings on one line.
6369 * bin/.cvsignore: Likewise.
6370 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
6371 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
6372 lib/autoscan/.gitignore, lib/autotest/.gitignore,
6373 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
6374 tests/.gitignore: New files, identical to .cvsignore counterpart.
6376 2007-09-13 Eric Blake <ebb9@byu.net>
6379 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
6381 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
6382 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
6383 * configure: Regenerate.
6385 Clean up 'make dist' of previous patch.
6386 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
6387 (CLEANFILES): Don't clean the stamp, since we distribute the
6388 generated files pre-built.
6389 (MAINTAINERCLEANFILES): Clean it here instead.
6390 * tests/Makefile.in: Regenerate.
6392 Avoid parallel 'make check' issue.
6393 * tests/Makefile.am (mktests.stamp): New witness.
6394 (TESTSUITE_GENERATED_AT): Use it.
6395 (CLEANFILES): Clean the witness.
6396 * tests/.cvsignore (mktests.stamp): Ignore the witness.
6398 Document another awk pitfall.
6399 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
6400 limitation of field variables in END.
6401 Reported by Gary V. Vaughan.
6403 * AUTHORS: Add missing entries.
6405 2007-09-12 Eric Blake <ebb9@byu.net>
6407 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
6408 * doc/autoconf.texi (Text processing Macros): Document
6409 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
6410 (Redefined M4 Macros): Document m4_ifndef.
6411 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
6412 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
6413 used it while it was undocumented.
6414 * NEWS: Document this change.
6415 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
6416 * lib/m4sugar/Makefile.in: Regenerate.
6417 * tests/m4sugar.at (m4@&t@_version_compare): New test.
6418 Reported by Bruno Haible.
6420 * doc/autoconf.texi (Generic Compiler Characteristics): Add
6421 missing index entries.
6423 2007-09-11 Eric Blake <ebb9@byu.net>
6425 Centralize all system extensions checks.
6426 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
6427 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
6428 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
6429 AC_USE_SYSTEM_EXTENSIONS.
6430 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
6431 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
6432 * doc/autoconf.texi (Posix Variants): Reword this section,
6433 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
6434 rather than a series of system-specific checks.
6435 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
6437 * NEWS: Document this change.
6439 Reported by Martin Koeppe.
6441 2007-09-08 Eric Blake <ebb9@byu.net>
6443 Clean up obsolete macros references.
6444 * doc/autoconf.texi: Add anchors to support better
6446 (Particular Structures): Move obsolete macros descriptions...
6447 (External Software): Likewise.
6448 (Package Options): Likewise.
6449 (Obsolete Macros): ...to here. Add cross-references to
6450 documentation on replacements.
6451 * NEWS: Mention that these macros have been obsolete for a while
6452 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
6454 Improve M4 path searching during configure.
6455 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
6457 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
6458 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
6459 parameter, and kill side effects.
6460 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
6461 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
6462 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
6464 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
6465 allow bootstrapping with autoconf 2.61.
6466 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
6467 * configure: Regenerate.
6468 * doc/autoconf.texi (Generic Programs): Document new macro.
6469 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
6471 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
6472 * NEWS: Document the change.
6474 Reported by Hans Aberg.
6476 * doc/autoconf.texi (Generic Programs): Fix typo.
6478 2007-09-06 Eric Blake <ebb9@byu.net>
6480 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
6481 :, and make it clear that optional @var{path} defaults to $PATH.
6482 (Erlang Compiler and Interpreter): Likewise.
6485 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
6486 Reword some paragraphs to avoid overfull, underfull hbox
6487 warnings. Add index entries to avoid overfull vbox warnings.
6489 2007-09-05 Eric Blake <ebb9@byu.net>
6491 * NEWS: Adjust wording for AC_CONFIG_LINKS.
6492 Reported by Ralf Wildenhues.
6494 2007-09-03 Eric Blake <ebb9@byu.net>
6496 * NEWS: Document fixes that have been applied since 2.61a.
6499 * THANKS: Update, and convert to UTF-8 encoding.
6500 * AUTHORS: Likewise.
6502 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6504 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
6505 names beginning with `-' again.
6507 2007-08-22 Stepan Kasal <kasal@ucw.cz>
6508 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6510 * doc/autoconf.texi (Defining Directories): Mention
6511 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
6513 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6515 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
6516 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
6517 * tests/base.at (configure arguments): New test.
6519 Report by Olaf Lenz.
6521 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
6522 arguments in comment.
6523 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
6525 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
6527 * doc/autoconf.texi (File System Conventions): Index the proper
6528 way of detecting absolute file names.
6530 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6532 * build-aux/config.guess, build-aux/config.sub,
6533 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
6534 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
6535 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
6536 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
6537 sectioning change in fdl.texi.
6539 * bin/autoconf.as: Update --version output to match current GCS.
6540 * bin/autoheader.in: Likewise.
6541 * bin/autom4te.in: Likewise.
6542 * bin/autoreconf.in: Likewise.
6543 * bin/autoscan.in: Likewise.
6544 * bin/autoupdate.in: Likewise.
6545 * bin/ifnames.in: Likewise.
6547 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6549 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
6550 file to itself if source and build trees coincide.
6551 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
6553 Report by Sebastian Freundt <hroptatyr@gna.org>.
6555 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
6557 Reword the copyright notices to match what's suggested in GPLv3.
6558 In ChangeLog files, use more-permissive notice rather than GPL, as
6559 per usual GNU standards these days.
6561 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
6563 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
6564 limitation reported by Leo Moisio in
6565 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
6567 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
6569 * COPYING: Update to GPLv3. All uses changed.
6571 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6572 and Paul Eggert <eggert@cs.ucla.edu>
6574 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
6577 2007-06-17 Noah Misch <noah@cs.caltech.edu>
6579 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
6580 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
6581 `srcdir' as subdirectory of `builddir'.
6583 2007-06-13 Noah Misch <noah@cs.caltech.edu>
6585 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
6586 * tests/autotest.at (srcdir propagation): New test.
6588 Reported by Mike Frysinger.
6590 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
6592 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
6593 Problem reported by Fred Kreek in
6594 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
6595 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
6596 (Macro Names, Defining Directories): Don't mention PATH as a name
6597 for a fully qualified file name, as this usage violates the GNU
6598 coding standards and we shouldn't recommend it.
6600 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
6601 string and then assume shell builtins like "test" will work.
6603 2007-06-12 Noah Misch <noah@cs.caltech.edu>
6605 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
6606 not a valid shell variable name.
6607 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
6608 * tests/torture.at (AC_SUBST: variable name validation): New test.
6609 Reported by Andreas Schwab.
6611 2007-06-04 Noah Misch <noah@cs.caltech.edu>
6613 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
6614 works with both C and C++.
6616 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
6617 Bruno Haible <bruno@clisp.org>
6619 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
6622 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
6624 * doc/autoconf.texi (Particular Types): Give example of use for
6627 2007-05-29 Stepan Kasal <kasal@ucw.cz>
6629 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
6631 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
6633 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
6634 define HAVE_INT8_T, and likewise for similar macros.
6635 Problem reported by Patrick Welche in
6636 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
6638 2007-05-25 Noah Misch <noah@cs.caltech.edu>
6640 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
6642 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
6644 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
6645 choice, since that's what we do with --enable-largefile etc.
6646 Redo indenting and assignments to simplify things a bit, and make
6647 the parens work with Emacs.
6649 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
6650 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
6653 2007-05-21 Noah Misch <noah@cs.caltech.edu>
6655 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
6656 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
6658 2007-05-21 Bruno Haible <bruno@clisp.org>
6660 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
6661 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
6662 * doc/autoconf.texi (Generic Compiler Characteristics): Move
6663 renamed AC_OPENMP documentation here, from "C compiler".
6664 Mention C++ and Fortran.
6666 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
6668 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
6670 2007-05-21 Bruno Haible <bruno@clisp.org>
6672 * NEWS: Mention AC_C_OPENMP.
6673 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
6674 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
6675 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
6676 macro in the Autoconf macro archive.
6678 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6680 * bin/autom4te.in: Fix typos.
6682 2007-05-16 Noah Misch <noah@cs.caltech.edu>
6684 * bin/autoconf.as: Handle `-' just like other input files.
6685 * bin/autom4te.in (parse_args): Pass `-' through.
6686 (handle_output): Skip the forbidden token search if we read from stdin.
6687 (up_to_date): Always treat stdin as out of date.
6688 * tests/tools.at (autoconf: input from stdin): New test.
6689 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
6691 2007-05-16 Stepan Kasal <kasal@ucw.cz>
6693 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
6694 parameters for AT_CLEANUP.
6695 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
6697 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
6699 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
6700 * doc/autoconf.texi (C Compiler): Likewise.
6702 2007-05-14 Noah Misch <noah@cs.caltech.edu>
6704 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
6706 2007-05-09 Stepan Kasal <kasal@ucw.cz>
6708 * doc/autoconf.texi: Direntry for "autoconf Invocation"
6709 renamed to "autoconf-invocation"
6711 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
6712 in the examples should not use the internal "ac_" prefix.
6714 2007-05-05 Noah Misch <noah@cs.caltech.edu>
6716 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
6717 * doc/autoconf.texi ($@, case): Document Zsh limitations.
6719 2007-05-03 Stepan Kasal <kasal@ucw.cz>
6721 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
6722 Reorganize the comments before and in the macro.
6724 2007-05-02 Stepan Kasal <kasal@ucw.cz>
6726 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
6727 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
6728 section titles and other comments; no code change.
6730 2007-05-01 Kevin Ryde <user42@zip.com.au>
6732 * doc/autoconf.texi (Particular Programs): Typo
6733 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
6735 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
6737 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
6738 'configure' will fail if the shell lacks proper support for shell
6739 functions. Suggested by RMS.
6741 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
6743 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
6744 about Solaris /bin/printf '%010000x' 123. Problem reported by
6747 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
6749 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
6750 for a.* when searching for executables, as this prevents users
6751 from having files like a.c. Problem reported by Ralf Wildenhues in:
6752 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
6753 This fixes a problem introduced on 2000-12-19.
6755 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
6757 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
6758 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
6761 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
6763 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
6764 AC_CHECK_TYPE, AC_CHECK_TYPES.
6765 * doc/autoconf.texi (Generic types): C types must be type-names
6766 (the C terminology), not type-ids (the C++ term). C++ types
6767 must not be anonymous.
6768 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
6769 for C++; this drops support for anonymous struct and union types,
6770 which were problematic anyway.
6771 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
6774 2007-04-12 Jim Meyering <jim@meyering.net>
6776 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
6778 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6780 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
6781 to prefer a link source from the build tree, if it exists.
6782 Report by Pallav Gupta <pallavgupta@gmail.com>.
6784 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
6786 * doc/autoconf.texi (Generic Types): Document the restrictions
6787 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
6788 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
6789 with objects too. Document the restrictions on its use.
6790 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
6791 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
6792 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
6793 works but the latter doesn't, then it's a valid type.
6794 This lets people use function types and so forth.
6795 For C++ there doesn't seem to be a simple solution, so leave it alone.
6796 (AC_CHECK_SIZEOF): Allow argument to be a variable.
6797 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
6798 AC_CHECK_TYPE; that wasn't documented or necessary.
6800 2007-04-11 Stepan Kasal <kasal@ucw.cz>
6802 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
6803 when cross-compiling.
6805 2007-04-11 Stepan Kasal <kasal@ucw.cz>
6807 * doc/autoconf.texi (External Software): Fix a typo in the
6810 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6812 * doc/autoconf.texi (External Software, Package Options):
6813 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
6815 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
6817 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
6818 obsolescent. Suggested by Bruno Haible.
6819 * NEWS: Document this.
6821 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
6823 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
6824 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
6825 default still has the problem. Problem reported by Bruce Korb.
6827 2007-03-28 Stepan Kasal <kasal@ucw.cz>
6828 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6830 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
6831 comment in the generated config.status.
6833 2007-03-27 Stepan Kasal <kasal@ucw.cz>
6835 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
6837 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
6839 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
6840 command and case statements to make it a bit clearer and describe
6843 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
6845 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
6846 checks for unsigned long long int.
6848 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
6850 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
6851 nonstandard grep R.E. escape sequences.
6853 2007-03-17 Jim Meyering <jim@meyering.net>
6855 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
6856 (Limitations of Usual Tools): Also list \< and \>, and mention that
6857 HP-UX's grep, like the one from Solaris, does not support that syntax.
6859 2007-03-09 Stepan Kasal <kasal@ucw.cz>
6861 * doc/autoconf.texi (Specifying Names): `--host' does not
6862 change the build type.
6864 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
6866 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
6867 suggests AC_CONFIG_HEADERS.
6868 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
6869 AC_CONFIG_HEADERS. Problem reported by
6872 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
6874 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
6875 Problem reported by Paolo Bonzini in:
6876 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
6877 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
6878 universal binaries. Problem reported by Elias Pipping.
6880 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
6882 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
6883 * doc/autoconf.texi (C Compiler): Document this. There is a new
6884 extra argument ACTION-IF-UNIVERSAL.
6885 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
6886 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
6887 Reindent for sanity's sake.
6889 2007-02-24 Eric Blake <ebb9@byu.net>
6891 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
6893 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
6894 * lib/autotest/general.m4 (AT_INIT): Likewise.
6895 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
6897 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6899 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
6900 status of rm so we know when it failed.
6901 If cleaning of test dir failed before running the test, warn.
6902 Output the line separator in verbose mode before the warning
6903 to make clear the warning belongs to the following test.
6905 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
6907 * doc/autoconf.texi (Parentheses): Mention problem with (( in
6910 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6911 and Paul Eggert <eggert@cs.ucla.edu>
6913 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
6914 errors introduced in last change.
6916 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
6918 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
6919 an actual carriage return. Use "ac_cr" to contain the actual
6921 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
6922 with traditional Awk and begin.
6923 * tests/torture.at (Limitations of Builtins): Document the problem
6924 with Bash 2.03 printf.
6925 (Substitute and define special characters):
6926 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
6928 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
6930 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
6931 input from /dev/null in awk test, so even Solaris /usr/bin/awk
6932 will not wait for input with a script containing only a BEGIN
6935 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
6937 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
6941 2007-02-02 Eric Blake <ebb9@byu.net>
6943 * NEWS: Update copyright.
6945 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
6947 * configure.ac: Update error message.
6948 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
6949 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
6951 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
6953 2007-01-31 Eric Blake <ebb9@byu.net>
6955 * THANKS (people): Update.
6957 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
6959 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
6961 (Shell Substitutions): Note problems with @{var:=value} etc.
6962 Add a new section for problems with @{#var} etc. Problem noted
6963 by Ralf Wildenhues. See:
6964 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
6966 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6968 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
6969 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
6970 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
6971 substitution will still be done by the special code.
6972 Report by Jim Meyering.
6974 * doc/autoconf.texi (File System Conventions): Mention that
6975 $PATH_SEPARATOR is for the build system only.
6976 Report by Keith Marshall.
6978 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6980 * doc/autoconf.texi (Setting Output Variables): Mention that
6981 all non-NUL characters are ok in substituted values.
6982 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
6983 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
6984 carriage return for $AWK, needed for BSD awk.
6985 * tests/torture.at (Substitute and define special characters):
6986 Test all 8 bit non-NUL characters.
6987 Report against Automake by Patrick Welche.
6989 2007-01-15 Stepan Kasal <kasal@ucw.cz>
6991 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
6993 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6995 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
6996 early on the reader side, drop stderr of the input to avoid
6997 `broken pipe' error output; this may happen even with shell
6998 builtin `echo' of some bash versions. Reports by Ian Macdonald
6999 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
7001 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7003 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
7004 separate items of `ac_user_opts', to avoid long lines.
7005 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
7007 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7009 * doc/autoconf.texi: Fix some typos.
7011 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
7013 Fix some wording problems noted by Paolo Bonzini in:
7014 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
7015 * doc/autoconf.texi (Signed Overflow Examples): Give more
7016 discussion about the allow_superuser_privileges example,
7017 and change it a bit to make things clearer.
7018 (Optimization and Wraparound): Clarify whether the compiler
7019 will generate an infinite loop for the example derived from
7020 Autoconf's mktime test.
7021 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
7022 Also, clarify unsigned multiplication overflow.
7024 2007-01-04 Eric Blake <ebb9@byu.net>
7026 * bin/Makefile.am (RELEASE_YEAR): New macro.
7027 (edit): Use it to supply correct copyright year to scripts.
7028 * bin/autoconf.as (version): Use it.
7029 * bin/autoheader.in ($version): Likewise.
7030 * bin/autom4te.in ($version): Likewise.
7031 * bin/autoreconf.in ($version): Likewise.
7032 * bin/autoscan.in ($version): Likewise.
7033 * bin/autoupdate.in ($version): Likewise.
7034 * bin/ifnames.in ($version): Likewise.
7036 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
7038 * doc/autoconf.texi (Integer Overflow): Revised based on today's
7039 feedback. The most important changes document what happens when
7040 you convert an out-of-range value to a signed integer type, and
7041 say that (sum < a) != (b < 0) reliably detects overflow when sum =
7044 * doc/autoconf.texi (Integer Overflow): Greatly expand and
7045 rewrite, taking notions from the recent discussion on the gcc and
7046 autoconf mailing lists; please see
7047 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
7048 and follow the many links.
7049 (Integer Overflow Basics, Signed Overflow Examples):
7050 (Optimization and Wraparound, Signed Overflow Advice):
7051 (Signed Integer Division): New sections.
7053 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
7055 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
7056 preprocessor macro arguments in traced name.
7057 * doc/autoconf.texi (Defining symbols): Document longstanding
7058 support for AC_DEFINE-ing macros with arguments, and document
7059 behavior when the same variable has multiple AC_DEFINEs.
7060 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
7061 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
7062 macros directly, giving much shorter and simpler code.
7064 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
7066 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
7067 space before "$ac_configure_args" to prevent a 'config.status
7068 --recheck' failure if ac_configure_args doesn't contain a leading
7069 space. This works around a problem with the XEmacs configure.ac,
7070 which uses the (undocumented) ac_configure_args variable
7071 inconsistently with Autoconf.
7073 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
7075 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
7076 Include <limits.h>, and use its INT_MAX to rewrite the
7077 j loop so that it does not overflow 'int'. Problem reported by
7079 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7080 Play it safe by shifting left by 1 rather than multiplying by 2,
7081 as GCC is less likely to optimize this away when the value
7082 is signed (when it assumes overflow leads to undefined behavior).
7083 Also, don't assume time_t uses two's complement.
7085 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7087 * tests/torture.at (Substitute a 2000-byte string): Avoid using
7088 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
7089 dumps core on it. Report by Tim Rice.
7091 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
7093 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
7094 --disable-option-checking to --help output even when
7095 AC_PRESERVE_HELP_ORDER is not used.
7096 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
7097 --with argument, rather than argument with [-.] replaced by
7099 * NEWS: Fix typo in previous change; the news was in the
7102 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
7104 * NEWS: Warnings are now generated by default for unknown
7105 --enable-* and --with-* options.
7106 * doc/autoconf.texi (Option Checking): Renamed from
7107 (Configure Option Checking). Tighten up the wording a bit.
7108 (External Software, Package Options): Cross-reference to Option
7109 Checking, and use this to shorten our section.
7110 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
7111 "$x" to test "x$foo" != x.
7112 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
7113 Don't warn if $enable_option_checking is "no".
7114 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
7115 ac_unrecognized_opts to the empty string.
7116 Don't echo the unrecognized opts, as this might mishandle
7117 backslashes or leading -.
7118 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
7119 usage next to the other --disable-FEATURE options in the
7122 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
7124 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
7125 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
7126 Print warning for unrecognized --with and --enable options
7127 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
7128 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
7129 Disable option checking when subdirs are configured.
7130 (AC_OUTPUT): If warnings are enabled, print warning about
7131 unrecognized --with and --enable options at the end of
7132 the configure output (as well as at the beginning).
7133 * doc/autoconf.texi (Option Checking): New node.
7134 Document new option warning functionality.
7136 2006-12-16 Eric Blake <ebb9@byu.net>
7138 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
7139 * NEWS: Start news for current version.
7141 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
7143 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
7144 Define HAVE_GETMNTENT to 1, not to the empty string.
7145 Problem originally reported by Jochen Friedrich in
7146 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
7148 This change prompted by a problem report by Andrey Simonenko in
7149 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
7150 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
7151 object-like macros only, in the traditional portable character
7153 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
7154 Warn about attempts to define things that are not identifiers.
7155 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
7156 awful hack that AC_DEFINEd macro names containing parentheses.
7158 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
7160 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
7161 too drastic, even if Texinfo in theory requires it for info mode.
7163 (config.status Invocation): Renamed back from Recreating a
7165 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
7166 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
7168 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
7170 * NEWS: Version 2.61a.
7172 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
7173 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7175 * NEWS: Document changes with echo and printf, and the lack
7176 of limits on the total size of multi-line values of substituted
7177 variables, and the AC_FUNC_FSEEKO fix.
7179 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
7181 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
7182 Writing configure.ac.
7183 (Autoconf Input Layout): Renamed from configure.ac Layout.
7184 (Recreating a Configuration): Renamed from config.status Invocation.
7185 (Obsolete Recreation): Renamed from Obsolete config.status Use.
7186 (acconfig Header): Renamed from acconfig.h.
7187 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
7188 (Writing Testsuites): Renamed from Writing testsuite.at.
7189 (Autom4te Cache): Renamed from autom4te.cache.
7191 * BUGS: Remove mention of VPATH problem, since it's now documented
7192 not to be a bug in the Autoconf build procedure itself, but rather
7193 a problem with the proprietary `make' programs.
7195 * doc/autoconf.texi (Build Directories): Add a cross reference
7198 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
7199 * doc/standards.texi: Sync from gnulib.
7201 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
7202 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
7203 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
7204 generated automatically.
7206 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
7208 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
7209 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
7210 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
7212 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7214 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
7215 `CEOF$ac_eof' special marker, the awk script cannot contain a
7216 line matching `^CEOF', so this is not needed any more.
7217 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
7218 special marker in the test.
7220 2006-12-06 Stepan Kasal <kasal@ucw.cz>
7222 * tests/tools.at (autom4te preselections): Use `find -newer';
7223 remove one of the sleeps.
7225 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
7226 more readable, using ...
7227 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
7229 * doc/autoconf.texi (autoheader Invocation): Do not double-
7230 quote the parameter of `AH_BOTTOM' in the example.
7232 2006-12-05 Stepan Kasal <kasal@ucw.cz>
7234 * doc/autoconf.texi (Configuration Headers): Remove the
7235 example with multiple input files.
7236 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
7237 multiple input files.
7239 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7241 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
7242 creating the awk substitution script, handle one input line at a
7243 time, so that the maximum length of a substituted (multi-line)
7244 value is not limited by the size of the sed pattern space.
7245 The trade-off is a slightly repetitive sed script.
7246 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
7247 can only have up to 7 characters, due to Solaris 10 /bin/sed.
7248 * tests/torture.at (Substitute a 2000-byte string): Increase the
7249 test with several long lines, they should not be caught by sed
7252 * tests/tools.at (autom4te preselections): New test, to flag
7253 entries missing from autom4te.cfg.
7254 Report by David Byron <dbyron@hheld.com>.
7256 * tests/torture.at (Substitute a 2000-byte string): Actually use
7257 AC_PROG_AWK, so the last change works as intended.
7258 (Substitute and define special characters): Likewise.
7259 (Substitute a newline): Likewise.
7261 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
7262 instead of `awk' consistently.
7263 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
7264 * tests/torture.at (Torturing config.status): Test both the
7265 result of AC_PROG_AWK and plain awk.
7266 (Substitute a 2000-byte string): Likewise.
7267 (Substitute and define special characters): Likewise.
7268 (Substitute a newline): Likewise.
7270 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
7272 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
7273 can be assigned to a function pointer. Problem reported by
7274 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
7275 part of a patch by Ralf Wildenhues in that same bug report.
7277 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
7279 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
7280 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
7282 2006-12-01 Eric Blake <ebb9@byu.net>
7284 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
7285 cross-compiling from cygwin to mingw.
7286 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
7287 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
7288 to lib/autoconf/c.m4.
7290 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7292 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
7293 string for more reliable failure. Wrap the entire test that
7294 causes the broken Solaris printf to dump core, in a subshell,
7295 so the segmentation fault message is reliably suppressed.
7296 Fix shell expansion errors by using /usr/ucb/echo always;
7297 avoid an error on systems without it by another subshell.
7298 Avoid m4 expansion of `$1'. Set the zeroth argument of the
7299 subshell-$as_echo to `as_echo', for better error message.
7301 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7303 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
7304 `BASH_SOURCE' contain a newline, set them to empty, as they may
7307 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
7309 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
7310 years and is too hard to maintain now. The last straw was
7311 reported by Jerker Baeck in
7312 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
7313 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
7314 * doc/autoconf.texi (Particular Functions): Move
7315 AC_FUNC_SETVBUF_REVERSED from here...
7316 (Obsolete Macros): ... to here. Say that it does nothing now.
7317 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
7318 Turn into (almost) a no-op.
7320 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
7322 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
7323 These macros are obsolescent and new applications shouldn't need them.
7324 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
7325 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
7326 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
7327 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7328 (AC_FUNC_VPRINTF): Likewise.
7329 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
7330 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
7331 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
7333 * doc/autoconf.texi (Setting Output Variables): Mention that
7334 @VAR1@VAR2 has unspecified behavior. Problem reported by
7336 * NEWS: Mention this.
7338 * Makefile.am: Put only a single '#' into the copyright notice,
7339 so that it's also present in the output file. Standardize wording
7340 in makefile copyright notices to match GNU coding standards.
7341 * bin/Makefile.am: Likewise.
7342 * doc/Makefile.am: Likewise.
7343 * lib/Makefile.am: Likewise.
7344 * lib/freeze.mk: Likewise.
7345 * lib/autoconf/Makefile.am: Likewise.
7346 * lib/autoscan/Makefile.am: Likewise.
7347 * lib/autotest/Makefile.am: Likewise.
7348 * lib/m4sugar/Makefile.am: Likewise.
7349 * man/Makefile.am: Likewise.
7350 * tests/Makefile.am: Likewise.
7351 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
7354 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7356 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
7357 in the sed script that mangles the awk script: delete up to the
7358 first exclamation mark only.
7359 * tests/torture.at (Substitute and define special characters):
7362 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7364 Rewrite config files generation: avoid quadratic growth in
7365 the number of substituted variables by using awk instead of sed
7366 for the bulk of the substitutions.
7367 * NEWS: Mention this.
7368 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
7369 forbidden in the output (and thus input) file.
7370 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
7371 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
7372 generate just one large awk script for substitutions,
7373 eliminating much of the earlier complexity, while adding some
7374 new complexity. Only expand the substitution templates at
7375 configure time, for smaller configure script size. If
7376 _AC_SUBST_FILES are used, test 'awk' for working getline support
7377 at config.status time. If absent, interpolate through the
7378 shell. The awk script was written with much help
7379 from Paolo Bonzini and Paul Eggert.
7380 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
7381 (_AC_SED_FRAG_NUM): Likewise.
7382 (_AC_SUBST_CMDS): Renamed from...
7383 (_AC_SED_CMDS): ...this.
7384 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
7385 * tests/torture.at (Substitute a 2000-byte string): Also
7386 substitute a line with 1000 words, and a variable with several
7388 (Substitute and define special characters): Test awk special
7389 characters, and put substitution input strings `@foo@' in the
7390 output, to test that no recursion happens; test several other
7391 combinations from Paolo Bonzini.
7393 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
7395 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
7396 that replaced echo with AS_ECHO where this wasn't necessary.
7397 Problem reportd by Ralf Wildenhues.
7398 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
7399 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
7400 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
7402 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7404 * lib/freeze.mk (GREP): Removed, no need to initialize this.
7406 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
7408 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
7409 that traditional Awk lacks 3-arg "split". It has it.
7410 Mention that FS must be a single character, and a few other
7411 99-byte limits of traditional Awk.
7412 Mention that if (i in a) doesn't work with traditional Awk.
7414 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
7416 * tests/autotest.at (BSx641-newline in command):
7417 (BS-BS-newline in command, BSx640-newline in command):
7418 (Newline-CODE-BS-newline in command):
7419 (Single-quote-BS-newline in command):
7420 (Single-quote-newline-BS-newline in command):
7421 Use printf '%s\n' instead of echo, for portability to hosts
7422 where echo interprets backslashes. This will break on hosts
7423 that lack printf, but for now let's assume all such hosts
7424 are dead (if not, we should get reports of test failures).
7426 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
7428 'echo' has some portability problems, when given a first argument
7429 with a leading '-', or when given any argument containing '\'.
7430 Avoid using 'echo' in these cases.
7431 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
7432 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
7433 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7434 * lib/autotest/general.m4 (AT_INIT): Likewise.
7435 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
7436 argument might be unportable.
7437 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
7438 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
7439 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
7440 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
7441 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
7442 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
7443 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
7444 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
7445 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
7446 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
7447 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
7448 (AC_PROG_MAKE_SET): Likewise.
7449 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
7450 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
7451 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
7452 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
7453 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
7454 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
7455 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
7456 * bin/autoconf.as: Redo verbose flag implementation, as the old
7457 scheme wouldn't work with AS_ECHO.
7458 * lib/autotest/general.m4 (AT_INIT): Likewise.
7459 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
7460 Don't use ECHO_T, since ECHO_N is now reliable.
7461 * lib/autotest/general.m4 (AT_INIT): Likewise.
7462 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
7463 rather than using a here-document to put the script into a file.
7464 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
7466 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
7467 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
7468 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
7469 bug, but we might as well stop using ECHO_N and ECHO_C internally.
7470 * lib/autotest/general.m4 (AT_SETUP): Likewise.
7471 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
7472 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7473 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
7474 operand, as AS_ECHO requires. Avoid double file name expansion.
7475 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
7476 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
7477 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
7478 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
7479 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7480 Double-quote strings that would otherwise contain M4 comments.
7481 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
7483 * configure.ac (AC_INIT): Bump to 2.61a.
7486 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
7490 * configure.ac (AC_INIT): Bump to 2.61.
7493 * tests/autotest.at (Macro with backslash in a test title):
7494 Comment out for now, as this tests neither fails nor passes
7495 reliably. Problem reported by Ralf Wildenhues.
7497 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
7499 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
7500 in previous change, which caused test failures.
7502 2006-11-16 Stepan Kasal <kasal@ucw.cz>
7504 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
7505 code for --enable, --disable, --with, and --without to...
7506 (_AC_INIT_PARSE_ENABLE): ... a new macro.
7507 * doc/autoconf.texi (Package Options):
7508 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
7510 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
7512 Import these changes from config via gnulib:
7514 2006-11-15 Ben Elliston <bje@gnu.org>
7516 From Josselin Mouette <joss@debian.org>:
7517 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
7519 2006-11-08 Ben Elliston <bje@gnu.org>
7521 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
7523 2006-11-07 Steve Woodford <scw@NetBSD.org>
7524 Ben Elliston <bje@gnu.org>
7526 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
7527 * build-aux/config.sub (sh5el): New basic_machine.
7530 Import this change from coreutils:
7532 2006-02-13 Jim Meyering <jim@meyering.net>
7534 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
7537 Import this change from gnustandards via gnulib:
7539 2006-11-15 Karl Berry <karl@gnu.org>
7541 * standards.texi: core -> memory, throughout.
7542 (CPU Portability): show correct example of calling write
7543 on a char value; thanks to Paul Eggert for the code.
7544 Both of these suggestions from Eugene Y. Vasserman.
7547 Import these changes from texinfo via gnulib:
7549 2006-11-08 Karl Berry <karl@gnu.org>
7551 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
7552 as well as pdf images, since they are supported in pdftex with
7555 2006-11-05 Karl Berry <karl@gnu.org>
7557 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
7559 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
7561 * NEWS: Document the AC_ARG_WITH change.
7563 2006-11-13 Bruno Haible <bruno@clisp.org>
7565 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
7566 options, transliterate also dots to underscores.
7567 (_AC_ENABLE_IF): Transliterate also dots to underscores.
7568 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
7569 first argument may also contain dots.
7571 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
7573 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
7574 benefit of platforms like Solaris+GCC where it is common to have a
7575 non-working g++ installation.
7577 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7578 and Joel E. Denny <jdenny@ces.clemson.edu>
7579 and Paul Eggert <eggert@cs.ucla.edu>
7581 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
7582 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
7585 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
7587 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
7588 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
7589 Imported from a similar patch to gnulib by Bruno Haible.
7591 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
7593 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
7594 * doc/autoconf.texi (C Compiler): Document them.
7595 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
7596 New macros, taken from gnulib.
7598 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
7600 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
7601 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
7604 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7606 * tests/torture.at (Configuring subdirectories): Do not skip
7607 Automake 1.10 nor future Automake 11.1 (sic).
7609 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
7610 and Stepan Kasal <kasal@ucw.cz>
7612 Handle special characters in test case titles correctly.
7613 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
7615 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
7616 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
7617 argument. Extend to check titles printed by ./micro-suite and
7618 ./micro-suite -l and the title in micro-suite.log.
7619 (Backquote in a test title,
7620 Single-quote in a test title,
7621 Double-quote in a test title): Don't expect failure anymore.
7622 (Backslash in a test title): Put a non-whitespace character after the
7623 backslash so that Bourne shells might actually see it as an escape
7625 (Brackets in a test title,
7626 Pound in a test title,
7627 Comma in a test title,
7628 Quoted Macro in a test title,
7629 Macro in a test title,
7630 Macro with single-quote in a test title): New tests.
7631 (Macro with backquote in a test title,
7632 Macro with double-quote in a test title,
7633 Macro with backslash in a test title): New tests expected to fail.
7634 * tests/torture.at (#define header templates): M4-quote this title in
7635 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
7636 The visible effect was a stray [] in the testsuite output.
7638 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7640 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
7641 `trap ... 0' inside a function, for AIX sh.
7643 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
7645 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
7646 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
7647 5363) simply issues a warning when dividing by zero at compile
7648 time. Problem reported by Elias Pipping.
7650 2006-10-26 Eric Blake <ebb9@byu.net>
7653 * doc/autoconf.texi (Evaluation Macros): Improve the example to
7654 show effect on macros that expand with commas.
7655 Reported by Joel E. Denny.
7657 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
7658 Also work with M4 1.4.8.
7660 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
7662 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
7665 2006-10-25 Stepan Kasal <kasal@ucw.cz>
7667 * tests/tools.at (autom4te --force): New test, verifies that
7668 `--force' always rewrites the output file.
7670 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
7672 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
7673 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
7675 2006-10-24 Stepan Kasal <kasal@ucw.cz>
7677 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
7679 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
7681 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7682 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
7683 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
7684 reported by Nelson H. F. Beebe for Coreutils 6.4.
7686 * tests/tools.at (autoconf --trace: user macros): Remove test
7687 for tracing multiline macros, since m4 1.4.7a uses a different
7688 way to number lines. Problem reported by Ralf Wildenhues.
7690 2006-10-24 Stepan Kasal <kasal@ucw.cz>
7692 * bin/autom4te.in (handle_m4): Do not redirect stdin to
7693 /dev/null since the heuristics for interactive behaviour was
7696 * bin/autom4te.in: With --force, always refresh the output
7697 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
7699 * bin/autoconf.as: Fix the verbose message at the end.
7701 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
7703 * configure.ac (AC_INIT): Bump to 2.60c.
7706 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
7708 * NEWS: Version 2.60b.
7710 Import this change from Texinfo:
7711 2006-10-15 Karl Berry <karl@gnu.org>
7712 * build-aux/texinfo.tex: automake 1.10
7714 * NEWS: Remove AC_CACHE_CHECK_INT.
7715 * doc/autoconf.texi (Caching Results): Likewise.
7716 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
7717 AC_CACHE_CHECK_INT, since it's no longer public.
7718 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
7719 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
7721 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7723 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
7725 2006-10-19 Eric Blake <ebb9@byu.net>
7727 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
7728 (m4_maketemp): Avoid warnings with M4 1.9a.
7729 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
7731 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
7734 2006-10-16 Eric Blake <ebb9@byu.net>
7736 * doc/autoconf.texi (Setting Output Variables): Fix typo.
7738 * bin/autoconf.as (version): Reword to match GNU Coding
7740 * bin/autoheader.in (version): Likewise.
7741 * bin/autom4te.in (version): Likewise.
7742 * bin/autoreconf.in (version): Likewise.
7743 * bin/autoscan.in (version): Likewise.
7744 * bin/autoupdate.in (version): Likewise.
7745 * bin/ifnames.in (version): Likewise.
7747 2006-10-14 Stepan Kasal <kasal@ucw.cz>
7749 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
7750 looking for special shell characters.
7751 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
7752 macro defined by AS_VAR_PUSHDEF before passing it as a
7754 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
7755 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
7756 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
7757 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
7758 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
7760 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
7762 * tests/m4sh.at (AS_LITERAL_IF): New test.
7764 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
7766 (Imported from Automake.)
7767 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
7768 which incorrectly sets the mode of an existing destination
7769 directory. In some cases the unpatched install-sh could do the
7770 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
7771 system. We hope this is rare in practice, but it's clearly worth
7772 fixing. Problem reported by Alex Unleashed in
7773 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
7774 Also, don't bother to check for -m bugs unless we're using -m;
7775 suggested by Stepan Kasal.
7777 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
7779 Import this change from Automake:
7781 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
7782 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
7783 is enabled by default with gnu and gnits strictness.
7784 Report from Bruno Haible.
7786 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
7787 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
7788 gnu and gnits modes.
7790 Import this change from Config:
7792 2006-09-20 Ben Elliston <bje@gnu.org>
7793 * build-aux/config.sub (score, score-*): New.
7795 Import this change from Gnulib:
7797 2006-09-16 Karl Berry <karl@gnu.org>
7798 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
7799 to avoid sectioning errors.
7801 Import these changes from Texinfo:
7803 2006-10-04 Karl Berry <karl@gnu.org>
7804 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
7805 (\quoteexpand): rename to \rquoteexpand.
7806 (\codequoteleft): new def, to look for @set codequotebacktick.
7807 (\lquoteexpand, \quoteexpand): new defs.
7808 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
7809 (\code): must use new \...Char values, since now ` is active.
7811 2006-08-26 Karl Berry <karl@gnu.org>
7812 * build-aux/texinfo.tex (\textdegree): New command.
7814 2006-08-12 Karl Berry <karl@gnu.org>
7815 * build-aux/texinfo.tex (error \box0): smaller font.
7817 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7819 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
7821 2006-10-13 Stepan Kasal <kasal@ucw.cz>
7823 * doc/autoconf.texi (Autoheader Macros): Warn that the text
7824 added to the template can get mangled.
7826 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7828 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
7829 include the default headers, and redefine obstack_chunk_alloc
7830 and obstack_chunk_free. Fixes false failure with glibc.
7832 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
7834 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
7835 for backward compatibility with Libtool 1.5.22. Problem reported
7838 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7840 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
7842 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
7844 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
7846 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
7847 the NonStop platform.
7848 * doc/autoconf.texi (Posix Variants): Likewise.
7849 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
7851 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
7852 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
7853 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
7854 Use a better substitute, by inspecting the output of "ls"
7855 rather than just using ":".
7856 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
7857 rather than AS_EXECUTABLE_P, since we needn't worry about
7858 non-regular files here.
7860 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
7861 due to configuration hassles with this. See Tonya Underwood's report
7862 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
7863 * doc/autoconf.texi (Special Shell Variables): Likewise.
7865 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
7866 Stepan Kasal <kasal@ucw.cz>
7868 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
7869 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
7871 2006-10-11 Stepan Kasal <kasal@ucw.cz>
7873 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
7874 initialization which is not inherited through the environment
7875 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
7876 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
7878 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
7880 * doc/autoconf.texi (Limitations of Usual Tools): Describe
7881 problems with mkdir -p -m.
7883 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
7885 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
7886 comment about ac_cpp_err; it was incorrect, and anyway
7887 ac_cpp_err is being removed below.
7888 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
7889 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
7890 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
7892 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
7893 with werror_flag and conftest.err and so forth. This is more
7894 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
7895 and anyway the user shouldn't normally want to see this gorp logged.
7896 Problem reported by Ralf Wildenhues.
7897 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
7898 empty, not 'no', since the rest of the code uses 'test -z'.
7900 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
7902 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
7903 Use a single call to AC_DO_TOKENS rather than multiple, for
7905 (_AC_LINK_IFELSE): Test that resulting file is executable.
7906 Problem reported by mwoehlke in
7907 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
7909 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
7910 than creating a file to use with test -x; this is much faster.
7912 2006-10-02 Bruno Haible <bruno@clisp.org>
7914 * lib/autom4te.in (Automake-preselections): Add
7915 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
7917 2006-09-27 Stepan Kasal <kasal@ucw.cz>
7919 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
7920 standard error, `experr' should be used, not `expout'.
7922 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
7924 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
7925 fseeko testing program twice; just use the earlier result.
7926 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7927 Set cache var to 'unknown' (not 'no') if leaving the macro unset
7928 still doesn't let the program compile.
7929 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
7932 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
7933 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
7934 include it, without including anything else.
7935 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
7937 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
7939 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7941 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
7942 `error.h', and include it, for a `error_at_line' prototype.
7943 Use a nonempty format string in the link test.
7944 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
7945 for a declaration of wait3.
7947 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
7949 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
7950 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
7951 can apply to constants too, and that it checks for macro defns.
7952 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
7953 and simply cast the identifier to void. This handles structure
7954 values. Problem reported by Ralf Wildenhues.
7955 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
7957 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7959 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
7960 structure, and function symbols.
7962 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7964 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
7967 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
7969 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
7971 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7973 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
7974 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7976 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
7977 warnings (uninitialized value).
7978 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
7980 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
7982 (AC_STRUCT_TM): Likewise, avoid unused variables.
7984 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7986 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
7987 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
7988 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
7989 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
7990 Report by Olly Betts.
7992 2006-09-19 Eric Blake <ebb9@byu.net>
7994 * m4/m4.m4: Change copyright.
7995 * configure: Regenerate.
7996 * Makefile.in: Likewise.
7997 * bin/Makefile.in: Likewise.
7998 * doc/Makefile.in: Likewise.
7999 * lib/Makefile.in: Likewise.
8000 * lib/Autom4te/Makefile.in: Likewise.
8001 * lib/autoconf/Makefile.in: Likewise.
8002 * lib/autoscan/Makefile.in: Likewise.
8003 * lib/autotest/Makefile.in: Likewise.
8004 * lib/emacs/Makefile.in: Likewise.
8005 * lib/m4sugar/Makefile.in: Likewise.
8006 * man/Makefile.in: Likewise.
8007 * tests/Makefile.in: Likewise.
8009 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
8010 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
8011 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
8012 --error-output, to avoid warnings with M4 2.0.
8014 2006-09-19 Stepan Kasal <kasal@ucw.cz>
8016 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
8017 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
8018 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
8020 2006-09-15 Stepan Kasal <kasal@ucw.cz>
8022 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
8023 expansion of AC_CHECK_FUNCS.
8025 2006-09-14 Stepan Kasal <kasal@ucw.cz>
8027 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
8028 mistaken comment: the path has to be relative; do not use
8029 the path at runtime.
8031 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8033 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
8034 argument to `--prefix' for sub-configure scripts.
8035 Pass `--silent' to sub-configure scripts.
8036 * tests/torture.at (Configuring subdirectories): Add tests
8038 * doc/autoconf.texi (Setting Output Variables): Fix example to
8039 not show `--silent' being passed to a `configure' re-run.
8041 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
8043 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
8044 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
8045 for the existence of the directory at configure-time. That's
8046 too late, anyway. Problem reported by Stefan Seefeld.
8048 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
8049 7.1.4 /usr/bin/posix/sh described by Tim Rice in
8050 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
8052 2006-09-11 Stepan Kasal <kasal@ucw.cz>
8054 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
8055 works with GNU M4 1.4.3 again; make the normalized form
8056 match the current m4 message; fix the description.
8057 * test/tools.at (autom4te cache): Adapt to the change.
8059 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
8061 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
8062 to catch glibc bug 2821
8063 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8065 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
8066 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
8067 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
8070 2006-09-08 Stepan Kasal <kasal@ucw.cz>
8072 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
8074 (Autoconf): ... here.
8075 (Autoscan-preselections): Delete.
8077 2006-09-07 Stepan Kasal <kasal@ucw.cz>
8079 * lib/autom4te.in (Automake-preselections): Preselect
8082 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
8084 * doc/autoconf.texi (Preset Output Variables): srcdir and
8085 top_srcdir are not necessarily relative. Problem reported
8088 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8090 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
8091 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
8092 accept files with extension `.f'. For consistency, also prefer
8094 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
8097 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8099 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
8100 of ERLANG_LIB_VER_* variables.
8101 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
8104 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
8105 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8107 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
8108 bugs of Bash 2.01 and 2.05a.
8109 (Fortran Compiler): Document that AC_PROG_CC should be called
8110 before AC_PROG_FC, due to a bug in Autoconf.
8112 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
8114 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
8115 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
8116 except the first two arguments are reversed.
8117 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
8118 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
8119 caches nor outputs a diagnostic. Suggested by Bruno Haible.
8120 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
8121 equivalent to the old AC_COMPUTE_INT.
8122 (AC_COMPUTE_INT): No longer caches or reports. New signature.
8123 All uses changed to AC_CACHE_CHECK_INT.
8124 * tests/base.at (AC_CACHE_CHECK_INT): New test.
8125 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
8127 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
8129 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
8130 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
8131 programs should use their Gnulib counterparts.
8132 * doc/autoconf.texi (Particular Functions): Likewise.
8133 (Macro Names, testsuite Invocation): Replace uses of these
8134 obsolete macros with uses of non-obsolete macros.
8136 2006-08-29 Eric Blake <ebb9@byu.net>
8138 * configure.ac (AC_INIT): Bump to 2.60b.
8141 2006-08-28 Eric Blake <ebb9@byu.net>
8143 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
8144 mistakenly swapped on 2006-08-15.
8146 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
8148 * NEWS: Version 2.60a.
8150 2006-08-25 Stepan Kasal <kasal@ucw.cz>
8152 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
8153 file created by the PGI compiler.
8155 2006-08-25 Noah Misch <noah@cs.caltech.edu>
8157 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
8160 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
8162 Fix Lex library problem reported to us by Julio Garvia.
8163 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
8164 for the default, which the user can override.
8165 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
8167 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
8168 didn't work if some values were cached but not others. Test for
8169 broken lex libraries like native ia64-hp-hpux11.22; see
8170 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
8171 work around the problem by preferring an empty LEXLIB to -lfl or
8172 -ll. Let the user set LEXLIB='' to indicate no library needed.
8174 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
8176 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
8178 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
8180 Rework to use more-modern build style.
8181 Many files are renamed; all uses of their names were changed.
8182 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
8183 * .x-sc_useless_cpp_parens: New file.
8184 * build-aux/config.guess: Renamed from config/config.guess. Update.
8185 * build-aux/config.sub: Renamed from config/config.sub. Update.
8186 * build-aux/elisp-comp: Renamed from config/elisp-comp.
8187 * build-aux/install-sh: Renamed from config/install-sh. Update.
8188 * build-aux/mdate-sh: Renamed from config/mdate-sh.
8189 * build-aux/missing: Renamed from config/missing.
8190 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
8191 * build-aux/vc-list-files: Renamed from config/vc-list-files.
8192 * config/Makefile.am: Removed.
8193 * config/mkinstalldirs: Removed.
8194 * config/move-if-change: Removed.
8195 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
8196 * Makefile.am (SUBDIRS): Remove config.
8197 (ACLOCAL_AMFLAGS): Include from m4, not config.
8198 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
8199 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
8200 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
8201 Fail if there's an error.
8202 * Makefile.cfg (move_if_change): Remove.
8203 (wget_files): Remove.
8204 (cvs_executable_files): New macro.
8205 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
8206 (executable-update): Use $(cvs_executable_files).
8207 (local-checks-to-skip): Remove.
8208 * Makefile.maint: Merge from coreutils, plus add our own changes
8209 (gzip_rsyncable): New macro.
8211 (CVS_LIST): Use build-aux/vc-list-files.
8212 (VERSION_REGEXP): New macro.
8213 (local-checks-available): Add patch-check, $(syntax-check-rules),
8215 (syntax-check-rules): Compute dynamically.
8216 (sc_cast_of_x_alloc_return_value): Work even if no source files.
8217 (sc_cast_of_alloca_return_value): Likewise.
8218 (sc_prohibit_atoi_atof): Simplify regexp.
8219 (sc_no_if_have_config_h, sc_require_config_h):
8220 (sc_prohibit_assert_without_use,
8221 (sc_obsolete_symbols): Check for O_NDELAY.
8222 (sc_texi_notab): Remove.
8223 (sc-changelog): Don't make an exception for '----' lines.
8224 (.re-list): Remove, so we don't have a junk file behind.
8225 (sc_system_h_headers): Remove the need for .re-list.
8226 (sc_the_the): New rule.
8227 (sc_tight_scope): Simplify.
8228 (sc_trailing_blank): Renamed from sc_trailing_space.
8229 (longopt_re): New macro.
8230 (sc_two_space_separator_in_usage): New rule.
8231 (sc_unmarked_diagnostics): Look at all files under CVS.
8232 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
8233 (news-date-check, changelog-check): Version is OK.
8234 (po-check): Look for lib files even if not in CVS.
8235 (copyright-check): Use $() not ``.
8236 (maintainer-distcheck): Do not depend on changelog-check.
8237 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
8238 Also check for -Wpointer-arith.
8239 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
8240 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
8242 (announcement): Add --gpg-key-id arg.
8244 (move_if_change): Just use mv.
8245 (local_updates: Remove wget-update, po-update.
8246 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
8247 (config.guess-url_prefix, config.sub-url_prefix): Remove.
8248 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
8249 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
8250 ($(get-targets)): Remove.
8251 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
8252 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
8253 (cvs-update): Get from gnulib.
8254 (emut_upload_commands): gnupload is in build-aux now.
8255 (alpha beta major): Add changelog-check. Check version.
8256 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
8257 (AC_CONFIG_FILES): Remove.
8258 * bin/autoconf.as: Add spaces to avoid distcheck warning.
8259 * config/announce-gen: Sync from coreutils.
8260 * doc/make-stds.texi: Sync from gnulib.
8261 * doc/standards.texi: Likewise.
8262 * man/Makefile.am: Adjust for config -> build-aux renaming.
8263 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
8264 * tests/local.at: Adjust from config -> build-aux renaming.
8265 * tests/tools.at: Likewise.
8266 * tests/torture.at: Likewise.
8268 * NEWS: The C99 check now tests for vararg macros and 64-bit
8270 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
8271 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
8272 64-bit preprocessor ints. Check for static initialization of
8273 long long. Remove unnecessary casts.
8275 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8277 * doc/autoconf.texi (Particular Programs): Mention that
8278 @INSTALL@ and @MKDIR_P@ may vary for different output files.
8279 Reported by Alexandre Duret-Lutz.
8281 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
8283 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
8284 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
8286 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
8288 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
8290 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
8291 pacify insanely picky compilers. Problem reported by Eric Blake.
8293 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
8294 longer supported by Sun.
8296 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8298 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
8299 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
8300 -Wundef -Werror". Problem reported by David Fang in
8301 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
8302 * doc/autoconf.texi (Header Templates, Default Includes):
8303 (Particular Functions, Generic Functions, Header Portability):
8304 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
8305 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
8306 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
8307 Prefer #ifdef to #if.
8308 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
8309 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
8310 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
8311 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
8313 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
8314 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
8315 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
8316 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8317 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
8318 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
8321 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
8323 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
8324 problems with arg script text that doesn't end in newline, and
8325 with '-e a...'. Problems reported by Ralf Wildenhues.
8327 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
8329 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
8330 check for libXt by a check for libX11.
8332 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8334 * doc/autoconf.texi (config.status Invocation): Adjust according
8337 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8339 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
8340 --help' should mention that `--version' outputs configuration
8341 settings. Report by Bruno Haible.
8343 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
8345 Fix test suite failures reported by Pierre in
8346 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
8347 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
8348 the compiler created a file "b.out" when it didn't create anything
8350 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
8351 Discard stderr too, when invoking the test script.
8353 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
8355 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
8356 in the restoring of the werror flag.
8358 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
8360 * doc/autoconf.texi (Volatile Objects): Be even a little
8361 less skeptical about "volatile", after discussion with
8362 Bruno Haible on bug-gnulib.
8363 (Limitations of Usual Tools): Warn about sed stripping
8364 leading white space from text. From Bruno Haible.
8366 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
8368 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
8369 compiler complains about it, even if things works after the
8370 complaint. Problem reported by Peter O'Gorman.
8372 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
8373 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
8374 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
8376 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
8378 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
8379 after -R regardless of host. Patrick Welche reports that this
8380 fixes things on NetBSD 3.99.
8382 * NEWS: Recommend M4 1.4.5.
8384 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
8385 * tests/tools.at (autom4te cache): Update wording of diagnostic
8388 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
8390 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
8391 under AC_C_VOLATILE.
8392 (Volatile Objects): Be a little less skeptical about what
8393 "volatile" means. Derived from thoughts by Ben Pfaff in
8394 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
8396 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8398 * doc/autoconf.texi: Fix some typos.
8400 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
8402 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
8403 more globally, since the 2006-06-30 patch didn't suffice. Problem
8404 reported by Keith Marshall. Also, don't bother with builddir2,
8405 since it shouldn't be needed any more.
8407 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
8409 * doc/autoconf.texi (Generic compiler characteristics):
8410 Document AC_COMPUTE_INT. Fix wrong statements on Default
8411 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
8413 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
8414 (_AC_COMPUTE_INT): Add obsoletion warnings.
8415 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
8418 * NEWS: Document change.
8420 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8422 * doc/autoconf.texi (Volatile Objects): New section.
8424 * NEWS: Document previous change.
8426 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8428 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
8429 Require that long long int be at least 64 bits wide. C99 requires
8430 this and enough programs depend on it so we should check for it.
8431 Bruno Haible reports in
8432 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
8433 that long long int is 32 bits wide with some nonstandard compilers.
8434 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8436 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8438 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
8439 to a nonexistent file, so that we don't have to worry about
8440 a local site configuration that doesn't use /usr/local.
8441 Problem reported by Keith Marshall in
8442 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
8444 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
8446 * doc/autoconf.texi: Be more consistent about using @acronym with
8447 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
8448 quite right (it talked about "OSF/Tru64", even though the
8449 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
8450 and it even mentioned "OSF 4"!) and at this point there's little
8451 reason to talk about OSF any more, since it died in 1994.
8452 (Specific Compiler Characteristics): Simplify example of
8453 negative-size array.
8454 (File Descriptors): Reorder to make the text flow better.
8455 Remove joke about "appreciate the various levels"; I didn't get it.
8456 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
8457 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
8458 (File Descriptors, Limitations of Usual Tools):
8459 Tone down the advice against renaming or removing open files.
8460 (Limitations of Usual Tools): Add a new section, on 'rm'.
8462 2006-06-26 Stepan Kasal <kasal@ucw.cz>
8464 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
8465 -lXt in LIBS, idea from Karsten Hopp; this was due since
8468 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
8469 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
8470 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
8471 (which belong to Xt, not X itself). See Debian bug 327655.
8473 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8475 * configure.ac (AC_INIT): Bump to 2.60a.
8478 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8482 * configure.ac, NEWS: Update.
8484 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8486 * config/texinfo.tex: Sync from upstream.
8488 * bin/autom4te.in (handle_traces): Transform the `@S|@'
8489 quadrigraph correctly in traces.
8491 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
8494 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
8495 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
8497 * doc/autoconf.texi (Changed Directory Variables): New node,
8498 to document the whole `datarootdir' business a bit better.
8500 * tests/torture.at (datarootdir workaround): Extend test.
8501 Prompted by report by Alexandre Julliard.
8503 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
8505 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
8506 when using default mode of IBM C 6 for AIX. Problem and two-line
8507 fix reported by Larry Jones.
8509 2006-06-22 Alexandre Julliard <julliard@winehq.org>
8511 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
8512 about literal '${datarootdir}' if a definition is found in the
8515 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
8517 * NEWS: Use "M4" rather than "m4" when appropriate.
8518 Problem reported by Eric Blake.
8519 * doc/autoconf.texi: Likewise.
8520 Use @acronym around BSD, GCC, and GNU when appropriate.
8521 (Why GNU M4): Renamed from "Why GNU m4".
8522 (Redefined M4 Macros): Mention that Posix
8523 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
8524 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
8527 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8529 * bin/autom4te.in (handle_output): Do not forbid the empty
8531 * tests/tools.at (autoconf: the empty token): New test.
8533 2006-06-20 Stepan Kasal <kasal@ucw.cz>
8535 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
8536 calls, so that we do not care whether they are LIFO or FIFO;
8537 in the m4_wrap, do not check which diversion is the topmost
8538 one, just check that the stack is balanced at the end.
8539 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
8540 base diversion forever--pop the previous diversion before
8541 opening the new one; consequently, remove the m4_wrap call.
8542 * lib/autotest/general.m4 (AT_INIT): Likewise.
8543 * tests/m4sugar.at: Do not use
8544 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
8546 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8547 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8549 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
8550 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
8551 Rework example of m4wrap token-pasting trouble so that it doesn't
8552 care whether it's LIFO or FIFO.
8553 Fix some "contrary to"s that are awkward in English.
8555 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8557 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
8558 to `yes' instead of `int$1_t' if the type is found, for more
8559 consistent configure output (where $1 is the number of bits).
8560 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
8561 Suggested by Bruno Haible.
8563 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
8564 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
8565 with system headers. Report by Bruno Haible.
8567 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8569 * config/config.guess, config/config.sub: Sync from upstream.
8571 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
8572 in order to avoid picking up an older installed frozen m4sh.m4f.
8573 Besides an outdated shell startup, this could have been created
8574 by an earlier M4 version with incompatible frozen file format.
8576 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
8578 * README: Recommend m4 1.4.4 instead of 1.4.3..
8579 * doc/autoconf.texi: Likewise.
8580 (Special Chars in Names): Say that $(.FOO) is portable, as
8581 suggested by Stepan Kasal.
8582 (Installation Directory Variables, Build Directories):
8583 (Automatic Remaking, Subdirectories, Fortran Compiler):
8584 (Making testsuite Scripts, Defining Directories):
8585 Quote variable usages better.
8586 (Making testsuite Scripts): Add clean-local rule to makefile
8587 snippet, by Eric Blake.
8588 (Installation Directory Variables): Fix table item font.
8589 Reword slightly to clarify. Generalize advice about
8590 not using special characters to include all file-related
8591 vars, not just VPATH.
8592 (Special Chars in Variables): Warn about special characters in
8594 (Assignments): Clarify default-value example as suggested by
8596 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
8597 (Special Shell Variables): Note leading ./ or ../, as suggested
8599 (Limitations of Builtins): Under cd, warn about CDPATH.
8600 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
8603 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8605 * doc/autoconf.texi (Configuration Actions): Remove duplicate
8606 `@var', for texi2html.
8607 (Systemology): Some more word wrapping, for DVI output.
8608 (autom4te Invocation): The short option for `--melt' is `-M',
8611 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
8613 * doc/autoconf.texi: More formatting and English tweaks,
8614 many suggested by Ralf Wildenhues.
8615 Reword to avoid "@code{...}'s" and the like, since it's ugly
8616 with Emacs info mode. discontents -> woes.
8617 Put a few "will"s back. time stamp -> timestamp.
8618 side-effect -> side effect.
8620 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
8622 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
8623 Warn about $@ not persisting. Problem reported by Julien Danjou in
8624 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
8625 (Special Chars in Names): Renamed from Leading _ in Macro Names.
8626 Mention other special chars, too.
8628 2006-06-14 Eric Blake <ebb9@byu.net>
8630 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
8632 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
8634 * doc/autoconf.texi: Some systematic minor improvements, as
8635 follows. Use "makefile" when talking about makefiles
8636 generally (which might be named "makefile" or "Makefile" or even
8637 "foo.mk"), "Makefile" when talking about a specific makefile
8638 called "Makefile". This unclutters the text from weird quotes
8639 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
8640 values" rather than "@var{foo}s" and similar constructs containing
8641 "}s". Use "Make rules" rather than "Makefile rules". Minor
8642 English-language improvements. Change the prefix "sub-" to "sub"
8644 Put blank lines around examples more consistently.
8645 Avoid "rather" and "very" as intensifiers.
8646 Avoid "will" as an auxiliary.
8647 (Limitations of Make): Split this node into....
8648 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
8649 (Leading _ in Macro Names, Backslash-Newline-Newline):
8650 (Backslash-Newline Comments, Long Lines in Makefiles):
8651 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
8652 (obj/ and Make, make -k Status, VPATH and Make):
8653 (VPATH and Double-colon, $< in Explicit Rules):
8654 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
8655 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
8656 New nodes, resulting from splitup of Limitations of Make.
8657 All cross-references changed. Raise the top node from
8658 a section to a chapter, and all subnodes accordingly.
8659 Redo the introductory wording to match the new organization.
8660 (Installation Directory Variables): Use an example that is
8661 closer to what Autoconf actually does. Mention that VPATH's
8662 value should not contain metacharacters or white space.
8663 (Fortran Compiler): Fix a VPATH bug in an example.
8664 (Leading _ in Macro Names): Mention that this problem is no longer
8665 of practical concern.
8666 (VPATH and Make): Reword the advice to make it clearer
8667 that Autoconf and Automake support VPATH in non-GNU make, but
8668 many packages have bugs in this area.
8669 ($< in Explicit Rules): Refer to Build Directories rather
8670 than using a (non-VPATH-safe) example.
8671 (Automatic Rule Rewriting): Mention the sort of disaster that
8672 can ensue with Solaris-style rule rewriting with VPATH.
8674 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8676 * doc/install.texi (Compilers and Options): Weaken the
8677 suggestion to use GNU make for VPATH builds.
8679 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
8680 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
8682 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
8683 in regular expression.
8685 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8687 * doc/autoconf.texi (Installation Directory Variables):
8688 Drop extra @samp from `@table @samp' item.
8689 (Limitations of Usual Tools): Comment fix.
8690 Do not nest @samp just to point to other table items.
8691 (Writing testsuite.at) <AT_CHECK>: The second argument to
8692 `@dvar' is already @samp'ed.
8693 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
8694 do not use @var in the second argument.
8696 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
8698 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
8699 $as_shell.exe too. Problem reported by Andreas Buening in
8700 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
8702 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8704 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
8705 `unused variable' compiler warning, for `-Wall -Werror'.
8706 Reported by Jaap Haitsma in
8707 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
8709 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
8711 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
8712 case the compiler dumps core. Problem reported for
8713 OpenServer 5.0.7 by Tim Rice in
8714 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
8715 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
8718 2006-06-06 Tim Rice <tim@multitalents.net>.
8720 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
8721 "ERROR" only shows up in "make check" output if there is an
8724 2006-06-06 Eric Blake <ebb9@byu.net>
8726 * tests/tools.at (automatically allowed tokens): Fix typo.
8728 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
8730 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
8732 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
8733 typically overflows on x86 CPUs, even though the C standard
8736 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8738 * configure.ac (AC_INIT): Bump to 2.59e.
8741 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8745 * config/texinfo.tex: Sync from upstream.
8747 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
8748 seen, invoke libtoolize with `--ltdl' argument.
8749 * lib/autom4te.in (Autoreconf-preselections): Adjust.
8751 Suggested by Eric Blake.
8753 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
8755 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
8756 reported by Ralf Wildenhues.
8757 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
8759 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8763 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
8765 * doc/autoconf.texi: Modernize some of the references to Solaris.
8767 2006-06-05 Stepan Kasal <kasal@ucw.cz>
8769 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
8770 message issued by AC_REQUIRE.
8771 * tests/m4sugar.at: Check m4_require's error message.
8772 * tests/base.at: Check AC_REQUIRE's error message.
8773 * tests/local.at (AT_CHECK_M4): New macro, almost identical
8775 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
8777 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
8778 `expout' as the last parameter.
8779 * tests/tools.at: Adapt to the above change.
8781 2006-06-04 Stepan Kasal <kasal@ucw.cz>
8783 * doc/autoconf.texi (Limitations of Usual Tools): Correct
8784 information about race-free implementations of mkdir.
8786 2006-06-04 Eric Blake <ebb9@byu.net>
8788 * bin/autoreconf.in (help): Document M4 environment variable.
8789 * bin/autoconf.as (Usage): Likewise.
8790 * bin/autom4te.in (help): Likewise.
8791 * doc/autoconf.texi (autom4te Invocation): Likewise.
8793 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
8795 * NEWS: GNU make now recommended for VPATH builds.
8796 Mention that some macros are now documented to be obsolescent.
8797 * doc/autoconf.texi:
8798 Prefer "current" to "modern" to describe
8799 currently-used (albeit perhaps old-fashioned) hosts.
8800 Mention which ancient features no longer need to be worried about.
8801 setgid -> set-group-ID
8802 setuid -> set-user-ID (these are the Posix terms)
8803 Fix some misuses of "only".
8804 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
8805 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
8806 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
8807 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
8808 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
8809 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
8810 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
8811 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
8812 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
8813 Mention that these macros are obsolescent.
8814 (Installation Directory Variables): shall -> should
8815 (File Descriptors): Mention that 0, 1, 2 might get reopened.
8816 Mention that it's now safe to use 3 and 4.
8817 (Limitations of Usual Tools): cp -r is now specified by Posix.
8818 Omit longwinded and obsolescent discussion of cp -f.
8819 Modernize discussion of expr, ls.
8820 (Limitations of Make): Modernize discussion of VPATH builds.
8821 Mention $? as a workaround in some cases.
8822 * doc/install.texi (Basic Installation):
8823 Mention "./configure; make; make install" first. Be more
8824 specific about why this file is generic. Remove unnecessary
8825 parens. Remove misleading "only". Remove obsolete advice
8826 about csh. Don't say "configure" takes awhile; say it
8827 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
8828 and CC=c99 rather than CC=c89, as these are blessed by current
8829 Posix. Recommend GNU make if doing a VPATH build.
8831 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
8833 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
8834 examples involving shell prompts.
8836 2006-06-02 Stepan Kasal <kasal@ucw.cz>
8837 and Paul Eggert <eggert@cs.ucla.edu>
8839 * doc/autoconf.texi (Here-Documents): Add details about the
8840 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
8841 use "here-documents" instead of "here documents".
8843 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8845 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
8847 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
8849 * doc/autoconf.texi (File System Conventions): Warn about ":"
8850 anywhere in directory names.
8852 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
8854 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
8855 about quoting the case statement, just in case.
8856 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
8857 was fixed in ksh93g; reported by Ralf Wildenhues.
8859 2006-05-31 Stepan Kasal <kasal@ucw.cz>
8861 * doc/autoconf.texi (System Services): Do not document
8862 overriding EXEEXT via ac_cv_exeext=ext.
8863 (Particular Programs) <AC_PROG_MKDIR_P>:
8864 Document that ${MKDIR_P} understands --.
8865 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
8868 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8870 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
8871 argument with leading hyphen. Problem reported by Paul Eggert.
8873 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
8875 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
8876 about quoting ac_try: quote all of it, if any of it seems suspicious.
8877 This means we don't have to worry about ${ or sed any more.
8878 Also, double-quote the case statement, to work around misuses via
8879 underquoting as reported by Ralf Wildenhues in
8880 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
8881 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
8882 undocumented and dangerous macro.
8883 Problem reported by Ralf Wildenhues in
8884 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
8886 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8888 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
8889 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
8890 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
8892 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
8894 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
8895 since evidently some packages rely on the old, broken behavior.
8896 Problem reported by Ralf Wildenhues in
8897 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
8898 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
8899 pre-2006-05-26 definitions, but leave in the comments that
8900 these macros are dangerous and should not be used.
8901 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
8902 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
8903 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
8904 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
8905 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
8907 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
8909 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
8910 the use of 'tr', since this is our only use of 'tr'.
8912 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8913 and Paul Eggert <eggert@cs.ucla.edu>
8915 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
8916 Don't assume 'grep' works on long lines, since AIX grep doesn't.
8918 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8920 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
8921 the output file in the `${datarootdir}' test.
8923 2005-05-28 Stepan Kasal <kasal@ucw.cz>
8924 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8926 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
8927 mention of `datarootdir' in the input file(s), but literal
8928 `${datarootdir}' in the output file, and we haven't warned yet,
8929 then warn as well: the user may have (erroneously) used
8930 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
8931 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
8932 * tests/torture.at (datarootdir workaround): Extend this test.
8935 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8936 and Paul Eggert <eggert@cs.ucla.edu>
8938 * doc/autoconf.texi (autoheader Invocation): The first argument to
8939 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
8940 alternatives and clear up the language a bit.
8942 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
8944 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
8945 ac_config_guess, ac_config_sub, ac_configure.
8946 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8947 Fix typo that prevented an unnecessary space from being removed.
8948 Problems reported by Ralf Wildenhues in:
8949 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
8951 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
8953 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
8954 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
8955 Don't use the term "thread-safe" to talk about mkdir race
8956 conditions, since the problem is more a process than a thread
8957 issue. Problem reported by Stepan Kasal in:
8958 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
8959 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
8960 the test for 'install' more closely. Look at MKDIR_P first.
8961 Look in the PATH, and at /opt/sfw/bin.
8962 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
8963 Don't bother to try mkdir -p, since we already check mkdir --version;
8964 just look at the version number. (There's no easy way to check
8965 for race-free implementations.)
8966 * tests/tools.at (autoconf: subdirectories): Adjust to above
8967 changes, since MKDIR_P now might end in "/mkdir -p".
8969 * doc/autoconf.texi (autoheader Invocation): Mention that the
8970 first arg of AC_DEFINE_UNQUOTED must be a literal.
8971 Problem reported by Ben Pfaff in
8972 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
8974 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
8975 * doc/autoconf.texi (Special Chars in Variables): New section.
8976 (Preset Output Variables): Warn about special chars in CPPFLAGS.
8977 (Installation Directory Variables): Quote $(datadir) better.
8978 (Limitations of Builtins): Describe some of eval's trickiness.
8980 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
8981 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8982 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
8983 in front of every arg, not just trailing args. Quote apostrophes.
8984 (_AC_EVAL_ECHO): New macro.
8985 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
8986 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
8988 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
8989 exposed by quoting of eval argument. Put the command on line line
8991 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
8992 (_AC_PATH_X, AC_PATH_X): Quote more safely.
8993 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
8994 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
8995 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
8996 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
8997 Use eval more safely.
8998 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
8999 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
9001 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
9002 lines, exposed by quoting of eval argument.
9004 2006-05-26 Stepan Kasal <kasal@ucw.cz>
9005 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9007 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
9008 initialization of `ac_cv_exeext', do not override it if it was
9009 already set, unless it was set to `no', for compatibility with
9010 Autoconf-2.13, and comment this.
9011 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
9012 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
9013 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
9014 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
9015 Document that this test may be overridden by setting
9018 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9020 Revert these two patches:
9022 2006-04-06 Eric Blake <ebb9@byu.net>
9023 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
9024 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
9027 2006-04-01 Stepan Kasal <kasal@ucw.cz>
9028 Clean up _AC_COMPILER_EXEEXT* macros.
9029 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
9030 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
9031 ac_file to the name of the default output file and call
9032 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
9033 initial `rm' of the candidate files...
9034 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
9035 the same list in subsequent `rm' calls, and for the temporary
9036 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
9037 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
9038 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
9039 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
9040 no longer needed) by libtool. Make it a cache check.
9041 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
9042 copied here by mistake.
9043 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
9044 _AC_COMPILER_EXEEXT.
9045 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
9046 _AC_COMPILER_OBJEXT directly.
9047 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9049 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9051 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
9052 Fix description of how the buggy `sed' works.
9054 2006-05-25 Noah Misch <noah@cs.caltech.edu>
9058 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
9059 ENOLCK. Only mention `make -j' when applicable. Only raise
9060 fatal errors when `make -j' is involved. Improve error message.
9062 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9064 * doc/autoconf.texi (Here-Documents): We now know more about
9065 the variable expansion in here documents bug.
9066 Thanks to Tim Rice and Stepan Kasal.
9068 * doc/autoconf.texi (Making testsuite Scripts): Add an example
9069 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
9071 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9073 * tests/autotest.at (Multiline command from M4 expansion):
9074 No failure to be expected if the shell quotes newlines in
9075 commands in the `set -x' output. Report by Tim Rice.
9078 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
9080 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
9081 expansion in the here-documents used by config.status, as that
9082 runs afoul of the Korn shell version M-12/28/93d bug described in
9083 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
9084 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
9085 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
9087 2006-05-23 Jim Meyering <jim@meyering.net>
9089 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9090 Fix typo introduced with 2006-04-02 change. It reversed the sense
9093 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
9095 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
9096 ac_dB slightly, to save bytes in the script.
9097 Max out at 50 lines, rather than 96; this is more likely
9098 (though not guaranteed) to avoid obscure 'sed' failures.
9100 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9102 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
9103 `tr -d -' as bad option argument. Work around this by deleting
9104 an unrelated character.
9105 Report by Tim Rice <tim@multitalents.net>.
9107 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
9108 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
9109 Stepan Kasal <kasal@ucw.cz>
9111 * doc/autoconf.texi (Particular Programs): Do not promise that
9112 we always prefer the GNU version of the program, and that we
9113 search according to PATH; both rules can have exceptions.
9114 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
9115 AC_PROG_SED. Move descriptions of limitations
9116 to the Limitations of Usual Tools section.
9117 (Limitations of Usual Tools) <sed>: Mention script length
9118 limitations with Solaris /usr/ucb/sed.
9119 <grep>: Fix wording for empty alternative. Mention that -c and
9120 -l should not be combined, and that -E and -F should not be
9123 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
9124 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9126 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
9127 limits in Solaris 8 /usr/ucb/sed by testing a long script.
9129 2006-05-22 Stepan Kasal <kasal@ucw.cz>
9131 * doc/autoconf.texi (Defining Symbols): Literal parameter of
9132 AC_DEFINE is now passed to m4_pattern_allow.
9133 * NEWS: Mention that; likewise for AC_SUBST.
9134 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
9135 the parameter to m4_pattern_allow.
9136 * tests/tools.at: Add a check for that.
9138 2006-05-22 Stepan Kasal <kasal@ucw.cz>
9140 * lib/autoconf/status.m4: Fix typos.
9142 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9144 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
9145 only the files that this macro generates.
9147 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
9149 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
9150 the HP-UX sed limitation of 99 commands, labels do not count.
9151 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
9153 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
9155 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
9157 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
9158 Import the following fix from coreutils:
9160 2006-01-13 Jim Meyering <jim@meyering.net>
9162 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9163 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
9164 not double-quote uses of that variable, to accommodate the rare
9165 case in which getmntent is available in none of the libraries
9166 checked. This happens at least on FreeBSD 5.0.
9168 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
9170 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
9171 ac_config_guess, ac_config_sub, and ac_configure, since evidently
9172 some other programs unwisely rely on these undocumented vars.
9173 But put in warning comments about them.
9174 Problem reported by Ralf Wildenhues in
9175 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
9176 * NEWS: Document that these variables are intended to go away.
9178 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9180 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
9181 and set the language to C++ (analogous to the equivalent Fortran
9184 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
9185 * doc/autoconf.texi (C++ Compiler): Document it.
9186 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
9189 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9191 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
9192 that caused config.status to generate 100-command sed scripts; the
9193 portable limit is 99.
9195 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9197 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
9198 variable `ac_d' instead of `d' to avoid infringing namespace.
9199 Report by Ralf Menzel.
9201 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
9203 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
9204 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
9205 * tests/tools.at (autoconf: subdirectories): New test, taken from
9206 the corresponding problem report by Ralf Wildenhues in:
9207 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
9209 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
9210 Quote some uses of shell variables if they might suffer unexpected
9211 globbing. This doesn't fix all instances of quoting problems that
9212 I found, just the easy ones that look safe.
9213 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
9214 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
9215 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
9216 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
9217 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
9218 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9219 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
9221 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
9222 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
9224 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9226 * bin/autoreconf.in ($help): Reword according to the manual.
9227 Suggested by Olly Betts.
9229 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
9230 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9232 * bin/autoreconf.in: Pass the directory argument to
9233 `require_configure_ac'. Fix comment.
9234 * tests/torture.at (Configuring subdirectories): Expose this.
9235 Reported by Olly Betts.
9237 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9239 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
9240 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
9241 Automake as follows:
9243 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
9244 `$configure_in' instead of `configure.in', to preserve
9245 directory component.
9247 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9249 * config/config.guess, config/config.sub, config/texinfo.tex,
9250 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
9252 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
9254 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
9255 test for C99 conformance; (bool) 0.5 is an integer constant
9256 expression, but (bool) -0.5 is not. Problem reported by Fedor
9257 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
9259 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
9261 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
9262 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
9263 Warn about obsolete install-sh files. Remove stray sentence
9264 fragment and fix cross reference.
9265 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
9266 install -d; this undoes the 2006-05-10 change.
9267 (MKDIR_P): Mark with AN_MAKEVAR.
9268 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
9269 that we don't require $INSTALL to be thread-safe. Move comments
9270 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
9271 of AC_PROG_INSTALL. Output a message saying that we're checking
9272 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
9273 MKDIR_P instead of AC_SUBST.
9274 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
9275 Special magic for MKDIR_P, too.
9276 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
9278 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
9280 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
9282 Sync from Automake, as follows:
9284 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9285 * config/install-sh: Initialize IFS, so field splitting isn't
9287 * config/mkinstalldirs: Likewise.
9288 * config/missing: Remove superfluous quotes. Replace all uses of
9289 `[' by `test', for consistency, and for..
9290 * config/missing (sed_minuso, sed_output): New variables.
9291 (autom4te, help2man, makeinfo): Use them. Unifies detection of
9292 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
9293 Fixes `missing' to detect `--output' for help2man. Fixes
9294 PR automake/483. Report by Dennis J. Linse.
9295 (autom4te): Document in `missing --help'.
9297 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
9299 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
9300 * config/install-sh: Don't use 'path' to talk about file names,
9301 as per GNU coding standards. Close a race condition reported by Ralf
9302 Wildenhues and Stepan Kasal. There is still a race condition
9303 on hosts that predate Posix 1003.1-1992, but we can't help this.
9304 Don't mishandle weird characters like space on pre-Posix hosts.
9305 Invoke mkdir at most once per dir arg on pre-Posix hosts.
9306 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
9307 AC_PROG_MKDIR_P from AS_MKDIR_P.
9308 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
9309 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
9310 earlier editions are not (including Automake 1.8.3).
9311 Do not suggest mkinstalldirs for thread-safety.
9312 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
9313 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
9314 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
9315 presence of special characters and race conditions.
9316 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
9317 in Autoconf's name space.
9319 2006-05-10 Bruno Haible <bruno@clisp.org>
9320 and Paul Eggert <eggert@cs.ucla.edu>
9322 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
9323 from Automake with minor changes.
9324 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
9326 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
9328 * config/install-sh: Update to Automake CVS version, as follows:
9329 2006-04-25 Stepan Kasal <kasal@ucw.cz>
9330 * lib/install-sh: Simplify the expr implementation of dirname.
9331 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
9332 * lib/install-sh: Handle --, and diagnose unknown options.
9334 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9336 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
9337 `./autom4te' to create `./testsuite', since the `all' target
9338 will ensure its presence, but `installcheck' should not create
9339 the uninstalled wrappers.
9341 * tests/torture.at (Unusual Automake input files): Skip if we
9342 detect automake < 1.8.
9344 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9346 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
9347 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
9348 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
9351 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9353 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
9354 munge (multiple) white space and other oddities.
9355 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
9356 single quotes in variable assignment.
9357 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
9358 and similar failures by adding multiple spaces, tabs, and other
9360 Report and different test suggested by Francesco Romani
9361 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
9363 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
9364 single quotes, we only need to search for single quotes; this
9365 both simplifies the search pattern, and makes us less
9366 susceptible to `echo' variations for arguments not containing
9368 (_AC_ARG_VAR_VALIDATE): Likewise.
9370 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9372 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
9373 `$*' and IFS concatenation issue with traditional shells and
9374 bash-2.04. Report by Seanster@Seanster.com.
9376 2006-05-03 Bruno Haible <bruno@clisp.org>
9378 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
9379 precisely which Mac OS X versions have the od problem.
9381 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9383 * doc/autoconf.texi: Use @option systematically.
9385 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9386 and Bruno Haible <bruno@clisp.org>
9388 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
9390 (Integer Overflow): Mention the special case of integer division
9393 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9395 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
9396 traditional shells like the Solaris one that do not use the
9397 first IFS character for assembling `$*'.
9398 Prompted by a related report from autoconf_bug@nro.ca.
9400 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
9401 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9403 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
9404 Mention more problems with the -e option.
9406 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9409 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
9411 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
9412 in URLs to improve DVI formatted output (requires texinfo 4.6).
9413 (System Services, Systemology, Shellology): Likewise.
9414 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
9417 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
9419 (Runtime): Fix macro argument names to match description:
9420 `action-if-found' -> `action-if-true' and similarly.
9421 (Obsolete Macros): Likewise.
9422 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
9423 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
9424 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
9426 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9428 * doc/autoconf.texi (Limitations of Make): Clean up markup.
9431 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
9434 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9436 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
9437 /bin/sh set unsorted output.
9438 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
9439 * tests/local.at: Likewise.
9441 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
9443 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
9444 (Integer Overflow, Null Pointers, Buffer Overruns):
9445 (Floating Point Portability, Exiting Portably): New sections.
9446 (Writing Test Programs): Fix some langauge. Recommend exiting
9447 with status 1, not merely nonzero. Clarify exit declaration.
9448 (Run Time): Move C exit status stuff to new Exiting Portably section.
9449 (Systemology): Mention Posix and levenez. Update v7 reference.
9450 (Portable Shell): Mention the Posix shell.
9452 2006-04-25 Stepan Kasal <kasal@ucw.cz>
9454 * bin/autoconf.as (me): Replace by as_me.
9456 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
9458 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
9459 since as_me isn't set yet.
9461 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
9463 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
9464 a few minor bugs in this area.
9466 * doc/autoconf.texi (Programming in M4sh): Comment out the
9467 documentation of AS_BASENAME, for now.
9468 (Shell Substitutions): Do not use AS_DIRNAME in an example.
9469 (Limitations of Builtins) <basename>: Do not refer to
9471 * bin/autoconf.as (me): Don't use AS_BASENAME.
9472 (dir): Remove the unused variable.
9473 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
9474 AS_DETECT_REQUIRED. All uses changed.
9475 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
9477 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
9478 (AS_BASENAME): Use "basename --" to protect against leading "-".
9479 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
9480 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
9481 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
9482 (_AS_DIRNAME_PREPARE): Likewise.
9483 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
9484 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
9485 (AS_DIRNAME): Use "dirname --".
9487 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
9489 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
9490 of "run time" and "run-time" changed to "runtime", for consistency.
9491 * lib/autoconf/fortran.m4: Likewise (in comment).
9492 * lib/autoconf/functions.m4: Likewise.
9493 * lib/autoconf/general.m4: Likewise.
9494 * lib/autoconf/headers.m4: Likewise.
9496 * doc/autoconf.texi (Run Time): Document the exit status situation
9497 with more accuracy and detail.
9499 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9501 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
9502 Archive is not officially `GNU' any more. Update URL.
9503 (Defining Directories): Likewise
9504 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
9506 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9508 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
9509 newline from the `trap' code to finish `config.log'; the NetBSD
9510 /bin/sh resets the exit status after an empty command, as
9511 documented in doc/autoconf.texi.
9512 Reported by Dalibor Topic <robilad@kaffe.org>.
9514 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
9516 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
9517 Suggested by Bruno Haible.
9519 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
9521 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
9522 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
9523 Instead, just list the shells that we know work.
9524 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
9525 changed. Be more cautious about the _cv_ variable.
9526 * tests/tools.at (Syntax of the shell scripts): Check the
9527 _cv_ variable once, at first, to avoid an internal autoconf error
9528 when sh -n does not work.
9530 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9532 * lib/Autom4te/FileUtils.pm: Sync from Automake.
9534 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
9536 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
9537 use ">&-" since we're only 99.999% sure that this is portable,
9538 and since the MinGW bug is fixed in a different way.
9539 * lib/autotest/general.m4 (AT_INIT): Likewise.
9541 2006-04-16 Stepan Kasal <kasal@ucw.cz>
9543 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
9544 before opening config.log, to avoid hitting a bug on MinGW.
9546 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
9548 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
9549 AS_MESSAGE_LOG_FD before reopening it onto the log file.
9550 This works around a MinGW bug reported by Eric Paire.
9551 Make sure that all writes to the log file append to it,
9552 rather than possibly losing data.
9553 * lib/autotest/general.m4 (AT_INIT): Likewise.
9555 2006-04-14 Stepan Kasal <kasal@ucw.cz>
9557 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
9560 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9564 * configure.ac (AC_INIT): Bump to 2.59d.
9566 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9570 * Makefile.maint (news-date-check): Do not require a leading `*'
9571 before the release date in NEWS.
9573 2006-04-12 Stepan Kasal <kasal@ucw.cz>
9574 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9576 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
9577 the instantiated file do not contain the string 'datarootdir'
9578 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
9579 @mandir@, replace the reference '${datarootdir}' by the value.
9580 * tests/torture.at (datarootdir workaround): New test.
9581 * NEWS: Advertise this temporary fixup.
9582 Based on a patch by Bruno Haible, reported and analyzed by
9583 Paul Eggert and Noah Misch.
9585 2006-04-12 Eric Blake <ebb9@byu.net>
9587 * tests/autotest.at (Debugging a failed test): Fix comment.
9589 2006-04-12 Stepan Kasal <kasal@ucw.cz>
9591 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
9592 all the changes since 2006-04-07.
9594 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9596 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
9597 succeeded, but `ln -s file dir' failed, take care to remove the
9598 leftover target before the next test, to prevent its spurious
9599 failure; also make sure `ln file dir' works before selecting it.
9600 Thanks to Keith Marshall for pointing this out.
9603 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
9604 assignments in `at_debug_args', so that we put them correctly
9605 in the `run' script.
9606 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
9607 Reported by Eric Blake.
9609 2006-04-11 Eric Blake <ebb9@byu.net>
9611 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
9612 top-level tests after micro-suite has been run. Used in...
9613 (Debugging a successful test, Debugging script and environment),
9614 (Debugging a failed test): ...these new tests. The first of these
9616 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
9617 macro, split out from...
9618 (AT_INIT): ...here, so that using -d also generates a run script.
9619 Document that -d inhibits top-level logging.
9620 * doc/autoconf.texi (testsuite Invocation): Document that -d only
9621 inhibits top-level logging; debug scripts are created.
9623 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
9625 * tests/autotest.at (Empty test, Empty check): New test to check it.
9627 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
9630 2006-04-10 Stepan Kasal <kasal@ucw.cz>
9632 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
9633 the files if a problem appears. Make the empty *.at files
9634 read-only, too. Proposed by Ralf Wildenhues.
9636 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9638 * config/Makefile.am: Add comment to force updated Makefile.in.
9640 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
9641 space only patch to this file, this patch causes the Makefile.in
9642 files that include freeze.mk to be updated, and thus have a
9643 newer time stamp again, which in turn makes a pristine CVS
9644 checkout have correct time stamps.
9646 * Makefile.maint (cvs-sv): New macro, to be used..
9647 (config.guess-url_prefix, config.sub-url_prefix)
9648 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
9649 point to CVS text checkout of Gnulib files.
9650 (copyright-check): Bump current year.
9651 (announcement): Do not hard-wire `./announce-gen'.
9652 (cvs-update): Propagate failures of `cvs' and `move-if-change'
9654 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
9656 (wget_files): Update config.guess, config.sub, texinfo.tex by
9657 `wget-update', now that their URLs work again.
9659 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
9661 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
9662 Problem noted by Paul D. Smith.
9664 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9666 * doc/autoconf.texi: Remove unused words from word list.
9667 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
9668 .x-sc_trailing_space: New files.
9670 * doc/standards.texi: Sync from gnulib.
9672 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
9673 `LIBOBJDIR' as experimental.
9675 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
9676 with a target directory; it's internally implemented as `cp'
9677 anyway, but since Autoconf advertises the possibility to use
9678 a target directory when LN_S is `ln -s', we need to find out.
9679 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
9680 analyzed by Keith Marshall <keith.marshall@total.com>.
9684 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
9686 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
9687 confdefs.h as-is. In general, if it has backslash-newline or the
9688 like, then it doesn't work either to sort or to remove empty
9691 2006-04-09 Stepan Kasal <kasal@ucw.cz>
9693 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
9695 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
9697 * lib/autom4te.in (Automake-preselections): Preselect
9700 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
9702 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
9703 apostrophe within a single-quoted string, as this is the usual
9704 tradition and is easier to read than '"'"'. Don't rely on the
9705 shell treating "$/" like '$/'. Use a more-consistent indenting
9708 2006-04-09 Eric Blake <ebb9@byu.net>
9710 * tests/autotest.at (Backquote command substitution),
9711 (Multiline backquote command substitution): Remove mistaken
9712 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
9714 (Parenthetical command substitution, Multiline parenthetical
9715 command substitution): here.
9717 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
9719 Import macros from gnulib (often changing their name).
9721 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
9722 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
9723 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
9724 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
9725 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
9726 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
9727 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
9728 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
9729 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
9730 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
9731 The manual mentions Gnulib more prominently.
9732 * doc/autoconf.texi (Gnulib): New node.
9733 (Pointers): Add Gnulib URL.
9734 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
9735 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
9737 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
9738 suggest a #define rather than a typedef for _Bool, and mention
9739 Gnulib rather than trying to substitute stdbool code.
9740 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
9741 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
9742 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
9743 AC_STRUCT_DIRENT_D_TYPE.
9744 (Particular Types): Mention stdint.h and inttypes.h as standard
9746 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
9747 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
9748 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
9749 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
9750 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
9751 (C Compiler): Move AC_C_LONG_DOUBLE to ...
9752 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
9753 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
9754 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
9755 (Coding Style). Don't mention m4_expand_once.
9756 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
9757 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
9758 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
9759 (AC_CHECK_FUNCS): Use it.
9760 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
9761 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
9762 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
9763 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
9764 (AC_HEADER_ASSERT): New macro.
9765 (AC_HEADER_STDBOOL): Don't assume "#error" works.
9766 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
9767 Catch a bug in an HP-UX C compiler.
9768 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
9769 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
9770 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
9771 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
9772 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
9773 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
9776 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
9777 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
9779 2006-04-08 Stepan Kasal <kasal@ucw.cz>
9781 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
9782 of the warning introduced by the 2001-08-28 change.
9784 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
9785 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9787 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
9788 variables shall be overriden by the cache.
9789 * tests/torture.at (AC_ARG_VAR): Test also with a first value
9790 that contains braces.
9792 2006-04-07 Stepan Kasal <kasal@ucw.cz>
9794 Revert the patch from 2006-04-01 and only improve
9795 _AS_DETECT_BETTER_SHELL:
9797 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
9798 skip nonexistent directories.
9799 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
9800 only shell candidates which exist.
9801 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
9802 * lib/autotest/general.m4 (AT_INIT): No need to give three
9803 parameters to _AS_PATH_WALK.
9805 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
9806 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9808 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
9809 distinguish m4sugar macros.
9810 * tests/tools.at (autoupdating with aclocal and m4_include):
9811 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
9812 test case by Noah Misch <noah@cs.caltech.edu>.
9814 2006-04-07 Stepan Kasal <kasal@ucw.cz>
9816 Revert my change from 2006-03-17, in other words:
9817 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
9819 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
9820 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
9823 2006-04-07 Eric Blake <ebb9@byu.net>
9825 * doc/autoconf.texi (Programming in M4sh): Document that
9826 AS_MKDIR_P exits the script on failure.
9827 * lib/autotest/general.m4: Remove redundant AS_ERROR.
9829 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9831 * config/elisp-comp, config/install-sh, config/mdate-sh,
9832 config/missing, config/mkinstalldirs: Sync from Automake.
9834 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
9837 * doc/make-stds.texi: Sync from gnulib.
9839 2006-04-06 Eric Blake <ebb9@byu.net>
9841 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
9842 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
9845 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
9846 Eric Blake <ebb9@byu.net>,
9847 Paul Eggert <eggert@cs.ucla.edu>,
9848 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9850 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
9851 whether `set' quotes correctly: redirect stderr of the tested
9852 `set', and use a subshell, for Ultrix; use `sed' instead of
9853 `grep' for zsh `set' which may write binary output; match only
9854 at the beginning of a line, to avoid false positives.
9855 In order to avoid false positives by unrelated variables with
9856 multiline content, put the dump algorithm in a subshell and
9857 unset all variables containing newlines (except some which are
9858 special to the shell). Warn about cache variables that are
9861 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9863 * config/config.guess, config/config.sub, config/texinfo.tex:
9866 * tests/mktests.sh: Reword comments.
9868 * tests/mktests.sh: Only skip internal macros starting with
9869 `_AC_' or `__AC_'. Noted by Stepan Kasal.
9870 Update exclusion lists for the test suite to this end:
9871 (AC_ARG_VAR): Do test this now.
9872 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
9873 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
9874 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
9875 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
9877 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
9878 shell issue with double-quoted command substitutions of native
9880 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
9883 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
9884 no file matches the glob, discard the warning, set `nullglob'.
9885 (syntax-check): Likewise.
9886 (sc_cast_of_x_alloc_return_value): Likewise.
9887 (sc_cast_of_alloca_return_value, sc_error_exit_success)
9888 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
9889 (m4-check): Likewise.
9890 (sc_system_h_headers): Do not print rule on execution.
9891 (sc_tight_scope): Do not fail for non-existing `src' directory.
9892 (sc_changelog): Skip the Copyright footer.
9893 * lib/autoconf/lang.m4: Remove trailing space.
9895 * lib/autoconf/status.m4: More replacements to
9896 <tab><space> where this makes sense.
9898 2006-04-06 Stepan Kasal <kasal@ucw.cz>
9900 * tests/Makefile.am (maintainer-check-posix):
9901 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
9903 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
9904 ac_config_<foo>s again, sometimes normalized, sometimes not.
9905 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
9906 (AC_CONFIG_COMMANDS): Do not do so here.
9907 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
9908 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
9909 2005-07-25 rewrite. Noticed by Noah Misch.
9911 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
9912 _AC_PRESERVE_HELP_ORDER, ...
9913 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
9915 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
9916 inside m4_expand_once; it is redundant.
9918 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
9919 for --help from Cygnus `configure.'
9921 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
9923 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
9924 on a patch proposed by Ralf Wildenhues.
9926 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
9928 * lib/autoconf/status.m4: Replace <space>''<tab> with
9929 <tab><space> where this makes sense.
9931 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
9932 Noah Misch <noah@cs.caltech.edu>
9934 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
9935 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
9936 * doc/autoconf.texi (Help Formatting): New node.
9937 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
9939 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9941 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
9942 lib/autoconf/specific.m4, lib/autoconf/status.m4,
9943 lib/autoconf/types.m4, lib/autotest/general.m4,
9944 tests/mktests.sh, tests/torture.at: White space cleanup:
9945 remove some SPACE before TAB, or add quoting ('' or @&t@).
9947 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
9949 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
9951 2006-04-05 Eric Blake <ebb9@byu.net>
9953 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
9954 empty test suite works.
9955 * tests/autotest.at (Empty test suite): Remove xfail.
9957 2006-04-05 Noah Misch <noah@cs.caltech.edu>
9959 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
9960 TAGS to ac_config_<foo>s.
9961 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
9962 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
9963 normalizing it, consistent it with previous releases.
9964 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
9966 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
9968 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
9969 Use simplified args that Eric Blake originally suggested.
9971 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
9973 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
9974 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
9975 Use 'comm' rather than N instances of grep; this also fixes a bug
9976 whereby substrings were incorrectly matched, causing us to not
9977 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
9978 (exclude_list): Exclude empty macros.
9979 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
9981 Use awk rather than grep -E or egrep, to avoid
9982 portability problems with regular expressions containing newlines.
9983 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
9984 Switch from grep to awk syntax.
9985 (ac_exclude_script): Renamed from ac_exclude_egrep.
9986 (au_exclude_script): Renamed from au_exclude_egrep.
9988 2006-04-04 Noah Misch <noah@cs.caltech.edu>
9990 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
9991 a subdirectory subject to Cygnus `configure'.
9992 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
9994 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
9995 report request when we have no AC_PACKAGE_BUGREPORT.
9997 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10001 * tests/mktests.sh: Update copyright year in the header of the
10004 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
10005 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
10006 typedef'ed restricted pointer, to catch a compiler bug on
10007 HP-UX 11.x, and fix warnings so it passes with -Werror.
10008 (_AC_PROG_CC_C99): Likewise.
10009 Reported by Albert Chin <china@thewrittenword.com>.
10010 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
10012 2006-04-03 Noah Misch <noah@cs.caltech.edu>
10014 * bin/autoscan.in (subdirs): New global.
10015 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
10016 (output): Emit AC_CONFIG_SUBDIRS as needed.
10017 * tests/autoscan.at (autoscan): Remove XFAIL.
10019 2006-04-03 Noah Misch <noah@cs.caltech.edu>
10021 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
10023 2006-04-03 Eric Blake <ebb9@byu.net>
10025 * THANKS: Add myself.
10027 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10029 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
10030 to log, point to testsuite output tree.
10032 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
10034 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
10035 * doc/autoconf.texi (Function Portability): Mention that C++
10036 has trouble with 'exit'.
10037 (Guidelines): Test programs shouldn't use 'exit'.
10038 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
10039 Remove; all uses removed.
10040 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
10041 Return from 'main' instead of calling 'exit'.
10042 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
10043 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
10044 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
10045 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
10046 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
10047 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
10048 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
10049 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
10050 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10051 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
10052 * tests/compile.at: Likewise.
10054 2006-04-02 Pavel Roskin <proski@gnu.org>
10056 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
10058 2006-04-01 Stepan Kasal <kasal@ucw.cz>
10060 Clean up _AC_COMPILER_EXEEXT* macros.
10062 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
10063 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
10064 ac_file to the name of the default output file and call
10065 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
10066 initial `rm' of the candidate files...
10067 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
10068 the same list in subsequent `rm' calls, and for the temporary
10069 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
10070 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
10071 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
10072 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
10073 no longer needed) by libtool. Make it a cache check.
10074 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
10075 copied here by mistake.
10076 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
10077 _AC_COMPILER_EXEEXT.
10078 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
10079 _AC_COMPILER_OBJEXT directly.
10080 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10082 2006-04-01 Stepan Kasal <kasal@ucw.cz>
10084 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
10085 (AS_DIRNAME): Use it.
10086 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
10088 * tests/*.at: Remove the generated ones.
10090 2006-04-01 Stepan Kasal <kasal@ucw.cz>
10092 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
10094 2006-04-01 Eric Blake <ebb9@byu.net>
10096 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
10097 directories, unless optional third argument supplied.
10098 (AS_UNAME): Don't optimize PATH walk.
10100 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
10102 2006-04-01 Eric Blake <ebb9@byu.net>
10103 and Stepan Kasal <kasal@ucw.cz>
10105 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
10106 and fix some typos.
10108 2006-04-01 Noah Misch <noah@cs.caltech.edu>
10110 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
10111 Autoconf version number despite a zero- or one-argument AC_INIT.
10113 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
10115 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
10116 * doc/autoconf.texi (autoreconf Invocation): Document it.
10118 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
10119 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
10121 2006-04-01 Eric Blake <ebb9@byu.net>
10123 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
10124 * lib/autotest/general.m4: Be tolerant of existing directory when
10125 rm failed to remove it.
10127 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10129 * bin/autoupdate.in: Redefine m4_location so that warnings print
10130 the correct lines of the input file by subtracting..
10131 (_au__first_line): ..this new definition.
10133 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
10134 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
10135 Remove stray newline in output.
10136 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
10137 AC_DEFUN this for autoconf, including the obsoletion diagnose.
10138 Fixes autoupdating of code where the replacement output contains
10140 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
10141 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
10142 (au_exclude_list): Add AC_LANG_SAVE.
10143 * tests/tools.at: Several new tests for all of this.
10144 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
10146 The AC_LANG_SAVE issue was reported against Libtool by
10147 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
10148 Kristian Kvilekval <kris@cs.ucsb.edu>.
10150 2006-04-01 Stepan Kasal <kasal@ucw.cz>
10152 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
10153 switch all of them on and of when necessary. Fixes the bug when
10154 m4sugar macros (e.g., m4_define) were expanded after the first
10155 automatic update (e.g., after AC_PREREQ or AC_INIT).
10157 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
10159 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
10160 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
10162 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
10163 correctly. Problem reported by Eric Blake.
10164 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
10167 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
10169 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
10170 Tighten up the basename/dirname wording.
10172 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10174 * Makefile.maint (sc_texi_notab): New check: do not use TABs
10175 in texinfo files outside of verbatim environments.
10176 (syntax-check-rules): Update.
10177 * doc/autoconf.texi (Configuration Headers): Conform to it.
10179 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
10181 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
10182 aclocal cannot be given on the command line.
10184 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
10186 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
10187 Give an example for AS_DIRNAME instead of referring to Posix..
10188 (File System Conventions): Put discussion of // versus / here, and
10189 modernize it a bit.
10190 (Limitations of Usual Tools): Add basename. Remove verbiage
10191 after dirname, since it got moved to the above sections.
10192 All this was inspired by a patch proposed earlier by Eric Blake.
10194 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10196 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
10197 `$0' to protect against spaces.
10198 * lib/autotest/general.m4 (AT_INIT): Likewise.
10199 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
10202 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10204 * bin/autoscan.in: The value of find_configure_ac should be
10205 checked for existence, so we don't barf over a nonexisting
10206 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
10208 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10210 * bin/autoupdate.in: Fix some typos.
10212 2006-03-21 Stepan Kasal <kasal@ucw.cz>
10214 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
10216 * lib/autoscan/autoscan.list: Refreshed.
10218 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10220 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
10221 and Erlang related variables.
10223 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
10224 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
10225 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
10226 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
10227 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
10228 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
10229 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
10230 (_AC_PROG_OBJC_G): New macros.
10231 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
10232 * doc/autoconf.texi (Objective C Compiler): New node.
10233 (Preset Output Variables): Document OBJCFLAGS.
10234 (Language Choice): Document `Objective C' language.
10235 (Fortran Compiler): Fix typo.
10237 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
10239 2006-03-20 Stepan Kasal <kasal@ucw.cz>
10241 * doc/autoconf.texi (Default Includes): Fix typo
10242 s/AC_HEADERS_STDC/AC_HEADER_STDC/
10243 (Limitations of Usual Tools): s/unwriteable/unwritable/
10244 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
10245 Fix typos in the comments.
10247 2006-03-17 Stepan Kasal <kasal@ucw.cz>
10249 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
10250 Factor out the warning to...
10251 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
10252 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
10253 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
10255 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
10256 case `ac_delim' when writing the sed script.
10258 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
10259 moved DUALCASE=1 ...
10260 (AS_SHELL_SANITIZE): ... here.
10261 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
10264 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
10266 (_AC_PATH_PROG): Store the result to VARIABLE.
10267 (AC_PATH_PROG): No need to set VARIABLE again.
10269 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
10270 the first one is usual AT_CHECK_MACRO test, the second one checks
10271 that the same works when cross-compiling.
10272 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
10273 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
10275 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10277 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
10278 the directory `/usr/bin/posix' in the shell search, to prefer
10279 the Posix shell not only in subsequent spawns as with `$BIN_SH'
10282 * doc/autoconf.texi (contents): To fix texi2html output, hide
10283 `@setcontentsaftertitlepage' for HTML.
10284 (Writing Autoconf Macros): Likewise, insert space after `@c'.
10285 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
10288 2006-03-16 Stepan Kasal <kasal@ucw.cz>
10290 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
10292 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
10293 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
10294 why IFS is restored so late; thank you, Ralf, for reminding us.
10296 2006-03-15 Stepan Kasal <kasal@ucw.cz>
10298 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
10299 variables in the examples.
10301 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
10303 * doc/autoconf.texi (several sections): Cleaned up documentation for
10304 macros in erlang.m4.
10306 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10308 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
10309 failure condition for `$(cmd)' style command substitutions.
10310 (Parenthetical command substitution, Multiline parenthetical
10311 command substitution): Use it.
10313 * doc/autoconf.texi (Special Shell Variables): Missing word.
10314 Reported by Keith Marshall <keith.marshall@total.com>.
10316 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
10317 IFS even in case of empty `$PATH'.
10319 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10321 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
10322 `expr' away if there is nothing to do.
10323 < --keywords >: Simplify and robustify argument handling.
10324 Revert erroneous comment from 2005-08-23. Extend to allow
10325 keyword negation with `!'.
10326 Update help message. Remove broken code to prevent running
10327 tests multiple times.
10328 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
10329 Update and fix the documentation accordingly.
10330 * tests/autotest.at (Keywords): Renamed to..
10331 (Keywords and ranges): .. this. Extended to make sure negated
10332 keywords, keywords taken from AT_SETUP arguments, and numeric
10333 test ranges work, and that matching is case-insensitive.
10335 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10337 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
10338 allow to pass unnamed structs even in C++.
10339 (AC_CHECK_SIZEOF): Likewise.
10340 Also fix quoting error in `AC_MSG_FAILURE' arguments.
10341 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
10342 struct): New tests for unnamed structs, each both native and
10345 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
10346 a structure inside a cast, for C++ conformance.
10347 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
10348 Also fix quoting error in `AC_MSG_FAILURE' arguments.
10350 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
10351 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
10352 trying to execute the command `no'.
10354 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
10355 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
10358 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
10359 example. Do not emphasize `$%', it is hardly new and special.
10360 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
10362 * doc/autoconf.texi (Limitations of Usual Tools): Document
10363 OpenBSD and traditional `grep' failure to handle multiple
10364 patterns separated by newlines.
10366 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
10368 * doc/autoconf.texi (several sections): Add documentation for macros
10371 2006-03-10 Eric Blake <ebb9@byu.net>
10373 * doc/autoconf.texi (Obsolete Macros): Fix wording of
10376 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
10378 * doc/autoconf.texi: Use @acronym more consistently for acronyms
10379 like BSD, GPL, LGPL. Fix minor English typos.
10380 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
10381 Mention that these macros are becoming obsolete.
10382 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
10383 Use more modern terminology for which standard is what.
10384 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
10386 (AC_PROG_CXX): Likewise.
10387 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
10388 Remove obsolete discussion about how to port to K&R.
10389 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
10390 the obsolescent AC_HEADER_STDC.
10391 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
10394 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10396 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
10397 Remove stdin redirection from /dev/null to allow pipe to work.
10399 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
10401 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
10402 Require that /lib/cpp include stdio.h correctly. Solaris 10's
10403 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
10406 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10408 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
10409 HP-UX sed is 99 commands, not 100.
10410 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
10411 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
10412 newline for portability.
10413 * tests/torture.at (Torturing config.status): Also test 100
10414 AC_SUBST_FILE invocations. Fix test to actually verify the
10415 AC_CONFIG_FILES output.
10416 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
10417 command, label, and read-file `r' limits. Unify HP-UX spelling.
10419 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
10421 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
10423 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
10424 * tests/mktests.sh: Small shell portability fixes.
10426 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10428 * doc/autoconf.texi (Caching Results): Fix the examples to use a
10429 recommended quoting style and discard unwanted output.
10431 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
10433 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
10434 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
10435 cases, and to work around Tru64 expr bug.
10437 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10439 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
10440 expr bug that turns the result of a regex match into a number if
10443 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10445 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
10446 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
10447 in section `Specific Compiler Characteristics'.
10449 2006-03-04 Eric Blake <ebb9@byu.net>
10451 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
10454 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10456 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
10457 order of variable initialization, so even the Solaris 2.6 shell
10458 can create a config header correctly. Fixes lots of test suite
10461 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10463 * doc/autoconf.texi (Text processing Macros): New node to
10464 document the m4sugar macros m4_re_escape, m4_tolower,
10465 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
10467 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
10469 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
10470 XrmInitialize (0) -> XrmInitialize ().
10471 Reported by Toshio Kuratomi.
10473 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10475 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
10476 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
10477 * doc/autoconf.texi (Programming in M4sh): Adjusted.
10478 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
10479 both macros are defun'ed so that required macros are evaluated
10482 * doc/autoconf.texi (Prerequisite Macros): State more precisely
10483 where a required macro will be expanded.
10484 (Coding Style): Another reason not to use `m4_define'.
10486 2006-02-21 Eric Blake <ebb9@byu.net>
10488 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
10490 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10492 * doc/autoconf.texi (Looping constructs): New node, to
10493 document m4_for, m4_foreach, m4_foreach_w, and mention
10494 obsolete AC_FOREACH.
10495 (Obsolete Macros): Document AC_FOREACH.
10496 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
10497 (m4_for): Fix to never loop (almost) endlessly, work correctly
10498 with arithmetic expressions in arguments, a step of zero or
10499 non-integer multiple of the interval, and avoid integer
10501 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
10504 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
10506 Add basic support for Erlang, both for configuring Erlang/OTP
10507 tools, and Erlang as a conf test language.
10508 * lib/autoconf/erlang.m4: New file.
10509 * lib/autoconf/autoconf.m4: Add erlang.m4.
10510 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
10511 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
10512 * NEWS: Add short description of new macros.
10513 * THANKS: Add Romain Lenglet.
10515 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10517 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
10518 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
10520 2006-02-15 Eric Blake <ebb9@byu.net>
10522 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
10525 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10527 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
10528 (_AS_CASE): Private helper macro.
10529 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
10530 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
10531 Fix syntax of AS_IF description
10532 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
10533 for the AC_REQUIRE mess.
10534 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
10537 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
10539 * doc/autoconf.texi: Minor style cleanup.
10540 Be consistent about spaces after commas.
10541 Insert [] where empty args look a bit funny.
10542 Fix some "i.e." and "e.g." usages.
10543 Try to avoid "X/Y" usages.
10544 Don't be pedantic about "ISO C99"; just say C99.
10545 Prefer GNU style for spaces in front of parens.
10546 (Function Portability): Comment about C89 versus C99
10547 signed integer division.
10548 (Particular Headers): Use current gnulib style for dirent
10551 2006-02-14 Stepan Kasal <kasal@ucw.cz>
10552 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10554 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
10555 macros without parameters.
10556 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
10557 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
10558 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
10560 (autoupdate): Updated to match AU_ALIAS fix.
10562 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10563 and Paul Eggert <eggert@cs.ucla.edu>
10565 * doc/autoconf.texi (Programming in M4sh): Document
10566 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
10568 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10570 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
10571 (AS_BOURNE_COMPATIBLE): ..this.
10572 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
10574 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
10576 * doc/install.texi (Defining Variables): Tighten up the
10577 CONFIG_SHELL wording.
10579 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
10580 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10582 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
10583 of (set -o) rather than testing whether (set -o posix) succeeds,
10584 to work around a bug in the AIX 5.3 shell. Problem originally
10585 reportd by Howard Chu for libtool.
10587 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
10589 * doc/autoconf.texi (Running the Compiler, Running the Linker):
10590 Changes the macro arguments in summaries to match the
10593 2006-02-04 Stepan Kasal <kasal@ucw.cz>
10595 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
10596 hint as ``a workaround for a bug.''
10598 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10600 * bin/autoreconf.in: New option `--no-recursive'.
10601 Improve wording for subpackages a bit.
10602 * doc/autoconf.texi (autoreconf Invocation): Updated.
10605 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
10606 in environment of `configure', not the command line.
10607 Reported by Howard Chu <hyc@highlandsun.com>.
10609 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
10611 * doc/autoconf.texi (Limitations of Builtins): Document the
10612 problem with "trap -".
10614 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
10616 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
10617 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
10618 messages to differentiate Fortran and Fortran 77 tests.
10619 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
10620 AC_LANG_ASSERT, to allow use in mixed-language projects.
10622 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10624 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
10625 FOO" to "defined (FOO)".
10626 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
10627 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
10628 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
10629 * tests/tools.at (ifnames): Likewise.
10631 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10633 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
10634 * lib/Autom4te/General.pm (mktmpdir): Likewise.
10635 (END): Improve error message a bit.
10636 Reported by Bruce Korb <bkorb@gnu.org>.
10638 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10640 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
10641 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
10643 2006-01-11 Stepan Kasal <kasal@ucw.cz>
10645 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
10646 requires sys/stream.h. Reported by Oliver Kiddle.
10648 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10649 Stepan Kasal <kasal@ucw.cz>
10651 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
10652 before the removals of test dirs, use `find' to avoid modification
10653 of symlinked directories.
10655 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
10657 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
10658 Don't ignore the macro arguments.
10660 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
10662 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
10663 declaration that works for MSVC.
10665 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10667 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
10668 Add `*.map' and `.inf' for Green Hills compiler.
10669 Reported by Stefan Seefeld <stefan@codesourcery.com>.
10671 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
10672 correctly: pad with spaces after FIRST_PREFIX if necessary,
10673 and compute string lenghts with `m4_qlen' instead of `m4_len'.
10674 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
10675 * tests/m4sh.at (AS_HELP_STRING): Test extended.
10677 Reported by numerous people, numerous times.
10679 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
10681 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
10682 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
10683 * lib/autoconf/general.m4, lib/autoconf/status.m4:
10684 * lib/autotest/general.m4, tests/local.at:
10685 Update copyright year to 2006.
10687 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
10689 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
10690 for file names, again. Reported by Noah Misch.
10691 (Coding Style): Explain that s|a|b| is preferred for file names.
10692 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
10693 (AC_OUTPUT_MAKE_DEFS): Likewise.
10694 * lib/autotest/general.m4 (AT_INIT): Likewise.
10695 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
10696 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
10698 Fix Posix-conformance bugs re use of { command in sed scripts,
10699 and improve the sed-related documentation a bit.
10700 * doc/autoconf.texi (Installation Directory Variables): Use
10701 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
10702 rather than "sed" when talking about Sed in general.
10703 (Particular Programs): Likewise.
10704 (Coding Style): y is like s with respect to / and ,.
10705 (Limitations of Usual Tools): Document the weird restrictions
10706 that Posix has about { }. Use better quoting.
10707 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
10708 Rewrite to conform to Posix rules about { } in sed scripts.
10709 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
10710 * tests/foreign.at (Libtool): Likewise.
10711 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
10712 Use our own style advice re 's,a,b,' versus 's|a|b|'.
10714 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10716 * lib/autoconf/status.m4: Fix typo.
10718 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
10719 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
10720 `-def', for the benefit of Portland `pgf90 -Mipa'.
10721 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
10723 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
10725 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
10726 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
10727 shell from zsh to bash.
10729 2005-12-31 Stepan Kasal <kasal@ucw.cz>
10731 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
10732 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
10734 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
10736 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
10737 parentheses in $(...). Problem reported by Eric Blake.
10739 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
10741 * doc/autoconf.texi (Limitations of Usual Tools):
10742 Mention which characters can be escaped with \ in portable regular
10743 expressions used in grep, sed, expr. Mention the leading ^ problem
10744 with expr. Clean up some confusing wording. Mention which
10745 grep options are portable.
10747 2005-12-09 Stepan Kasal <kasal@ucw.cz>
10749 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
10751 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
10753 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
10754 patch, noted by Ralf Wildenhues.
10756 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10758 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
10759 posix' unconditionally, for pdksh in `native sh' emulation.
10761 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
10763 * doc/autoconf.texi (Shellology): Document eval $? problem
10765 (Limitations of Builtins): Likewise.
10767 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10769 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
10770 CONFIG_SHELL in the environment of the configure rerun.
10771 * doc/autoconf.texi (Here-Documents, config.status Invocation):
10772 Suggest passing CONFIG_SHELL absolute, and in the environment
10773 rather than as option.
10775 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10777 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10778 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
10779 Fix macro quoting. Fix output for n * 98 substituted variables.
10781 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10783 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
10784 `tmp' to avoid file removal race.
10786 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10788 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
10789 ac_clean_files and LIBOBJS.
10791 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10793 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
10794 Factor functionality to..
10795 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
10796 `AC_SUBST($1)' in the public version.
10797 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
10798 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
10801 2005-11-01 Stepan Kasal <kasal@ucw.cz>
10803 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
10806 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10808 * NEWS: Move AH_HEADER mention to right place.
10810 2005-10-27 Stepan Kasal <kasal@ucw.cz>
10812 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
10813 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10815 2005-10-25 Stepan Kasal <kasal@ucw.cz>
10817 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
10818 conftst2.$ac_objext.
10819 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10821 2005-10-24 Stepan Kasal <kasal@ucw.cz>
10823 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
10824 conftest.o, to see whether the compiler really obeys; rm the object
10825 file before and after the test and register it with ac_clean_files.
10826 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10828 2005-10-21 Stepan Kasal <kasal@ucw.cz>
10830 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
10831 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
10832 code so that the most common case requires less forks.
10834 2005-10-20 Stepan Kasal <kasal@ucw.cz>
10836 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
10837 not portable; thanks to Paul Eggert and Alexandre.
10839 * NEWS: Fix an old typo.
10841 2005-10-20 Jim Meyering <jim@meyering.net>
10843 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
10844 the latter'', in two places.
10846 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
10848 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
10849 AC_LANG_PROGRAM, fixing a typo. Don't give details about
10850 the inner workings of AC_LANG_FUNC_LINK_TRY.
10851 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
10852 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
10853 by the function rather than ignoring it.
10854 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
10855 comparing its address. Intel's interprocedural optimization was
10856 outsmarting the old heuristic. Problem reported by
10859 2005-10-19 Stepan Kasal <kasal@ucw.cz>
10861 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
10863 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
10865 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
10866 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
10868 2005-10-04 Stepan Kasal <kasal@ucw.cz>
10870 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
10871 before removing it (chmod -R u+rwx); there are three instances of this.
10873 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10874 Stepan Kasal <kasal@ucw.cz>
10876 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
10877 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
10878 make its content writable before removing it. Remove an errorneous
10879 comment from the end, where the logs of the failed tests are copied
10880 to the main log file.
10882 2005-09-27 Stepan Kasal <kasal@ucw.cz>
10884 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
10885 in case the computer is too quick. Double quote the configure.ac
10888 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
10889 problems if the testsuite were running too fast.
10891 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
10893 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10894 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10895 (which belong to Xt, not X itself). See Debian bug 327655.
10896 * NEWS: Mention this.
10898 2005-09-07 Stepan Kasal <kasal@ucw.cz>
10900 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
10902 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
10904 * config/move-if-change: Don't output "$2 is unchanged";
10905 suggested by Ben Elliston. Handle weird characters correctly.
10907 2005-09-06 Stepan Kasal <kasal@ucw.cz>
10909 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
10910 calls, so that the final expansion of this macro is shorter.
10911 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
10912 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
10913 the cleanup there. Use AS_VAR_* macros, to be more general.
10914 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
10916 * lib/autoconf/general.m4: Use AS_IF where appropriate.
10918 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
10920 2005-09-01 Stepan Kasal <kasal@ucw.cz>
10922 * doc/autoconf.texi (Configuration Headers): Add an index entry
10925 2005-08-26 Pavel Roskin <proski@gnu.org>
10927 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
10928 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
10931 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
10933 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
10934 The previous patch didn't work, so try a better one.
10936 2005-08-26 Stepan Kasal <kasal@ucw.cz>
10938 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
10939 in the example. Reported by Bruno Haible.
10940 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
10941 "if $undefined_var;" succeeds with my shell.
10943 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
10944 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
10945 but change the m4_divert_text to m4_divert_once.
10947 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
10949 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
10950 Work around bug in Solaris /usr/xpg4/bin/awk.
10951 The bug is present in at least Solaris 8 through 10.
10953 2005-08-24 Stepan Kasal <kasal@ucw.cz>
10955 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
10956 some evil values and relying on the fact that $* concatenates the
10957 parameters by the first character from IFS.
10959 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
10960 Stepan Kasal <kasal@ucw.cz>
10962 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
10963 first header appears, define AH_HEADER.
10964 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
10965 Update limitations about when to call AC_CONFIG_HEADERS.
10966 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
10967 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
10968 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
10969 ``Configuration Actions''; fix their index entries.
10971 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
10972 options correctly. Process N-M as M-N if M is smaller than N.
10973 Process ranges correctly so that N-N will run only N.
10974 Sort and uniquify the tests that will be run. If there is more
10975 than one test, reinsert the banners for the tests.
10976 * tests/autotest.at (Keywords): Unmark XFAIL.
10978 2005-08-23 Stepan Kasal <kasal@ucw.cz>
10980 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
10981 before passing the macro name to AH_TEMPLATE.
10983 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
10984 now opens log after option processing; in particular, --version
10985 and --help do not touch config.log.
10987 * Makefile.maint: Revert the change from 2005-08-12.
10989 2005-08-22 Stepan Kasal <kasal@ucw.cz>
10991 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
10993 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
10995 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10997 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
10998 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
11001 * doc/autoconf.texi (Defining Symbols, Changed Results):
11002 Prepend to LIBS, not append, in examples.
11004 2005-08-16 Stepan Kasal <kasal@ucw.cz>
11006 When building in place, set srcdir="."; suggested by Tim Van Holder.
11008 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
11009 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
11010 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
11011 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
11012 does not mean "no --srcdir option".
11014 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11016 * tests/autoscan.at (autoscan): New file.
11017 * tests/suite.at: Use it.
11018 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
11019 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
11021 * tests/autotest.at (Keywords): Test keywords combinations.
11023 2005-08-12 Stepan Kasal <kasal@ucw.cz>
11025 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
11026 add "2>&1"; gzip 1.2.4 prints help on stderr.
11028 2005-07-27 Stepan Kasal <kasal@ucw.cz>
11030 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
11031 was pushdef'ed twice while popped only once. Push it only once.
11032 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
11034 2005-07-26 Stepan Kasal <kasal@ucw.cz>
11036 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
11037 prefixed by mere "===", not "configure: === ".
11039 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
11041 * Makefile.maint: Update from Bison.
11043 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
11044 "<tab>" in comment, so that the point is understandable.
11046 2005-07-25 Stepan Kasal <kasal@ucw.cz>
11048 Rewrite substantial part of lib/autoconf/status.m4.
11049 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
11050 and CONFIG_COMMANDS are not processed in four separate loops.
11051 Instead, there is one main loop. This alows that the common code
11052 is expanded only once, thus config.status (and configure) is smaller.
11054 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
11055 the AC_LIST_FILES and cousins macros are no longer used.
11057 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
11058 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
11059 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
11060 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
11061 contain the initialization, nor the for loop, nor the associated
11062 commands; all these go to ...
11063 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
11064 _AC_OUTPUT_CONFIG_STATUS.
11065 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
11066 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
11067 (_AC_OUTPUT_FILE): The creation of the sed script ...
11068 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
11069 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
11070 _AC_OUTPUT_MAIN_LOOP.
11071 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
11072 _AC_CONFIG_COMMANDS): Use ...
11073 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
11074 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
11075 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
11076 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
11077 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
11078 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
11080 (_AC_CONFIG_UNIQUE): Update.
11081 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
11082 Replaced by this ...
11083 (_AC_LIST_TAGS): ... new common macro.
11084 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
11085 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
11086 (_AC_LIST_TAG_COMMANDS): ... new common macro.
11087 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
11088 this didn't belong to the `config commands' section.
11089 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
11090 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
11091 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
11092 to the `config commands' section either.
11093 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
11094 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
11096 ... and many changes to the comments nearby.
11098 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
11099 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
11100 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
11101 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
11102 (#define header templates): The comment at the top of the generated
11103 header now includes the name(s) of the source file(s).
11105 Several unrelated small changes:
11107 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
11108 parameter to AC_DIAGNOSE.
11109 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
11110 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
11111 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
11112 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
11113 with AU::AC_OUTPUT.
11114 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
11115 in AC_OUTPUT doesn't double-quote it either.
11116 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
11119 2005-07-10 Stepan Kasal <kasal@ucw.cz>
11121 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
11122 versions of Portland Group compiler produce single- and double-quoted
11123 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
11124 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
11126 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
11128 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
11129 This is a corrected version of yesterday's patch.
11131 2005-07-07 Stepan Kasal <kasal@ucw.cz>
11133 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
11134 path, too; insert a "===" to emphasize the line.
11136 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
11137 ac_cv_build_alias to ac_build_alias.
11138 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
11140 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
11141 change eliminates it. Problem reported by Alexandre Duret-Lutz.
11142 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
11143 (AC_ARG_VAR): ... here.
11144 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
11147 Keep a list of all precious variables and process them with one simple
11148 for loop, instead of expanding all commands, or, OTOH, complicated
11149 processing of output of "set".
11150 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
11151 variable names in new macro...
11152 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
11153 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
11154 a loop to assign all ac_env_* and ac_cv_env_* variables.
11155 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
11157 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
11158 its value to shell variable ac_precious_vars and call
11159 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
11160 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
11161 _AC_ARG_VAR_VALIDATE.
11163 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
11164 and the AC_SUBSTs ...
11165 (AC_INIT): ... here.
11167 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
11168 the ac_subst_files section in config.log.
11170 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
11172 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
11174 * NEWS: New macro AC_C_TYPEOF.
11175 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
11176 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
11177 * tests/c.at (C keywords): Test AC_C_TYPEOF.
11179 Fix problems reported by Nicolas Joly.
11180 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
11181 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
11182 They are generated by the Tru64 v5.1B shell.
11184 2005-07-05 Stepan Kasal <kasal@ucw.cz>
11186 Fix my changes from 2005-07-01; reported by Noah Misch.
11187 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
11188 description, the macro now accepts only a single tag.
11189 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
11191 Fix cases when the varsions of Autoconf and Autotest don't match.
11192 Reported by Noah Misch.
11193 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
11194 at_top_builddir, for compatibility with older autotest.
11195 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
11196 is not set, use at_top_builddir, for compatibility with older
11197 versions of autoconf.
11199 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
11201 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
11202 Problem reported by Patrick Welche.
11204 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
11206 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
11207 sed substitution command, so that we allow | in program prefixes
11208 and program suffixes. (& is a problem anyway; we're not fixing
11210 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
11211 configure_input, top_builddir, srcdir, etc.
11212 * lib/autotest/general.m4 (AT_INIT): Likewise, for
11213 PATH_SEPARATOR in AUTOTEST_PATH.
11215 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
11217 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
11218 for loop over config.site files using `set', to allow
11219 directory names containing IFS characters.
11221 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
11223 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
11224 directories with weird names. Apparently some people like living
11225 on the edge. However, improve the test that "pwd" actually does
11226 report a name for the working directory.
11227 * NEWS: Remove the claim that we test for funny chars in dir names.
11229 2005-07-01 Stepan Kasal <kasal@ucw.cz>
11231 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
11233 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
11234 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
11235 Now accept a single tag, not whitespace separated list.
11236 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
11238 2005-06-30 Stepan Kasal <kasal@ucw.cz>
11240 * doc/autoconf.texi (Configuration Headers): Change the explanation
11241 about #include <config.h>.
11242 (Generic Functions): Mention the Gnulib project.
11243 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
11245 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
11246 document to output the default config_* lists to config.status.
11247 Don't recognize option --file, if the functionality is not there.
11248 Likewise for --header; moreover, recognize --he and --h as shortcuts
11249 for --help in that case.
11251 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
11252 matches the order of execution. No code changed.
11254 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11256 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
11257 single-quoted -cmdline argument in Portland Group compiler.
11258 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
11260 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
11262 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
11264 2005-06-29 Stepan Kasal <kasal@ucw.cz>
11266 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
11267 descriptors to child processes; reported by Norman Gray.
11269 2005-06-29 Stepan Kasal <kasal@ucw.cz>
11271 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
11273 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
11274 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
11275 (AC_SUBST): Call it.
11276 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
11277 the directory specific variables; but don't call it for configure_input.
11279 2005-06-28 Derek Price <derek@ximbiot.com>
11281 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
11284 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
11286 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
11287 directory have inherent problems with special characters like spaces,
11288 due to limitations in Make syntax. Problem reported by Alexandre
11290 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
11291 Also, fix Tru64 porting problem with shell patterns,
11292 reported by Ralf Wildenhues.
11294 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11296 * doc/autoconf.texi (Subdirectories): Fix markup typos.
11298 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
11300 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
11302 Fix some more shell quoting problems. Prompted by a bug report
11303 from Justace Clutter.
11304 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
11305 variable into diagnostic. Make the diagnostic an error, not a warning,
11306 because we really don't support spaces and suchlike in dir names.
11307 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
11308 Don't worry about backslashes in srcdir; it can't happen now.
11309 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
11310 Simplify ac_optarg handling.
11311 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
11313 2005-06-22 Stepan Kasal <kasal@ucw.cz>
11315 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
11316 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
11317 * tests/atlocal.in: Propagate $EGREP and $SED.
11318 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
11319 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
11321 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
11322 that '\|' is not allowed in BREs; recommend using newline separated
11323 list of patterns instead of multiple -e options.
11325 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
11327 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
11329 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11331 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
11333 2005-06-21 Stepan Kasal <kasal@ucw.cz>
11335 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
11336 b, t, r, w commands require single space, while : cannot have any.
11337 (Special Shell Variables): Fix sed code this in the example.
11338 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
11339 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
11341 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
11342 expand to the empty list. Don't use two pairs of m4_changequote,
11343 it's not necessary.
11345 2005-06-20 Derek Price <derek@ximbiot.com>
11347 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
11349 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
11351 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
11352 * doc/autoconf.texi:
11353 Don't mention Solaris versions so much, if a
11354 problem is common to all extant versions of Solaris. Say "SunOS
11355 4" instead of "SunOS" for SunOS 4.
11356 (awk): Mention more of the limitations of traditional Awk.
11357 (cat): Don't talk about cat -v.
11359 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
11361 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
11362 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
11363 but the implementation is entirely different and is designed
11364 to be compatible with glibc strverscmp.
11365 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
11367 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
11368 on Mac OS X 10.4 reported by Peter O'Gorman in:
11369 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
11370 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
11371 Use shell builtins rather than 'expr', to work around expr bug.
11373 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
11375 * doc/autoconf.texi: "filesystem" -> "file system".
11376 "behaviour" -> "behavior".
11377 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
11378 * lib/autoconf/general.m4: Omit blank after ":" sed command,
11380 * lib/m4sugar/m4sh.m4: Likewise.
11381 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
11382 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
11384 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
11385 (.x.1): Ignore the time stamp in the .TH line when deciding whether
11386 to update the man page. That way, we don't have to check in new
11387 man pages every month.
11389 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
11390 quotes and backslashes. Patch from Derek Price.
11392 2005-06-10 Derek Price <derek@ximbiot.com>
11394 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
11397 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
11399 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
11400 -u, since it outputs chatter if the input files are the same.
11401 Problem reported by Ralf Menzel.
11403 2005-06-08 Derek Price <derek@ximbiot.com>
11405 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
11406 renaming them since they are about to be redefined anyhow.
11408 2005-06-08 Derek Price <derek@ximbiot.com>
11410 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
11411 redefined M4 macros to this node. Document m4_include & m4_sinclude.
11412 Move m4_undefine to alphabetical order.
11414 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
11416 * README: Recommend GNU M4 1.4.3 or later.
11417 * doc/autoconf.texi (Introduction): Likewise.
11418 Reword to avoid some formatting glitches.
11419 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
11420 Clarify explanation of HP compiler bug.
11421 Redo example output tp match current CVS snapshot.
11422 Use @example.org in email addresses when the examples
11423 might get inadvertently cut-and-pasted into user code.
11424 Remove example of autom4te usage that doesn't seem to work now.
11425 Use modern AC_INIT (except when the example is meant to be
11426 shown with Autoconf 2.13).
11427 Update ksh info for Solaris 9 and later.
11429 Modernize description of Automake versions a bit.
11430 Don't claim a future version of Autoconf is near.
11431 * doc/install.texi: Reword to avoid some formatting glitches.
11433 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11435 * doc/autoconf.texi: Add [] to examples, so that the manual
11436 follows its own advice about quoting better.
11437 Reword to avoid some formatting glitches.
11438 * doc/installt.exi: Reword to avoid some formatting glitches.
11440 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
11441 Tru64 ksh pattern matching bug. Reported against Libtool by
11442 Albert Chin <libtool@mlists.thewrittenword.com> and
11443 Nicolas Joly <njoly@pasteur.fr>.
11445 2005-06-06 Stepan Kasal <kasal@ucw.cz>
11447 m4_cdr of one-member list was [[]] (one-member list containing an
11448 empty string) instead of [] (an empty list. Callers were skewed to
11449 match this misbehaviour. As a consequence of this:
11450 - m4_foreach([x], [], [foo]) expanded to `foo', while
11451 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
11452 This bug has been fixed:
11454 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
11455 expand to an empty string; print error msg if called without
11457 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
11458 misbehaviour; handle [] and [[]] correctly.
11460 2005-06-06 Stepan Kasal <kasal@ucw.cz>
11462 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
11463 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
11464 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
11466 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
11468 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
11469 swallow records with more than 99 fields.
11470 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
11471 parse the long line.
11473 2005-06-04 Stepan Kasal <kasal@ucw.cz>
11475 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
11476 swallow literals longer than 399. Reported by Ralf Wildenhues.
11477 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
11478 to workaround this limitation.
11480 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
11482 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
11483 to gfortran, and make these the first two compiler names
11484 checked (following the general autoconf preference for gcc).
11486 2005-06-03 Stepan Kasal <kasal@ucw.cz>
11488 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
11489 (DISTCLEANFILES): Remove $(check_SCRIPTS).
11490 (testsuite): Make sure autotest.m4f is up-to-date before using it.
11492 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
11494 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
11495 expression of unbounded size when processing the --list
11496 option. This runs afoul of a limit of 399 bytes per regular
11497 expression on AIX. Problem reported by Ralf Wildenhues.
11499 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
11501 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
11502 * doc/autoconf.texi (Particular Headers): Reword example
11503 for multiline stdbool replacement.
11504 (Setting Output Variables): Reword text a bit. Don't
11505 give all the details about |#_!!_#|.
11506 Reword description of line replacement.
11508 2005-05-31 Dan Manthey <dan_manthey@partech.com>
11510 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
11511 now contain newlines, and substituted files must be referenced on
11512 a line alone; the sed scripts to substitute them are now very
11514 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
11515 commands can be put in a sed script portably.
11516 * doc/autoconf.texi (Setting Output Variables): Document above
11517 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
11518 use of multiline substitution.
11519 * tests/torture.at: No longer expect substitution of newline to fail.
11521 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
11523 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
11524 From Ralf Menzel (trivial change).
11526 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
11528 * tests/local.at: Don't attempt to check for negated character
11529 classes in shell scripts. The test was too brittle.
11531 2005-05-25 Stepan Kasal <kasal@ucw.cz>
11533 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
11534 * doc/autoconf.texi (Limitations of Builtins): Document this
11537 2005-05-24 Stepan Kasal <kasal@ucw.cz>
11539 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
11540 common code; used in many places in the tree.
11541 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
11542 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
11544 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
11546 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
11547 messages when ac_unique_file is not found.
11548 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
11549 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
11550 commands, for consistency with AC_MSG_ERROR and such.
11552 * bin/autoconf.as: Make more use of "shift 2" in option processing.
11554 * bin/Makefile.am: Merge the two rules for creating scripts.
11556 2005-05-23 Stepan Kasal <kasal@ucw.cz>
11558 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
11559 obsolete; it was never documented.
11560 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
11562 2005-05-20 Stepan Kasal <kasal@ucw.cz>
11564 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
11565 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
11566 (ac_top_builddir): ... this ...
11567 (ac_top_build_prefix): ... to this; the old name is also kept, for
11568 backward compatibility.
11569 (ac_top_builddir_sub): New variable, without the trailing slash,
11571 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
11572 * doc/autoconf.texi (Configuration Actions): Rename
11573 ac_top_builddir to ac_top_build_prefix.
11574 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
11575 at_top_builddir to at_top_build_prefix.
11576 * lib/autotest/general.m4 (AT_INIT): Likewise.
11578 2005-05-20 Stepan Kasal <kasal@ucw.cz>
11580 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
11583 2005-05-17 Stepan Kasal <kasal@ucw.cz>
11585 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
11586 argument to m4_foreach. I guess it was necessary in the past,
11587 but I think it's a no-op now.
11589 2005-05-17 Stepan Kasal <kasal@ucw.cz>
11591 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
11592 ``cat <<_ACEOF'' commands to one.
11593 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
11594 * lib/autoconf/status.m4: On various places, use expr instead of
11596 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
11597 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
11598 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
11600 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
11601 the wrong patterns between ``case'' and ``esac.'' The previous
11602 code had false positives.
11604 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
11606 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
11608 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
11611 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
11613 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
11614 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
11615 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
11616 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
11617 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
11618 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
11619 config/config.guess, config/config.sub, config/elisp-comp,
11620 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
11621 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
11622 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
11623 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
11624 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
11625 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
11626 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
11627 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
11628 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
11629 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
11630 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
11631 lib/autoconf/general.m4, lib/autoconf/headers.m4,
11632 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
11633 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
11634 lib/autoconf/specific.m4, lib/autoconf/status.m4,
11635 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
11636 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
11637 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
11638 lib/autotest/general.m4, lib/emacs/Makefile.am,
11639 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
11640 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
11641 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
11642 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
11643 tests/compile.at, tests/foreign.at, tests/fortran.at,
11644 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
11645 tests/semantics.at, tests/suite.at, tests/tools.at,
11646 tests/torture.at, tests/wrapper.as:
11647 Update FSF postal mail address.
11649 2005-05-13 Stepan Kasal <kasal@ucw.cz>
11651 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
11653 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
11654 enough arguments, similarly as in m4_bpatsubsts.
11656 2005-05-12 Stepan Kasal <kasal@ucw.cz>
11658 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
11661 2005-05-11 Stepan Kasal <kasal@ucw.cz>
11663 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
11664 for absolute directory names in one loop.
11665 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
11666 abbreviations of --version and --debug.
11668 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
11670 * doc/autoconf.texi (Autoconf Language): Be more precise about
11671 quoting rules. Problems noted by Stepan Kasal.
11672 Also, throughout this document, be more careful about white space.
11673 "blank", "white space", and "space" all have different meanings
11674 and we should be careful to say what we mean.
11676 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
11678 Fix C++ related problems reported by Werner Lemberg.
11679 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
11680 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
11681 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
11682 avoid problems with C++ and throw.
11683 * tests/compile.at: .cpp, not .cc.
11685 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
11687 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11689 * doc/autoconf.texi (Generic Functions): Typos.
11691 2005-05-02 Gary V. Vaughan <gary@gnu.org>
11693 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
11694 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
11695 set by latest automake.
11697 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
11699 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
11700 outputs 0 on GNU/Linux these days.
11702 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
11704 * doc/autoconf.texi (Autoconf Language): Add more description
11705 about quoting heuristics.
11706 (Limitations of Builtins): Describe "set -" problems.
11708 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11710 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
11713 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
11714 by AC_DEFINE; it was a mistake.
11715 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
11717 2005-04-25 Stepan Kasal <kasal@ucw.cz>
11719 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
11721 2005-04-22 Stepan Kasal <kasal@ucw.cz>
11723 * doc/autoconf.texi (External Software): Quadrigraphs are not
11724 processed correctly in AS_HELP_STRING; avoid this in the examples.
11725 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
11726 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
11727 comment and reduce m4_default([foo], []) to [foo].
11728 (m4_strip): Update the explanation.
11730 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
11732 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
11733 Remove core.conftest.* too; it's generated by Tru64 5.1.
11734 Problem reported by Jennis Pruett.
11735 * lib/autoconf/functions.m4
11736 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11737 Don't bother to remove core files; AC_RUN_IFELSE should do that
11740 2005-04-19 Stepan Kasal <kasal@ucw.cz>
11742 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
11744 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
11746 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
11747 Report from Horst Wente.
11749 2005-04-15 Stepan Kasal <kasal@ucw.cz>
11751 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
11754 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
11756 * doc/autoconf.texi (External Software, Package Options): Add
11757 examples showing how to implement --with-* and --enable-* options.
11759 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
11761 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
11762 as well as configure.in. Problem reported by Gregorio Guidi.
11764 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
11766 * doc/autoconf.texi (Particular Functions): Use gnulib's current
11767 pattern for alloca snippet.
11769 2005-04-04 Stepan Kasal <kasal@ucw.cz>
11771 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
11773 2005-04-01 Stepan Kasal <kasal@ucw.cz>
11775 * doc/autoconf.texi (Generic Programs): Fix a typo.
11777 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
11779 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
11780 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
11782 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11784 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
11785 Merge `-z option' as well for the benefit of Solaris link flags. Pass
11786 whole-archive (-zallextract, -zdefaultextract) options in the hope of
11787 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
11788 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
11790 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
11792 * NEWS: The configure command now warns you if you attempt to use
11793 a directory whose name contains a special character like space,
11795 * doc/autoconf.texi (Installation Directory Variables): Allow
11796 "," in file names. Do not use \@; it's not a portable regexp.
11797 * bin/Makefile.am (edit): Likewise.
11798 * lib/Makefile.am (edit): Likewise.
11799 * tests/Makefile.am (edit): Likewise.
11800 * tests/semantics.at: Likewise.
11801 * tests/torture.at: Likewise.
11802 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
11803 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
11804 * doc/autoconf.texi (File System Conventions): Warn about
11805 unportable file names.
11806 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
11808 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
11809 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
11810 ac_pwd, and quote srcdir.
11811 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
11813 * doc/autoconf.texi: Fix some systematic formatting problems.
11814 ".)" needs a following @: if not at the end of a sentence, and
11815 similarly for "!)". "etc." should be preceded by a comma.
11816 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
11818 2005-03-22 Bruno Haible <bruno@clisp.org>
11820 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
11821 argument is often called 'build-aux'.
11823 2005-03-07 Stepan Kasal <kasal@ucw.cz>
11825 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
11826 macro AC_TRY_LINK is obsolete.
11827 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
11830 2005-02-24 Stepan Kasal <kasal@ucw.cz>
11832 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
11833 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
11834 from a Common Lisp's `cl'.
11835 (AC_PROG_CXX): Behave according to the documentation: don't
11836 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
11837 make the variable CCC precious; use `cl.exe', not `cl'.
11839 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
11840 Alexandre Duret-Lutz <adl@gnu.org>
11842 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
11843 /dev/null, as "configure" shouldn't read stdin, and this insulates
11844 us from problems (e.g., when testing for "cl"). Also, do this
11845 redirection before invoking "hostname" or "uname", and keep the
11846 original input stream available via...
11847 (AS_ORIGINAL_STDIN_FD): ... this new macro.
11848 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
11849 bother with "</dev/null" since it's now done at the top of
11851 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
11852 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11853 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
11854 * doc/autoconf.texi (File Descriptor Macros): New section.
11855 (Printing Messages): Mention it.
11856 * tests/base.at (Input/Output): New test.
11858 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
11860 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
11861 newline if neither \c nor -n work, as that would output two
11862 newlines. Prefer -n to \c. Reported by Stepan Kasal.
11864 2005-02-12 Stepan Kasal <kasal@ucw.cz>
11866 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
11867 This causes that any required macros inside will get before the if.
11868 * doc/autoconf.texi (autom4te.cache): A typo.
11870 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
11872 Undo previous change, except keep the change to
11873 lib/autoconf/programs.m4 that replaced grep with shell
11874 pattern-matching. This is because net-snmp configure reads stdin.
11875 Reported by Noah Misch.
11877 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
11879 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
11880 from /dev/null, as "configure" shouldn't read stdin, and this
11881 insulates us from problems (e.g., when testing for "cl").
11882 Suggested by Alexandre Duret-Lutz. Also, do this redirection
11883 before invoking "hostname" or "uname".
11884 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
11885 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
11886 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
11887 "</dev/null" since it's now done at the top of 'configure'.
11888 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11889 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
11890 Also, replace grep with shell pattern-matching, to save a process.
11892 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
11894 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
11895 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
11896 avoid thinking that Allegro Common Lisp's "cl" command is a C++
11899 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
11901 * doc/autoconf.texi (Limitations of Usual Tools): Document that
11902 grep -q isn't portable. Improve grep -s explanation.
11903 Problem reported by Dan Manthey.
11905 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
11907 * doc/autoconf.texi (Special Shell Variables): Clarify
11908 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
11910 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
11912 * doc/autoconf.texi: Use @acronym for DJGPP.
11913 Fix some @code's that should have been @env's, and vice versa.
11914 Sort environment variable names.
11915 Mention that shells no longer inherit IFS.
11916 Don't recommend PATH_SEPARATOR=';' so strongly.
11917 Mention that $RANDOM might expand to the empty string.
11918 "symlink" and "soft link" -> "symbolic link".
11919 Improve mktemp description (reported by Bruno Haible).
11921 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
11923 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
11924 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
11926 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
11929 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
11931 * NEWS: Mention AT_COPYRIGHT.
11933 * tests/local.at (AT_CMP): Use diff directly on input files rather
11936 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
11937 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
11939 2005-02-04 Noah Misch <noah@cs.caltech.edu>
11940 and Paul Eggert <eggert@cs.ucla.edu>
11942 * tests/autotest.at (Empty test suite): New test.
11943 * tests/torture.at (Substitute and define special characters)
11944 (Substitute a 2000-byte string, Define to a 2000-byte string)
11945 (Substitute a newline, Define a newline): New tests.
11947 2005-02-04 Noah Misch <noah@cs.caltech.edu>
11949 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
11950 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
11951 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
11952 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
11953 (Standard regular expressions): New test.
11954 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
11955 excess test name quoting.
11956 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
11957 CPPFLAGS to `configure' instead of setting it in `configure'.
11959 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
11960 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
11963 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
11964 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
11966 * tests/local.at (AT_CMP): New macro.
11967 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
11968 (AC_SAVE_STATE): Move environment grep...
11969 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
11970 (AT_CONFIG_CMP): New macro.
11971 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
11972 * tests/c.at (Extensions): Do not exit early.
11973 * tests/atlocal.in: Inherit $GREP.
11975 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
11976 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
11978 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
11979 (AC_COPYRIGHT): Factor header comment portion out and move into...
11980 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
11981 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
11982 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
11984 * tests/local.at: Add Autoconf test suite copyright notice.
11985 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
11987 2005-02-04 Bruno Haible <bruno@clisp.org>
11988 and Paul Eggert <eggert@cs.ucla.edu>
11990 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
11992 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
11994 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
11995 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
11997 Try not to generated lines of unlimited length, as POSIX places a
11998 2047-byte limit on line length of portable text files.
11999 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
12000 Use newline as a separator, not space.
12001 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
12002 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
12005 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12007 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
12008 as_func_*. Add test to check whether positional parameters
12009 are restored after function return.
12011 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
12013 * doc/autoconf.texi (Special Shell Variables): Mention _,
12014 BIN_SH, DUALCASE. Say that variables other than "status" are safe
12015 if they contain a lower-case letter. The DUALCASE problem was
12016 reported by Ralf Wildenhues.
12018 * bin/autoconf.as: Don't exit with status 0 after write failure
12019 with --help or --version.
12020 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
12021 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
12023 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12025 * doc/autoconf.texi (Limitations of Usual Tools):
12026 Unicos 9 sed limitations.
12027 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
12028 to get the option-enhanced interface on older Crays. Try ftn for
12029 Fortran 95 (newer Crays).
12031 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
12033 * man/Makefile.am (.x.1): Go back to the simple solution, but take
12034 care to echo the commands, so the user knows what's going on.
12035 Modified from a suggestion by Stepan Kasal.
12037 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
12038 with a cross reference. Derived from a suggestion by Bruce Korb.
12040 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
12042 * doc/autoconf.texi (config.status Invocation): Warn about
12043 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
12044 * doc/install.texi (Defining Variables): Likewise.
12045 Based on a proposed patch by Ralf Wildenhues.
12047 * man/Makefile.am (.x.1): Make sure the required generated files
12048 are up to date. Problem and original solution proposed by Stepan Kasal.
12049 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
12050 implicit-man-prerequisites): New rules, used by the above.
12052 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
12053 * config/config.guess, config/config.sub, config/install-sh: Likewise.
12054 * config/missing, config/texinfo.tex: Likewise.
12056 2005-01-29 Stepan Kasal <kasal@ucw.cz>
12058 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
12059 Update the long comment explaining it.
12061 m4_require no longer writes an ``is required by'' line to the
12062 execution stack. It contains only one bit of non-redundant
12063 information: that the macro was required, not called. And even
12064 this bit is useless in most situations: have you ever met a macro
12065 which both calls and requires the same macro?
12067 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
12068 (_m4_defun_pro_outer): ... only via this macro, for the outermost
12070 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
12071 (m4_expansion_stack_pop): Remove the misplaced comment.
12072 (m4_require): Don't put the ``is required by'' line to the
12073 execution stack; slightly improve the out-of-a-defun error message.
12074 (_m4_divert_grow): New macro, counter for the temporary diversions.
12075 (_m4_require_call): Use it.
12076 * tests/m4sugar.at (m4_require): Expect output without the
12077 ``is required by'' messages.
12079 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
12081 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
12082 rather than x for expr.
12084 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
12086 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
12087 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
12088 * lib/autotest/general.m4 (AT_INIT): Likewise.
12089 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
12090 * tests/mktests.sh: Likewise.
12092 2005-01-27 Akim Demaille <akim@epita.fr>
12094 Have autoheader honor --force.
12096 * doc/make-stds.texi, doc/standards.texi: Update from masters.
12097 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
12098 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
12099 from masters, so that FileUtils.pm's update_file provide --force
12101 * bin/autoheader.in: Pass $force to update_file so that
12102 config.h.in is always recreated when --force.
12104 2005-01-24 Stepan Kasal <kasal@ucw.cz>
12106 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
12108 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
12110 * doc/autoconf.texi (Limitations of Builtins): Clarify that
12111 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
12113 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
12115 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
12116 Warn about newline stripping in `` and $(). Update Solaris
12118 (Limitations of Builtins): Use expr "X...", not expr "x...", as
12119 X insulates us from future changes to Posix.
12120 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
12123 2005-01-19 Stepan Kasal <kasal@ucw.cz>
12125 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
12126 you cannot use AC_DEFINE to define macros containing `[' or `]'.
12128 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
12130 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
12131 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
12132 bug-tar mailing list.
12134 2005-01-05 Stepan Kasal <kasal@ucw.cz>
12136 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
12138 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
12140 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
12141 ulongval to be static, to avoid unwanted GCC warning. Problem
12142 reported by Michael Jennings via Daniel Reed; see
12143 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
12145 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
12147 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
12148 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
12149 datadir, infodir, and mandir. Adjust argument parsing code.
12150 (_AC_INIT_HELP): Update help text.
12151 * doc/autoconf.texi (Installation Directory Variables): Document
12154 2005-01-04 Noah Misch <noah@cs.caltech.edu>
12156 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
12157 not seem to work, assume it does set $(MAKE).
12158 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
12160 2005-01-03 Stepan Kasal <kasal@ucw.cz>
12162 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
12164 2005-01-03 Stepan Kasal <kasal@ucw.cz>
12166 A cleanup of the diversion support in m4sugar.
12168 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
12169 (_m4_divert_n_stack): New macro; the expansion is
12170 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
12172 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
12173 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
12174 stored in _m4_divert_diversion or _m4_divert_dump.
12175 (m4_divert_pop): When the parameter is given, compare the symbolic
12176 name with the last diversion pushed on the stack. Previously, the
12177 current diversion was compared with the numeric value of the
12178 diversion given as the parameter.
12179 (m4_require): If the macro hasn't been expanded yet, call ...
12180 (_m4_require_call): this new macro.
12182 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12184 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
12185 Workarounds for documented `case' limitations.
12187 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
12189 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
12190 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
12192 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
12194 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
12195 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
12196 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
12198 Patch from Roger Leigh (with some minor changes) as follows:
12199 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
12200 Resurrect AC_PROG_CC_STDC.
12201 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
12202 AC_PROG_CC_C89, AC_PROG_CC_C99.
12203 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
12204 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
12205 AC_PROG_CC_C99): New macros.
12206 (AC_PROG_CC_STDC): Use them.
12207 (_AC_PROG_CC_STDC): Remove.
12208 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
12209 * THANKS: Add Roger Leigh.
12211 2004-12-30 Noah Misch <noah@cs.caltech.edu>
12213 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
12214 signals that the package uses Automake; a `Makefile.am' is typical but
12215 not essential. Reported by Magnus Therning.
12216 * tests/torture.at (autoreconf.): New banner.
12217 (autoreconf and non-AC configure): Rename to `Non-Autoconf
12218 AC_CONFIG_SUBDIRS'.
12219 (autoreconf an empty directory): Rename to `Empty directory'.
12220 (Unusual Automake input files): New test.
12222 2004-12-30 Noah Misch <noah@cs.caltech.edu>
12224 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
12225 (AT_SETUP): Clear AT_capture_files.
12226 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
12227 (AT_KEYWORDS): Fix comment typo.
12228 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
12229 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
12230 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
12232 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
12234 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
12235 If the variable to set is already set, set ac_cv_path_$1
12236 to the preset value so caller can assume ac_cv_path_$1
12237 is available. (trivial change)
12239 2004-12-27 Noah Misch <noah@cs.caltech.edu>
12241 * BUGS (Minor Problems): Warn about makefile limitations.
12242 * Makefile.am: Find and update `INSTALL' in $(srcdir).
12243 * man/Makefile.am: Find and update manual pages in $(srcdir).
12245 2004-12-24 Eric Blake <ebb9@byu.net>
12247 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
12248 shells in subshell, to avoid noise from ash. (trivial change)
12250 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12252 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
12253 problems with SunOS ksh and backslash escaping, Bourne shells and
12254 closing brackets (both within character classes). Bug reported
12255 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
12256 <read>: New entry. Mention non-availability of -r.
12258 2004-12-21 Akim Demaille <akim@epita.fr>
12260 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
12261 avoid cluttering displayed messages. Rather, prepend srcdir where
12262 AT_LINE is used for log files.
12264 2004-12-21 Stepan Kasal <kasal@ucw.cz>
12266 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
12267 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
12268 no longer part of the macro, quote the occurrence of ``$tmp''.
12269 * doc/autoconf.texi (Forbidden Patterns): Typo.
12271 2004-12-21 Akim Demaille <akim@epita.fr>
12273 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
12274 separated from the test title by forcing a white space.
12276 2004-12-21 Akim Demaille <akim@epita.fr>
12278 Enable Emacs navigation within testsuite.log files.
12280 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
12281 use the compilation mode.
12282 (AT_LINE): Point to the srcdir.
12284 2004-12-19 Noah Misch <noah@cs.caltech.edu>
12286 * tests/Makefile.am (installcheck-local): Use $(bindir).
12287 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
12288 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
12289 Makefile.am scheme Autoconf now uses.
12291 2004-12-18 Noah Misch <noah@cs.caltech.edu>
12293 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
12294 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
12296 2004-12-18 Noah Misch <noah@cs.caltech.edu>
12298 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
12299 (_AT_CHECK): Use it.
12300 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
12301 (AS_ESCAPE): Fix comment.
12302 * tests/autotest.at: Adjust section banner comments.
12303 (AT_CHECK_AT): Accept STATUS and STDERR.
12304 (AT_CHECK_AT_TEST): Likewise.
12305 (Invalid brace-enclosed parameter expansion)
12306 (Multiline command from M4 expansion)
12307 (Double-M4-quoted command): New tests.
12309 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
12311 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
12313 2004-12-17 Akim Demaille <akim@epita.fr>
12315 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
12317 Suggested by Alexandre Duret-Lutz.
12318 * doc/autoconf.texi (Setting Output Variables): Catch up.
12320 2004-12-17 Stepan Kasal <kasal@ucw.cz>
12322 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
12324 2004-12-17 Stepan Kasal <kasal@ucw.cz>
12326 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
12327 remove the comment which said we cannot.
12329 2004-12-17 Stepan Kasal <kasal@ucw.cz>
12331 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
12332 Reini Urban and Paul Eggert for reporting the dependencies.
12334 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
12335 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
12336 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
12338 2004-12-17 Stepan Kasal <kasal@ucw.cz>
12340 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
12341 so that eg. ``autoscan --help'' doesn't truncate it.
12343 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
12345 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
12346 generated conftest files.
12348 2004-12-13 Noah Misch <noah@cs.caltech.edu>
12350 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
12351 tracing on commands with possibly-escaped newlines.
12352 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
12353 discontinued behavior and its implications.
12354 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
12355 (BSx641-newline in command, BS-BS-newline in command)
12356 (BSx640-newline in command, Newline-CODE-BS-newline in command)
12357 (Single-quote-BS-newline in command)
12358 (Single-quote-newline-BS-newline in command): New tests.
12360 2004-12-13 Stepan Kasal <kasal@ucw.cz>
12362 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
12363 on platforms where it works.
12364 (_AS_TEST_PREPARE): Test for ``test -x''.
12365 (_AS_BROKEN_TEST_PREPARE): Nuke.
12367 2004-12-13 Stepan Kasal <kasal@ucw.cz>
12369 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
12370 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
12371 give only 4-letter prefix to AS_TMPDIR, comment fixed.
12372 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
12373 create the temporary directory.
12374 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
12376 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
12378 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
12381 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
12383 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
12385 2004-12-11 Noah Misch <noah@cs.caltech.edu>
12387 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
12388 to avoid using a negated character class. Reported by Nicolas Joly.
12389 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
12391 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
12393 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
12394 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
12395 Don't depend on .x file explicitly, since "make" does that for us.
12396 Suggested by Stepan Kasal.
12398 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
12400 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
12401 ifnames): Factor common code. And they said it couldn't be done!
12403 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
12405 * bin/.cvsignore: Add autoconf.in.
12406 * tests/.cvsignore: Add wrapper.in.
12407 * lib/autotest/general.m4: Escape '$' in case pattern.
12409 2004-12-09 Noah Misch <noah@cs.caltech.edu>
12411 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
12413 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
12415 * tests/autotest.at: New file.
12416 * tests/suite.at: Include it.
12417 * tests/Makefile.am: Distribute it.
12419 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
12420 shell tracing on a command that could contain multiple lines.
12421 * doc/autoconf.text: Document that fact and its implications.
12422 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
12423 * tests/autotest.at (Multiline backquote command substitution,
12424 Multiline parameter expansion, Literal multiline command,
12425 Multiline parenthetical command substitution): Remove XFAIL.
12427 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
12429 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
12430 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
12432 2004-12-08 Noah Misch <noah@cs.caltech.edu>
12434 * configure.ac (test suite): Cease to generate wrapper scripts.
12435 * configure: Regenerate.
12436 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
12437 (m4f_dependencies): Adjust accordingly.
12438 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
12439 (wrapper.in): Generate it in the build directory.
12440 (MAINTAINERCLEANFILES): Delete wrapper.in.
12441 (CLEANFILES): Add wrapper.in.
12442 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
12443 the output. Replace each $as_me with a @wrap_program@.
12444 * tests/wrapper.in: Delete it; we always build it.
12446 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
12447 (EXTRA_DIST): Remove autoconf.in.
12448 (CLEANFILES): Add autoconf.in.
12449 (autoconf): Find autoconf.in in the build directory.
12450 * bin/autoconf.in: Delete it; we always build it.
12452 2004-12-08 Noah Misch <noah@cs.caltech.edu>
12454 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
12455 PATH members so as to not prepend an empty element. Move a comment.
12456 * Makefile.am (SUBDIRS): Build in `tests' last.
12457 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
12459 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
12461 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
12462 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
12463 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
12464 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
12466 2004-12-07 Stepan Kasal <kasal@ucw.cz>
12468 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
12469 patch: extra "-l"s.
12471 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
12473 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
12474 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
12475 * doc/autoconf.texi (Particular Functions): Mention new behavior.
12477 2004-12-03 Stepan Kasal <kasal@ucw.cz>
12479 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
12480 out the common code to ...
12481 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
12482 value of the #define--default to 1, iff the macro was called
12483 with exactly one parameter.
12485 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
12487 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
12488 "char c = '\200';" rather than "char c = 0x80;" as the
12489 latter doesn't conform to the strict C standard due to
12490 overflow on signed char hosts.
12492 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
12493 to -qlanglvl=ansi. We don't want to disable extensions.
12495 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
12497 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
12498 (Using Autotest, testsuite Scripts, Writing testsuite.at):
12499 Reword slightly to avoid some English-language problems noted
12500 by Ralf Wildenhues in:
12501 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
12503 2004-11-29 Stepan Kasal <kasal@ucw.cz>
12505 * NEWS: Add ^L above each release.
12507 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
12509 Fix documentation problems reported by Russ Boylan in
12510 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
12511 along with some nearby cruft.
12512 * doc/autoconf.texi (Libtool): Libtool can be used without
12513 Automake (not without Autoconf).
12514 (Introduction): Mention lists.gnu.org.
12515 * BUGS: Don't mention bugs.gnu.org.
12516 Remove mention of ancient libtool compatibility problem.
12517 * NEWS: Mention that bugs.gnu.org is kaput.
12518 * README: Likewise. Mention where mailing list archives can be found.
12520 2004-11-28 Stepan Kasal <kasal@ucw.cz>
12522 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
12524 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
12526 * doc/autoconf.texi (Pretty Help Strings): Go back to
12527 single-quoting assignments to cache variables.
12529 2004-11-23 Stepan Kasal <kasal@ucw.cz>
12531 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
12532 with the examples; fix the bug in MY_ARG_WITH example reported
12533 by Alexandre Duret-Lutz.
12534 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
12535 expansion of $1 in the comment emitted to configure.
12537 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
12539 * doc/autoconf.texi (Pretty Help Strings): Fix typo
12540 in my editing of the previous patch. Problem reported
12541 by Alexandre Duret-Lutz.
12543 2004-11-22 Stepan Kasal <kasal@ucw.cz>
12545 * doc/autoconf.texi (Autoconf Language): Explain that
12546 ``descriptions'' may not be double quotes.
12547 (Quotation Rule Of Thumb): Likewise.
12548 (Pretty Help Strings): Likewise; remove the wrong comment;
12549 simplify the examples and improve their quoting.
12551 2004-11-13 Stepan Kasal <kasal@ucw.cz>
12553 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
12554 the $1_found variable, don't test whether the file is executable;
12555 Both things are checked ...
12556 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
12557 the former ``test -f''.
12558 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
12560 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
12562 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
12565 2004-11-10 Derek R. Price <derek@ximbiot.com>
12567 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
12568 limitations. Reorder paragraphs for clarity.
12570 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
12572 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
12573 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
12574 variants", "Unix", and some related minor wording fixups.
12576 (Shellology, Special Shell Variables): Document that the Zsh
12577 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
12578 to Alexandre Duret-Lutz for this info.
12580 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
12582 * doc/autoconf.texi (One-Shot Macros): New node.
12584 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12586 * doc/autoconf.texi (Function Portability): Fix misdescription
12587 of putenv. Problem reported by Michael Wardle.
12589 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
12591 * doc/autoconf.texi (auindex): New macro.
12592 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
12593 Problem reported by Stepan Kasal.
12595 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
12597 Fix problems reported by Andreas Buening in:
12598 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
12599 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
12601 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
12602 readable; it's not true in OS/2-emx.
12604 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
12606 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
12607 "/usr/include", clear ac_x_includes instead of leaving it as "no"
12608 (trivial change). Problem and patch reported by Andrew Church in:
12609 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
12611 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
12613 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
12614 three args in examples. Problem reported by Frederik Fouvry in:
12615 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
12616 Also, fix some minor spacing and punctuation bugs.
12618 2004-09-02 Akim Demaille <akim@epita.fr>
12620 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
12621 "case" to restore ordering.
12622 Reported by Stepan Kasal.
12624 2004-08-26 Akim Demaille <akim@epita.fr>
12626 * doc/autoconf.texi: Minor typos and stylos.
12628 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
12630 * configure.ac (AC_INIT): Bump to 2.59c.
12632 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
12636 * README: Add advice about m4 1.4.2.
12638 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
12639 texinfo.tex for now (done by hand now).
12640 * Makefile.maint (wget_files, cvs_files):
12641 Remove ansi2knr.c; nobody uses it.
12642 (ansi2knr.c-url_prefix): Remove.
12643 (cvs-update): Fix test for failure. I don't know why it ever
12646 * doc/autoconf.texi: Update URLs, some of which went stale.
12647 Use @uref rather than @href.
12649 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
12650 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
12652 * config/config.guess, config/config.sub, config/elisp-comp,
12653 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
12654 doc/fdl.texi, doc/standards.texi: Sync with master copy.
12656 * NEWS, TODO, configure.ac, bin/autoscan.in,
12657 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
12658 doc/install.texi, lib/Autom4te/Configure_ac.pm,
12659 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
12660 lib/autoconf/programs.m4, lib/autoconf/status.m4,
12661 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
12662 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
12663 tests/tools.at, tests/torture.at:
12664 Use "file name" rather than "filename" or "path",
12665 to be consistent with the terminology of the GNU coding standards.
12667 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12669 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
12670 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
12671 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
12672 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
12674 More fixes to support spaces in the name of the build directory.
12675 This isn't a complete fix but it's an improvement.
12677 * bin/autoconf.as (autom4te_options): New var.
12678 Use it instead of appending to AUTOM4TE, so that we can allow
12679 spaces in the build directory's absolute name.
12680 * bin/autoheader.in ($autoconf): Allow spaces in file names.
12681 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
12682 AT_CHECK_NOESCAPE): Likewise.
12683 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
12684 main program): Likewise.
12686 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
12688 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
12689 From Ralf Corsepius in:
12690 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
12692 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12694 * doc/autoconf.texi (Function Portability): Document isinf and
12695 and isnan. From a suggestion by Kevin Ryde.
12697 * lib/Autom4te/General.pm (END): Return correct exit status even
12698 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
12700 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12702 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
12703 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
12704 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
12706 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
12708 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
12709 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
12710 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
12711 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
12712 * lib/autom4te.in (Automake-preselections): Preselect
12713 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
12715 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
12717 * lib/autom4te.in (Automake-preselections): Preselect
12718 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
12721 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
12723 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
12725 * doc/autoconf.texi (Shellology): Mention BIN_SH.
12726 Document problem with "`""`" in pdksh POSIX mode.
12728 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
12730 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
12731 with pdksh, too. Problem reported by Patrick Welche via
12733 * doc/autoconf.texi (Shellology): Note that set -o posix is
12734 useful for pkdsh, too.
12736 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
12738 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
12739 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
12740 Don't fail if ENV or BASH_ENV is readonly.
12741 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
12742 etc. are read only. Problem reported by Ludovic Courtes.
12744 2004-06-23 Noah Misch <noah@cs.caltech.edu>
12746 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
12747 zsh, disable GLOB_SUBST to avoid backslash handling problems.
12750 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
12752 * doc/autoconf.texi (File System Conventions): Warn about
12753 names like "aux". Problem reported by Eric Blake.
12755 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
12756 by zero instead of array size, so that we can use any arithmetic
12757 constant expression (instead of requiring an integer constant
12758 expression). This allows us to test expressions like DBL_MAX <
12759 LDBL_MAX, which didn't conform to the C standard using the old
12761 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
12762 now that we can do floating-point tests at compile time.
12764 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
12766 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
12767 and LDBL_EPSILON, as the resulting expression isn't an
12768 integer constant expression and violates the C standard.
12769 Problem reported by Nelson H. F. Beebe. Also, check
12770 for "L" suffix, and check that long double doesn't have
12771 worse range or precision than double, that mixed-mode
12772 arithmetic doesn't generate a diagnostic, that double
12773 constants fit in long double.
12775 2004-06-03 Kevin Ryde <user42@zip.com.au>
12777 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
12778 malloc(0) and realloc(NULL,size).
12780 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
12783 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
12785 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
12786 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
12789 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
12791 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
12792 can be rewritten using if-then-else. Suggested by Bruno Haible.
12794 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
12796 * doc/autoconf.texi (testsuite Scripts): Fix typo.
12797 Problem reported by Stepan Kasal.
12799 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
12801 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
12802 change). Patch reported by Ralf Wildenhues in
12803 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
12805 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
12806 function F exists if the compiler and linker let you compile an
12807 expression like (F != 0). Recent versions of GCC optimize away
12808 the reference to F in that case, since every function address must
12809 be nonzero, so the link succeeds even if F does not exist.
12810 Problem reported by Manu in
12811 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
12813 * doc/autoconf.texi (Systemology): Standardize on the spelling of
12814 "Unix". Many uses changed.
12815 (Limitations of Builtins): Explain better why the ! command isn't
12818 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
12820 * lib/autom4te.in (Automake-preselections): Preselect
12821 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
12823 2004-05-19 Kevin Ryde <user42@zip.com.au>
12825 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
12826 referencing AC_FUNC_STRERROR_R.
12828 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
12829 note pessimistic assumption when cross compiling.
12831 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12833 * doc/autoconf.texi (Limitations of Make): Note that BSD make
12834 (until 2004) invoked subcommands with sh -e, contra POSIX.
12835 Reported by Kevin Ryde.
12837 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
12839 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
12840 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
12841 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
12842 `test -f " /usr/bin/grep"', which _always_ failed.
12843 (AC_PROG_SED): Ditto bogus PATH fix.
12844 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
12845 requires that grep correctly supports _multiple_ `-e' options, rather
12846 than stating only that grep should accept `-e'.
12848 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
12850 Port to C99, which requires that 'exit' be declared.
12852 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
12853 to ensure that stdlib.h is included.
12854 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
12855 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
12856 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
12857 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
12858 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
12859 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
12860 when using 'exit' in a test; C99 requires that 'exit' be declared.
12862 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
12864 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
12865 now prefers 'grep' implementations that accept -e.
12866 (Limitations of Usual Tools): Describe problems of traditional
12867 egrep and fgrep with long input lines, and of traditional grep
12869 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
12870 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
12871 All callers changed. Append /usr/xpg4/bin to the PATH, for
12873 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
12874 the user with complaints about multiple -e options.
12875 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
12876 Define it with AC_PROG_GREP.
12877 * configure.ac (AC_PROG_GREP): Add.
12878 * lib/freeze.mk (GREP): New macro.
12880 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
12882 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
12883 a possible candidate only after all others fail, rather than
12884 consulting it first. This improves backward compatibility by
12885 better reflecting the way shell selection occurred in previous
12886 versions of Autoconf, and should help to avoid triggering latent
12887 problems in other packages, such as the one in Automake where zsh
12888 is not handled robustly:
12889 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
12890 Although it is not Autoconf's responsibility to work around
12891 problems in Automake, it nevertheless makes sense to avoid
12892 introducing unnecessary incompatibilites.
12894 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
12895 Gary V. Vaughan <gary@gnu.org>
12897 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
12898 how deeply nested we are when a suitable tool is found, set the
12899 ac_path_TOOL_found flag.
12900 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
12901 nested we are in this macro. Break out of all 3 nested loops if
12902 ac_path_TOOL_found is set.
12904 2004-04-21 Gary V. Vaughan <gary@gnu.org>
12906 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
12907 of the _AS_PATH_WALK loop too if GNU flavor is found.
12909 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
12911 * doc/autoconf.texi (Limitations of Make): Update documentation
12912 for `$<'. New entry `Long lines', based on a report from Simon
12913 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
12914 paragraph about DJGPP, based on a mail from Richard Dawe.
12916 2004-04-20 Paul Eggert <eggert@twinsun.com>
12918 * tests/c.at (C keywords): Don't assume that GCC supports
12919 "restrict" and "inline", as sufficiently-old GCC versions do not
12920 (also, GCC configured to be in pedantic C89 mode does not).
12921 Problem reported by Sumit Pandya in:
12922 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
12924 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
12925 consider -g to work if it generates warnings when plain compiles
12926 don't. Problem reported by Braden McDaniel in:
12927 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
12929 * doc/autoconf.texi (Slashes): New section, to document a problem
12930 reported by Jim Meyering in:
12931 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
12933 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
12934 linker output files before linking, to work around IRIX 6 linker bug.
12935 Problem reported by Rainer Orth in:
12936 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
12938 2004-04-20 Gary V. Vaughan <gary@gnu.org>
12940 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
12941 best tool so far counter rely on the tool path variable name to
12942 avoid checks for one tool being affected by the results of running
12943 the length check on a previous tool.
12945 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
12946 match expression argument, as different greps have different
12947 regular expression flavours.
12948 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
12950 (AC_PROG_EGREP): Pass 'EGREP$'.
12951 (AC_PROG_GREP): Pass 'GREP$'.
12953 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
12955 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
12956 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
12958 2004-03-29 Paul Eggert <eggert@twinsun.com>
12960 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
12961 Types, Specific Compiler Characteristics, System Services,
12962 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
12963 etc. consistently instead of 'long', 'short', 'unsigned' etc.
12964 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
12965 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
12967 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
12968 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
12969 AC_TYPE_OFF_T): Likewise.
12970 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
12973 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
12974 pacify libtool 1.5.2. Fix quoting problems in sed command.
12976 2004-03-28 Paul Eggert <eggert@twinsun.com>
12978 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
12979 now defines HAVE_DECL_TZNAME if it is declared, when
12980 HAVE_STRUCT_TM_TM_ZONE is not defined.
12981 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
12982 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
12985 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
12987 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
12988 superfluous backslashing of quotes (") in sed expressions;
12989 thanks to Paul Eggert.
12991 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
12993 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
12994 Fortran compiler is ifort, also added pghpf; thanks to Nelson
12995 H. F. Beebe for the bug report.
12997 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
12999 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
13000 quoted -cmdline argument in Portland Group compiler (bug
13001 reported by Jeffrey J. Barteet).
13003 2004-03-25 Kevin Ryde <user42@zip.com.au>
13005 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
13006 (Run Time): ... here, where it's now mentioned.
13008 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
13010 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
13011 inherits from language Autoconf-without-aclocal-m4.
13012 (Customizing autom4te): Adjust example; the cache must now be
13013 disabled for language Autoconf-without-aclocal-m4.
13015 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
13016 Nathanael Nerode <neroden@twcny.rr.com>
13018 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
13019 AC_CHECK_TOOLS): Warn if a cross-tool is found without
13021 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
13022 AC_CHECK_TARGET_TOOLS): New macros.
13023 * doc/autoconf.texi (Generic Programs): Document
13024 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
13025 AC_CHECK_TARGET_TOOLS, and warn for future changes
13026 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
13028 (Specifying Names): Document the reason for these future
13029 behavioral changes.
13030 * tests/mktests.sh: Do not generate tests for the
13032 * NEWS: Document these changes.
13034 * doc/autoconf.texi: Avoid macros with unbraced arguments,
13035 they make TeX hang up.
13037 2004-03-15 Paul Eggert <eggert@bogus.example.com>
13039 * NEWS: New macro AC_CHECK_ALIGNOF.
13040 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
13041 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
13042 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
13044 (AC_CHECK_ALIGNOF): New macro.
13045 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
13046 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
13049 2004-03-03 Paul Eggert <eggert@twinsun.com>
13051 * bin/Makefile.am (edit): Don't use $< in a context where
13052 POSIX doesn't require support for it. Use $@.in instead.
13053 Problem reported by Anthony N. Frasso in
13054 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
13055 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
13057 2004-02-23 Gary V. Vaughan <gary@gnu.org>
13059 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
13060 from the next generation of Libtool.
13061 * lib/autom4te.in (Autoreconf-preselections): Ditto.
13063 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
13065 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
13066 is not always thread-safe. Report from Nathanael Nerode.
13068 2004-02-18 Paul Eggert <eggert@twinsun.com>
13070 Fix a dependencies problem, stemming from a Autoconf 2.59 build
13071 problem on QNX reported by Stephen Rasku in
13072 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
13074 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
13075 $(m4sh_m4f_dependencies); this removes a FIXME.
13076 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
13077 (MAINTAINERCLEANFILES): Split into pieces,
13078 one per related section. Add $(srcdir)/wrapper.in.
13080 2004-02-09 Paul Eggert <eggert@twinsun.com>
13082 * doc/autoconf.texi (Setting Output Variables): Emphasize that
13083 AC_SUBST provides no portable way to escape literal newlines.
13085 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
13086 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
13087 Darwin uses -lcrt2.o and there's little point to cataloging all
13088 the system variants. Partial fix reported by Andreas Waechter in:
13089 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
13090 for bug reported by Nelson H. F. Beebe in:
13091 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
13093 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
13095 * doc/autoconf.texi (AU_DEFUN): Fix English,
13096 suggested by Paul Eggert.
13097 * lib/autoconf/autoupdate.m4: Correct reference to
13098 acobsolete.m4, suggested by Alexandre Duret-Lutz.
13100 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
13102 * bin/autoupdate.in: Define __file__ so that warnings
13103 refer to the correct file.
13104 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
13105 the behavior of the third argument.
13106 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
13107 correctly the behavior of the third argument. Document
13108 what the three macros that AU_DEFUN defines do. Fix
13109 warning message when the third argument includes $0
13110 (reported by Alexandre Duret-Lutz).
13112 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
13113 Eric Sunshine <sunshine@sunshineco.com>
13114 Paul Eggert <eggert@twinsun.com>
13116 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
13117 (AS_INIT): Output shell initialization there. Removed optional
13118 parameter. Expand _AS_SHELL_FN_SPY.
13119 (AS_INIT_WITH_SHELL_FN): Removed.
13120 (_AS_SHELL_FN_SPY): New macro.
13121 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
13123 (AS_SHELL_SANITIZE): Remove loop to find better shell
13124 and documentation for the parameter.
13125 (_AS_DETECT_BETTER_SHELL): Move it here.
13126 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
13127 (_AS_RUN): Move it here, support testing with eval.
13128 (AS_REQUIRE_SHELL_FN): Require shell functions when
13130 (_AS_LINENO_WORKS): Put around braces, we do not
13131 trigger the bash bug anymore.
13132 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
13133 use AS_INIT_WITH_SHELL_FN.
13134 * bin/autoconf.in, tests/wrapper.in: Regenerated.
13136 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
13138 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
13139 * doc/autoconf.texi: Don't say that the third parameter
13141 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
13142 (AU_DEFUN): Honor the third parameter, create autoupdate
13143 macros with AU_DEFINE.
13144 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
13145 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
13146 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
13147 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
13148 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
13149 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
13150 AC_XENIX_DIR): Likewise.
13151 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
13152 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
13153 * lib/autoconf/status.m4: Remove FIXME.
13154 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
13155 that the macro is not present anymore in the updated
13157 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
13160 2004-01-28 Paul Eggert <eggert@twinsun.com>
13162 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
13164 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
13165 2003 (except 1997) to the list of copyright years. This undoes
13166 the 2003-05-22 change, which removed the older years from the list.
13167 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
13169 2004-01-27 Gary V. Vaughan <gary@gnu.org>
13170 Albert Chin-A-Young <china@thewrittenword.com>
13172 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
13173 grep or ggrep program in PATH that accepts as long lines as
13175 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
13177 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
13178 egrep and fgrep respectively if $GREP -E/-F don't work.
13179 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
13180 _AC_PROG_GREP, and AC_PROG_SED.
13181 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
13182 longest input length accepted by a command.
13183 (AC_PROG_SED): Use it.
13184 * doc/autoconf.texi (Particular Programs): Document the changes.
13187 2004-01-27 Paul Eggert <eggert@twinsun.com>
13189 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
13190 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13191 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
13192 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
13194 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
13195 bin/autoconf.in, config/Makefile.in, config/config.guess,
13196 config/config.sub, config/install-sh, config/mdate-sh,
13197 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
13198 lib/Makefile.in, lib/Autom4te/Makefile.in,
13199 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
13200 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
13201 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
13202 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
13203 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
13204 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
13205 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
13206 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
13207 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
13208 tests/actypes.at: Regenerate and/or sync with original
13211 2004-01-26 Paul Eggert <eggert@twinsun.com>
13213 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
13214 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
13215 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
13216 not <inttypes.h>. Problem reported by Tim Mooney in
13217 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
13218 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
13221 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
13222 otherwise "make check" fails because it forbids cmp (I guess
13223 because cmp treats files as binary on DOS-like systems).
13225 * tests/mktests.sh: Update copyright date to 2004, since some tests
13226 have changed in 2004.
13228 2004-01-23 Gary V. Vaughan <gary@gnu.org>
13230 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
13231 non-truncating sed or gsed program in PATH.
13232 * tests/acprograms.at: Add it.
13233 * doc/autoconf.texi (Particular Programs): Document it.
13236 2004-01-15 Paul Eggert <eggert@twinsun.com>
13238 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
13239 -std1 disables some useful extensions on Tru64. Problem reported
13240 by N. Lichtmaier in
13241 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
13243 2004-01-14 Paul Eggert <eggert@twinsun.com>
13245 * doc/autoconf.texi (Programming in M4sh): Document that
13246 AS_MKDIR_P succeeds if the destination is a symbolic link
13247 to an existing directory.
13248 (Limitations of Usual Tools): Note that mkdir -p might not
13249 succeed on symlinks to directories.
13251 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
13253 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
13254 * bin/autoheader.in: Grammar fix in message.
13255 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
13256 Test for dir before calling mkdir -p. (trivial changes)
13258 2004-01-13 Eric Blake <ebb9@byu.net>
13260 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
13261 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
13263 2004-01-10 Jim Meyering <jim@meyering.net>
13265 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
13267 2004-01-09 Paul Eggert <eggert@twinsun.com>
13269 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
13270 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
13271 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
13272 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
13273 AC_COMPILE_IFELSE, since we now assume our caller invokes
13274 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
13275 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
13276 of AC_RUN_IFELSE; this avoids the warning mentioned above.
13277 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
13279 2004-01-07 Paul Eggert <eggert@twinsun.com>
13281 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
13282 `"'...'"`, as it's confusing (and I suspect it may not work on
13283 some platforms). The code was incorrect anyway, as it assumed
13284 that \$ evaluated to itself in that context. Reported by
13285 Alexandre Duret-Lutz.
13287 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
13289 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
13290 and _LT_AC_TAGCONFIG.
13292 2004-01-06 Paul Eggert <eggert@twinsun.com>
13294 * doc/autoconf.texi (One Macro Call): Fix an incorrect
13295 example, and add more examples. Reported by Eric Sunshine.
13297 2004-01-05 Paul Eggert <eggert@twinsun.com>
13299 * doc/autoconf.texi (Limitations of Usual Tools):
13300 Remove warning against "rm -fr" introduced yesterday; it
13303 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
13304 autoscan, autoupdate, ifnames): Don't use chmod -w.
13305 * lib/Makefile.am (autom4te.cfg): Likewise.
13306 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
13309 2004-01-04 Paul Eggert <eggert@twinsun.com>
13310 Paolo Bonzini <bonzini@gnu.org>
13312 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
13313 by doing lineno substitution only on lines containing "$LINENO".
13315 2004-01-04 Paul Eggert <eggert@twinsun.com>
13317 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
13318 Use "rm -f" to remove conftest.sed, not plain "rm".
13319 Bug reported by David Relson in
13320 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
13322 * Makefile.am (autom4te-update):
13323 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
13324 * Makefile.maint (my-distcheck, do-po-update): Likewise.
13325 * doc/autoconf.texi (Guidelines): Likewise.
13326 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
13327 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
13328 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
13329 * lib/autotest/general.m4 (AT_INIT): Likewise.
13330 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
13331 * tests/Makefile.am (clean-local): Likewise.
13332 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
13334 * doc/autoconf.texi (Limitations of Usual Tools):
13335 Warn against "rm -fr".
13337 2004-01-03 Paul Eggert <eggert@twinsun.com>
13339 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
13340 -c -o might not work. From a suggestion by Kevin Ryde.
13341 (C Compiler, Generating Sources, Limitations
13342 of Usual Tools, Limitations of Make, Making testsuite Scripts):
13343 Don't put '-o' after non-options, as POSIX doesn't allow this.
13344 Mention that cc's name might be gcc or c89 or whatever.
13346 2004-01-04 Kevin Ryde <user42@zip.com.au>
13348 * doc/autoconf.texi: Add various further index entries.
13350 2003-12-29 Paul Eggert <eggert@twinsun.com>
13352 * bin/autoreconf.in (autoreconf_current_directory):
13353 Fix typo: mkdir without umask arg.
13355 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
13357 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
13358 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
13359 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
13360 explanation clearer.
13362 2003-12-24 Andreas Schwab <schwab@suse.de>
13364 * doc/autoconf.texi (Default Includes): Fix misspelling of
13365 AC_INCLUDES_DEFAULT.
13367 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
13369 * configure.ac: Test if sh -n works.
13370 * configure: Regenerate.
13371 * tests/atlocal.in: Store the result here.
13372 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
13373 tools.at, looking in atlocal's ac_cv_sh_n_works instead
13374 of explicitly testing.
13375 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
13376 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
13377 * tests/tools.at (Syntax of the shell scripts): Simplify
13378 using AT_CHECK_SHELL_SYNTAX.
13379 (Syntax of the Perl scripts): Remove definition of
13380 AT_CHECK_PERL_SYNTAX.
13382 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
13384 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
13385 stderr to /dev/null.
13386 * bin/autoconf.in: Regenerate.
13387 * bin/wrapper.in: Regenerate.
13389 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
13391 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
13392 Extracted from AS_SHELL_SANITIZE.
13393 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
13395 (AS_SHELL_SANITIZE): Move reinvocation code from
13396 _AS_LINENO_WORKS, use it to find out if shell
13398 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
13400 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
13401 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
13403 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
13404 * bin/autoconf.in: Regenerate.
13405 * tests/wrapper.in: Regenerate.
13406 * tests/tools.at: Test the syntax of tests/autoconf
13407 and tests/testsuite.
13409 2003-11-24 Akim Demaille <akim@epita.fr>
13411 * config/announce-gen (&print_locations, &print_signatures)
13414 No longer rely on Gnus to inline the list of signatures: compute
13417 2003-11-24 Akim Demaille <akim@epita.fr>
13419 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
13420 override some files.
13421 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
13422 From Debian Autoconf 2.58.
13424 2003-11-24 Akim Demaille <akim@epita.fr>
13426 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
13428 From Debian Autoconf 2.58.
13430 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
13432 * TODO: Remove already done things. Update the part about finding
13433 tools for the target.
13435 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
13437 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
13438 Make wording more consistent.
13439 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
13440 Explain the transition better.
13441 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
13442 the transition better.
13444 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
13446 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
13447 parameter of AU_DEFUN.
13448 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
13449 (AU_DEFUN): Remove the third parameter, it was not used.
13450 Use AC_DEFUN directly, not AU_DEFINE.
13451 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
13452 the expanded body, consistently with other macros such as AC_USG.
13454 2003-11-17 Paul Eggert <eggert@twinsun.com>
13456 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
13457 into the initial confdefs.h, to work around a bug in NextStep 3.3
13458 patch 3 reported by Eric Sunshine.
13460 2003-11-15 Kevin Ryde <user42@zip.com.au>
13462 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
13463 than $target since the latter is not usual, add guidelines on when to
13464 use or not use the system type.
13466 2003-11-12 Derek Price <derek@ximbiot.com>
13468 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
13469 typo misrepaired by an auto-spellcheck.
13471 2003-11-12 Akim Demaille <akim@epita.fr>
13473 * bin/autoreconf.in (&parse_args): Don't call automake with
13474 --force-missing unless it actually supports it.
13475 From Debian #219336.
13477 2003-11-12 Akim Demaille <akim@epita.fr>
13479 * configure.ac: Bump to 2.59a.
13482 2003-11-06 Akim Demaille <akim@epita.fr>
13486 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
13488 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
13489 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
13490 and ac_abs_top_srcdir are absolute paths.
13491 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
13493 2003-11-05 Akim Demaille <akim@epita.fr>
13495 * configure.ac: Bump to 2.58a.
13497 2003-11-05 Kevin Ryde <user42@zip.com.au>
13499 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
13500 it provokes a warning from makeinfo about looking like a cross
13501 reference in info output.
13503 * doc/autoconf.texi (Function Portability): Add notes on signal
13504 handler return type, as per AC_TYPE_SIGNAL.
13506 2003-11-04 Akim Demaille <akim@epita.fr>
13509 * doc/standards.texi: Update from master.
13511 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
13513 2003-11-04 Akim Demaille <akim@epita.fr>
13515 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
13516 computing the absolute path to d1 in the source hierarchy: it may
13517 not exist at all. So don't cd into it.
13518 From Alexandre Duret-Lutz.
13519 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
13521 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
13522 From Paul Eggert, but named after Perl's IO::Spec->catfile.
13523 * doc/autoconf.texi (Programming in M4sh): Document.
13524 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
13526 2003-11-03 Pavel Roskin <proski@gnu.org>
13528 * doc/autoconf.texi (Generic Structure Checks): Describe
13529 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
13531 2003-10-31 Akim Demaille <akim@epita.fr>
13533 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
13534 (GNU Fortran): New.
13535 * doc/autoconf.texi (Language Choice): Document.
13536 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
13537 the current language is Fortran.
13539 2003-10-31 Akim Demaille <akim@epita.fr>
13541 * bin/autom4te.in (&freeze): Use a less likely warning separator
13542 than `\n\n', so that `\n\n\n' is valid in warnings.
13543 Reported by Steve Huston.
13545 2003-10-28 Akim Demaille <akim@epita.fr>
13547 * Makefile.cfg (local_updates, executable-update): Tweak to be
13548 robust to parallel makes.
13549 Suggested by Alexandre Duret-Lutz.
13551 2003-10-27 Akim Demaille <akim@epita.fr>
13553 * Makefile.cfg (executable-update): New.
13554 (local_updates): Call it.
13556 2003-10-27 Akim Demaille <akim@epita.fr>
13558 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
13559 Don't remove core.* as it may remove valid user files.
13560 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
13561 (AC_FUNC_UTIME_NULL): Likewise.
13563 2003-10-23 Akim Demaille <akim@epita.fr>
13566 * config/config.guess, config/config.sub: Upgrade from masters.
13568 2003-10-23 Akim Demaille <akim@epita.fr>
13570 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
13571 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
13574 2003-10-23 Akim Demaille <akim@epita.fr>
13576 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
13577 Don't forget to remove conftest.err.
13579 2003-10-23 Akim Demaille <akim@epita.fr>
13581 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
13582 same object file in $LIBOBJS.
13583 Reported by Alexandre Duret-Lutz & Derek Robert Price.
13584 * doc/autoconf.texi (Generic Functions): Adjust.
13586 2003-10-20 Paul Eggert <eggert@twinsun.com>
13588 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
13589 Use 'eval', so that the resulting configure scripts work even if
13590 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
13592 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
13594 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
13595 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
13596 (_AC_LINK_IFELSE): Check the werror flag.
13597 * doc/autoconf.texi (Generic Compiler Characteristics): Document
13599 * NEWS: Mention it.
13601 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
13603 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
13604 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
13605 override AC_LINK_IFELSE.
13607 2003-10-15 Paul Eggert <eggert@twinsun.com>
13609 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
13610 pdksh 5.2.14. Bug reported by Ralf Corsepius.
13611 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
13612 Mention /usr/dt/bin/dtksh on Solaris.
13613 (Shell Substitutions): Warn about $((...)).
13614 (Parentheses): New section.
13616 2003-10-15 Kevin Ryde <user42@zip.com.au>
13618 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
13619 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
13621 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
13623 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
13626 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
13628 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
13629 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
13631 2003-10-10 Andreas Schwab <schwab@suse.de>
13633 * bin/autoheader.in: Avoid empty first line in --version and
13635 * bin/ifnames.in: Likewise.
13637 2003-10-09 Paul Eggert <eggert@twinsun.com>
13639 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
13640 Issue a more-informative diagnostic.
13641 Problems reported by Eric Sunshine.
13643 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
13645 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
13646 -mGLOB_options_string stuff for Intel ifc, which can cause
13647 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
13648 pattern-matching instead of grep.
13650 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
13652 * doc/autoconf.texi: Document new FC Fortran macros.
13654 2003-10-08 Gary V. Vaughan <gary@gnu.org>
13656 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
13657 that future autopoint/aclocal/automake/autoreconf will be able
13658 to trace to find where to install local m4 macros.
13659 * doc/autoconf.texi (Input): Document it.
13662 2003-10-06 Gary V. Vaughan <gary@gnu.org>
13664 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
13665 -lcrtbegin.o to list of ignored flags and fix underquoting of
13668 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
13670 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
13671 cache variable instead of $G77 to decide whether to include -O2,
13672 since $G77 is specific to Fortran 77.
13674 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
13676 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
13677 free" flag. Re-order flags tested into rough order of popularity.
13679 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
13681 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
13682 arguments so that it can be used with syntax identical to
13683 AC_PROG_F77, and so that we can more easily decide to
13684 remove/deprecate the DIALECT optional argument in the future if it
13685 proves troublesome.
13686 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
13687 non-freeform-supporting compilers. Document freeform flags.
13689 2003-10-03 Akim Demaille <akim@epita.fr>
13691 * configure.ac: Look for emacs, not macs.
13692 Reported by Eric Sunshine.
13694 2003-10-03 Akim Demaille <akim@epita.fr>
13696 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
13697 * bin/autoreconf.in (autoreconf_current_directory): Create the
13698 AUX_DIR if needed, for sake of automake --add-missing etc.
13699 Suggested by Alexandre Duret-Lutz.
13701 2003-10-03 Akim Demaille <akim@epita.fr>
13703 * configure.ac: Quotation and formatting changes.
13704 (EMACS): Don't set it if it is not recent enough to support
13706 From Eric Sunshine.
13708 2003-10-02 Akim Demaille <akim@epita.fr>
13710 * bin/ifnames.in (&scan_file): Skip C++ comments.
13711 From Jeremy Yallop.
13713 2003-10-01 Pavel Roskin <proski@gnu.org>
13715 * doc/autoconf.texi (Particular Structure Checks):
13716 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
13718 2003-10-01 Akim Demaille <akim@epita.fr>
13722 2003-09-30 Paul Eggert <eggert@twinsun.com>
13724 * lib/Autom4te/XFile.pm: Use Errno.
13725 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
13726 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
13728 2003-09-30 Akim Demaille <akim@epita.fr>
13730 * config/announce-gen (&print_news_deltas): Extracted from...
13731 (&print_changelog_deltas): here.
13732 (&news_file): Rename as...
13733 (@news_file): this.
13735 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
13737 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
13738 have been created when invoking the compiler.
13739 * tests/fortran.at (GNU Fortran 77): Quote $G77.
13741 2003-09-29 Akim Demaille <akim@epita.fr>
13745 * config/mkinstalldirs: Upgrade.
13747 2003-09-28 Paul Eggert <eggert@twinsun.com>
13749 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
13750 Problem reported by Lars J. Aas in
13751 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
13752 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
13753 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
13754 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
13756 2003-09-26 Akim Demaille <akim@epita.fr>
13758 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
13759 directory for AC_CONFIG_COMMANDS' first argument exists.
13760 This makes valid the invocation of _AC_SRCPATH that follows.
13761 Reported by Eric Sunshine.
13762 * doc/autoconf.texi (Configuration Commands): Adjust.
13764 2003-09-26 Akim Demaille <akim@epita.fr>
13766 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
13767 Reported by Ralf Corsepius.
13769 2003-09-26 Akim Demaille <akim@epita.fr>
13771 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
13773 Actually, use AU_ALIAS.
13776 2003-09-26 Paul Eggert <eggert@twinsun.com>
13778 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
13779 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
13780 Problem reported by Eric Sunshine in:
13781 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
13783 2003-09-26 Akim Demaille <akim@epita.fr>
13785 The test suite are sometimes assigning timings incorrectly.
13786 Reported by Henk Krus.
13787 Diagnosed by Nicolas Joly.
13789 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
13791 Instead of making AT_help a sequence of assignments to grow
13792 $at_help_all, just make AT_help_all be the growing contents of
13793 $at_help_all, and make a single assignment in...
13795 (at_times_skip): Flip the meaning and rename as...
13796 (at_times_p): this.
13797 (AT_INIT): When summarizing the test that ran, remove
13798 $at_times_file after use, and check it is present before trying to
13801 2003-09-25 Akim Demaille <akim@epita.fr>
13805 * bin/Makefile.am (edit): Handle '@configure_input@'.
13806 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
13807 (ifnames): chmod -w.
13808 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
13809 executables, not bin/ executables! Otherwise all the magic needed
13810 to find non installed files is turned off. This caused a failure
13811 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
13812 as found in its environment (sent by tests/autoreconf): pointing
13813 to bin/autom4te that could not find its files.
13814 * tests/mktests.sh: Force the replacement of generated files, for
13815 the sake of "mv" program that are interactive when overwriting a
13817 * config/install-sh: Upgrade from CVS Automake.
13819 2003-09-23 Paul Eggert <eggert@twinsun.com>
13821 * doc/autoconf.texi (Limitations of Builtins): Document test -h
13822 versus test -L issues.
13824 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
13825 Paul Eggert <eggert@twinsun.com>
13827 Trivial change to support GCC's configuration procedure.
13828 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
13829 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
13830 about inconsistency if the preprocessor is set to give errors for
13832 * doc/autoconf.texi (C Compiler Characteristics): Document this.
13834 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
13836 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
13837 and XFile.pm from Automake.
13838 * lib/Autom4te/XFile.pm: Update from Automake.
13840 2003-09-12 Akim Demaille <akim@epita.fr>
13844 2003-09-12 Akim Demaille <akim@epita.fr>
13846 * config/config.guess, config/config.sub, config/missing,
13847 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
13850 2003-09-12 Akim Demaille <akim@epita.fr>
13852 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
13855 2003-09-11 Akim Demaille <akim@epita.fr>
13857 * doc/autoconf.texi (Header Portability): linux/random.h.
13858 From Peter Hendrickson.
13860 2003-09-10 Akim Demaille <akim@epita.fr>
13862 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
13863 willing to edit the output files.
13865 2003-09-10 Akim Demaille <akim@epita.fr>
13867 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
13868 and AC_FC_FREEFORM.
13869 * tests/mktests.sh: Skip AC_FC_SRCEXT.
13870 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
13872 2003-09-09 Akim Demaille <akim@epita.fr>
13874 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
13875 Reported by Gary Vaughan.
13876 * bin/autom4te.in (handle_m4): Likewise.
13878 2003-09-09 Akim Demaille <akim@epita.fr>
13880 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
13883 2003-09-07 Paul Eggert <eggert@twinsun.com>
13885 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
13886 Improve the accuracy of the wording about obsolescence.
13887 From a suggestion by Ian Lance Taylor in
13888 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
13890 2003-09-05 Paul Eggert <eggert@twinsun.com>
13892 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
13893 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
13895 2003-09-04 Akim Demaille <akim@epita.fr>
13897 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
13900 2003-09-04 Akim Demaille <akim@epita.fr>
13902 * bin/autom4te.in: Use &fatal where more appropriate than &error.
13903 (freeze): When exiting, use $exit_code.
13904 * lib/autoconf/fortran.m4: Comment changes.
13906 2003-09-04 Akim Demaille <akim@epita.fr>
13908 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
13910 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
13912 Add support for newer Fortran dialects. The F77 interface is
13913 unchanged, and continues to support Fortran 77. New FC macros
13914 correspond to all the old F77 macros, with output variables FC,
13915 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
13916 available dialect, but older dialects can be specified. There are
13917 new macros AC_FC_SRCEXT to set the source extension, and
13918 AC_FC_FREEFORM to accept free-form source files.
13920 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
13922 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
13923 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
13924 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
13925 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
13926 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
13927 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
13928 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
13929 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
13930 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
13931 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
13932 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
13933 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
13934 AC_FC_SRCEXT, AC_FC_FREEFORM):
13936 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
13937 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
13938 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
13939 Rewrite in terms of the above.
13940 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
13941 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
13942 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
13943 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
13945 2003-09-02 Paul Eggert <eggert@twinsun.com>
13947 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
13948 Document problems with timestamp resolution that 'make', 'cp -p', and
13951 2003-08-27 Akim Demaille <akim@epita.fr>
13953 * tests/m4sugar.at (cross_warning): Make sure to enable the
13954 output, so that we can track spurious m4sugar output.
13955 * tests/local.at: Require 2.57.
13956 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
13957 are defaulted by AT_CHECK anyway.
13958 Use AT_CHECK_AUTOM4TE.
13959 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
13962 2003-08-27 Akim Demaille <akim@epita.fr>
13964 * bin/autoheader.in: Issue the "Using auxiliary..." message only
13965 when -Wobsolete is set.
13966 Set it on by default.
13967 Suggested by Klee Dienes.
13969 2003-08-27 Akim Demaille <akim@epita.fr>
13971 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
13973 From Guido Draheim.
13975 2003-08-26 Akim Demaille <akim@epita.fr>
13977 * doc/autoconf.texi (Output): Make clear that one can run code
13980 2003-08-25 Akim Demaille <akim@epita.fr>
13982 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
13985 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
13987 * bin/autoreconf.in (parse_args): Do not pass --no-force to
13988 Automake versions prior to 1.8.
13990 2003-08-25 Akim Demaille <akim@epita.fr>
13992 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
13993 From Ville Karaila.
13995 2003-08-24 Akim Demaille <akim@epita.fr>
13997 * configure.ac: Bump to 2.57c.
13999 2003-08-22 Akim Demaille <akim@epita.fr>
14003 * Makefile.cfg (local-checks-to-skip): New.
14004 * Makefile.maint (local-check): Rename as...
14005 (local-checks-available): this.
14006 (local-check): New.
14008 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
14009 * configure.ac: Require Automake 1.7.6.
14011 2003-08-22 Akim Demaille <akim@epita.fr>
14013 Output stack traces in warnings.
14015 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
14016 Replace the former...
14017 (m4_warn): Pass the call stack to _m4_warn.
14018 * bin/autom4te.in: Adjust to output the call stack.
14019 * tests/m4sugar.at (m4@&t@_warn): Adjust.
14021 2003-08-22 Akim Demaille <akim@epita.fr>
14023 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
14024 * bin/autom4te.in: Adjust.
14026 2003-08-21 Akim Demaille <akim@epita.fr>
14028 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
14029 (&verbose): Remove.
14030 (&getopt): Adjust the note and verb channels, depending upon
14032 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
14033 * bin/autoupdate.in: Adjust.
14034 Use &verb, not &verbose.
14036 2003-08-21 Akim Demaille <akim@epita.fr>
14038 * bin/autoheader.in (&parse_args): Use &parse_warnings and
14040 ($help): Use Autom4te::ChannelDefs::usage.
14041 * bin/autoscan.in: Use Autom4te::ChannelDefs.
14042 * lib/Autom4te/General.pm: Don't export error: you don't own it.
14044 2003-08-21 Akim Demaille <akim@epita.fr>
14046 First stab at preserving warnings between calls to autom4te,
14047 including when the cache is used.
14049 There are still several issues: (i) there are too many runs of m4
14050 (one for include, one for warnings, and some more), (ii) warnings
14051 spreading on several lines are not handled gracefully, (iii) the
14052 code meant to have the call stack display for errors does not work
14053 (its handling should move from m4 to autom4te).
14055 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
14057 (@preselect): Add m4_warn.
14058 ($exit_status): Remove, use $exit_code.
14059 ($help): Use Autom4te::ChannelDefs::usage.
14060 (&handle_m4): No longer define the m4_warnings.
14061 At each run, extract and report the warnings.
14062 Always cache the result, including if the exit status is on
14063 failure, since if nothing changes, we should result in the same
14064 failure, hence we can use the cache.
14065 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
14066 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
14068 (m4_warn): Redefine as a do-nothing: it is its invocation that
14069 matters, as warnings are now reported via traces.
14070 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
14071 the contents of m4_warn: make it _call_ m4_warn, so that tracing
14072 the latter reveals calls to the former.
14076 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
14078 2003-08-21 Akim Demaille <akim@epita.fr>
14080 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
14083 2003-08-21 Akim Demaille <akim@epita.fr>
14085 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
14087 * lib/Autom4te/ChannelDefs.pm: Doc typos.
14088 (&parse_warnings): Accept a list of warning requests.
14089 (&usage): Return a string, not a side effect.
14090 (cross): New warning category.
14092 2003-08-21 Akim Demaille <akim@epita.fr>
14094 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
14095 (&require_configure_ac): Accept an optional directory argument.
14096 ($configure_ac): Remove.
14097 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
14098 (&catfile): Remove.
14099 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
14100 * bin/autoscan.in: Adjust.
14102 2003-08-20 Akim Demaille <akim@epita.fr>
14104 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
14105 Reported by Alexandre Duret-Lutz.
14107 2003-08-20 Akim Demaille <akim@epita.fr>
14109 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
14110 * bin/autom4te: Adjust.
14111 In particular, be Autoconf tools are really silent when properly
14112 working, bind the verbosity of the 'note' channel to $verbose.
14113 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
14114 (&xsystem, &contents): Remove, since they are exported by...
14115 * lib/Autom4te/FileUtils.pm: this.
14117 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
14118 * lib/Autom4te/FileUtils.pm: here.
14120 2003-08-20 Akim Demaille <akim@epita.fr>
14122 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
14123 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
14126 2003-08-20 Akim Demaille <akim@epita.fr>
14128 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
14129 (autom4te-update): New.
14130 * Makefile.cfg (update): Bind autom4te-update.
14132 2003-08-19 Derek Price <derek@ximbiot.com>
14134 * lib/autotest/general.m4: Comment various HELP_* diversions.
14135 (PARSE_ARGS_BEGIN): New section for option parsing related
14137 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
14138 package specific options and associated help.
14140 2003-08-19 Akim Demaille <akim@epita.fr>
14142 * config/announce-gen, Makefile.cfg: New.
14143 * Makefile.am: Adjust.
14144 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
14146 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
14148 * lib/autom4te.in (Automake-preselections): Preselect
14149 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
14152 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
14154 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
14155 (Autoconf-without-aclocal-m4): ... this new language.
14156 * doc/autoconf.texi (autom4te Invocation): Mention
14157 Autoconf-without-aclocal-m4.
14159 2003-08-18 Derek Price <derek@ximbiot.com>
14161 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
14162 RUN-IF-PASS optional arguments.
14164 2003-08-18 Derek Price <derek@ximbiot.com>
14166 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
14168 2003-08-16 Derek Price <derek@ximbiot.com>
14170 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
14171 STDOUT & STDERR arguments.
14173 2003-08-14 Derek Price <derek@ximbiot.com>
14175 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
14176 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
14177 shorter column three. Add DESCRIPTION to log file content.
14179 2003-08-13 Derek Price <derek@ximbiot.com>
14181 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
14184 2003-08-12 Derek Price <derek@ximbiot.com>
14186 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
14187 (AT_CHECK_NOESCAPE): Move core functionality to...
14188 (_AT_CHECK): ...this new macro.
14190 2003-08-07 Derek Price <derek@ximbiot.com>
14192 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
14193 (AT_CHECK_NOESCAPE): ...to this new macro.
14195 2003-07-31 Paul Eggert <eggert@twinsun.com>
14197 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
14198 in Bash 2.01. Problem reported by Brian Gough in
14199 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
14201 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
14203 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
14204 -lcrt1.o, for OS X. (trivial change)
14206 2003-07-07 Paul Eggert <eggert@twinsun.com>
14208 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
14209 inside '#ifndef __cplusplus'. Problem reported by
14212 2003-07-06 Bill Clarke <llib@computer.org>
14214 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
14215 'long', not 'int', for benefit of Sun's recent C++ compilers
14216 (trivial change). See:
14217 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
14218 (This really should be 'intptr_t', not 'long', but that would
14221 2003-06-25 Akim Demaille <akim@epita.fr>
14223 * lib/Makefile.am (autom4te.cfg): Make it read only.
14224 Depend on Makefile since it contains substitutions.
14225 From Paolo Bonzini.
14226 * lib/autom4te.in (args): Add local.at? for Autotest args.
14227 This change was made on autom4te.cfg which is generated.
14228 Reported by Raja R. Harinath.
14230 2003-06-25 Akim Demaille <akim@epita.fr>
14232 * doc/autoconf.texi (Header Portability): sys/mount.h.
14233 From Gareth McCaughan.
14235 2003-06-23 Akim Demaille <akim@epita.fr>
14237 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
14238 not all of them. This fixes 1. the fact that when testing
14239 Autoconf there are many many config.log, 2. the incorrect use of
14240 top_srcdir to find config.log.
14241 Don't mix the detailed output of failed test with the summary of
14242 failures. Rather, append detailed log afterwards.
14244 2003-06-23 Akim Demaille <akim@epita.fr>
14246 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
14247 always run: output config.log on $at_group_log.
14249 2003-06-23 Akim Demaille <akim@epita.fr>
14251 * tests/torture.at (#define header templates): Don't use quotes in
14252 C++ comments as it puzzles Emacs' sh font-lock-mode.
14254 2003-06-23 Akim Demaille <akim@epita.fr>
14256 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
14257 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
14258 * tests/atspecific.m4: Rename as...
14259 * tests/local.at: This.
14260 * tests/suite.at: Move the globals into...
14261 * tests/local.at: here.
14262 * tests/Makefile.am: Adjust.
14263 * doc/autoconf.texi (testsuite Scripts): Adjust.
14265 2003-06-21 Kevin Ryde <user42@zip.com.au>
14267 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
14268 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
14269 ensuring we add -std1 for full-ANSI.
14271 * doc/autoconf.texi (hdrindex): New macro.
14272 Add index entries for portability of various standard header files.
14274 2003-06-20 Akim Demaille <akim@epita.fr>
14276 * configure.ac: Bump to 2.57b.
14278 2003-06-20 Akim Demaille <akim@epita.fr>
14282 2003-06-20 Akim Demaille <akim@epita.fr>
14284 * bin/autom4te.in: Don't rely on $HOME being defined.
14285 Reported by Marc Espie as PR/233.
14287 2003-06-20 Akim Demaille <akim@epita.fr>
14289 * lib/autotest/general.m4: Use at_times_file only if used.
14292 2003-06-20 Akim Demaille <akim@epita.fr>
14294 * config/config.guess, config/config.sub, config/elisp-comp,
14295 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
14296 Update from masters.
14298 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
14300 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
14301 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
14302 (TEST_SCRIPT): New diversion.
14303 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
14304 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
14305 (AT_INIT): Support for expected failures.
14307 2003-06-02 Akim Demaille <akim@epita.fr>
14309 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
14311 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
14312 Autoconf nor Automake.
14313 (&contents): New, from Automake.
14316 2003-05-28 Paul Eggert <eggert@twinsun.com>
14318 * NEWS, doc/autoconf.texi (Particular Functions),
14319 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
14320 is the inverse of localtime.
14322 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
14324 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
14325 (handle_exec_errors): New function. Work around $! being
14326 altered by WEXITSTATUS.
14327 (xqx, xsystem): Use handle_exec_errors.
14329 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
14331 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
14332 Do not call `_exit()', simply modify `$?'.
14333 (xsystem): Reset $! before running system, and check it afterward.
14334 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
14335 63 for version mismatches.
14337 2003-05-23 Akim Demaille <akim@epita.fr>
14339 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
14340 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
14341 the middle of a line).
14342 * lib/m4sugar/m4sugar.m4: Likewise.
14343 Remove useless spaces in comments.
14345 2003-05-23 Akim Demaille <akim@epita.fr>
14347 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
14348 exit 63, so that we (or Automake's "missing") can tell the
14349 difference with a plain failure.
14350 * doc/autoconf.texi (Notices): Adjust.
14352 2003-05-23 Akim Demaille <akim@epita.fr>
14354 * Makefile.am, bin/Makefile.am, config/Makefile.am,
14355 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
14356 White spaces cleanup.
14358 2003-05-22 Jim Meyering <jim@meyering.net>
14359 Paul Eggert <eggert@twinsun.com>
14361 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
14362 Remove `#include <stdlib.h>' from the list; we should never
14363 make confdefs.h include <stdlib.h> or <cstdlib>, because the
14364 resulting namespace pollution would cause other tests to fail.
14365 Configure scripts run with some older versions of g++ and HP's
14366 aCC would fail due to such an #include. Problems reported by
14367 Matthew Mueller in <http://bugs.debian.org/120704> and by
14369 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
14370 In the test, use the test declaration before including <stdlib.h>,
14371 as that's closer to how it'll be used.
14373 2003-05-23 Akim Demaille <akim@epita.fr>
14375 * doc/autoconf.texi (Header Portability): ucred.h.
14378 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
14380 Overhaul Autotest's logging: generate separate log files
14381 in testsuite.dir/NNN/testsuite.log, and append them to
14382 testsuite.log instead of re-running the test verbosely.
14384 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
14385 file descriptor, write 0 to at_status_file instead of setting
14386 at_status=0, initialize some new variables (at_status_file,
14387 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
14388 to rerun the tests, instead append the at_group_log to the
14389 at_suite_log when a test fails.
14390 (AT_SETUP): pipe the test case's output into at_tee_pipe,
14391 with the AS_MESSAGE_LOG_FD redirected to stdout.
14392 (AT_CLEANUP): save the output status in $at_status_file
14393 and restore it, redirect the AS_MESSAGE_LOG_FD back to
14394 its original place.
14395 (AT_CHECK): since tests are run with a redirected stdout,
14396 and used to be re-run in verbose mode, turn some $at_verbose
14397 into echo, and don't redirect the output of testing stdout
14400 * lib/autotest/autoconf.texi (testsuite Scripts): Update
14401 the name of the debugging directory and information about
14404 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
14406 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
14409 2003-05-22 Akim Demaille <akim@epita.fr>
14411 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
14412 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
14413 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
14414 * lib/autoconf/status.m4: Fix and adjust copyright notices.
14416 2003-05-22 Akim Demaille <akim@epita.fr>
14418 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
14419 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
14420 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14421 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
14422 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
14423 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
14424 * lib/autoconf/status.m4, lib/autoconf/types.m4,
14425 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
14426 * tests/atspecific.m4, tests/base.at, tests/compile.at,
14427 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
14428 * tests/tools.at, tests/torture.at:
14429 Whitespace clean up.
14430 Suggested by Jim Meyering.
14432 2003-05-22 Akim Demaille <akim@epita.fr>
14434 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
14435 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
14436 Reported by Jim Meyering.
14438 2003-05-22 Akim Demaille <akim@epita.fr>
14440 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
14441 Add AC_HELP_STRING to the obsolete macros section.
14443 Use '@.' for sentences that ended in a capital letter.
14446 2003-05-22 Akim Demaille <akim@epita.fr>
14448 * config/config.guess, config/config.sub, config/elisp-comp,
14449 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
14450 * config/texinfo.tex, doc/standards.texi: Update from masters.
14452 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
14454 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
14457 2003-05-21 Akim Demaille <akim@epita.fr>
14459 * bin/autoupdate.in ($m4): Fix quotation.
14460 Reported by Martin Mokrejs.
14462 2003-05-19 Paul Eggert <eggert@twinsun.com>
14464 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
14465 Remove non-ASCII characters.
14467 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
14469 * tests/semantics.at (AC_SEARCH_LIBS): New test.
14470 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
14471 AC_CHECK_HEADERS_NEW): New tests.
14473 2003-05-17 Akim Demaille <akim@epita.fr>
14475 * lib/autoconf/functions.m4: Use the default includes so that
14476 memcmp be declared before being tested.
14477 Reported by Sander Niemeijer.
14478 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
14479 * doc/autoconf.texi (Default Includes): Document
14480 AC_INCLUDES_DEFAULT.
14482 2003-05-17 Akim Demaille <akim@epita.fr>
14484 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
14485 * doc/autoconf.texi (Obsolete Macros): Adjust.
14486 Reported by Werner LEMBERG and Debian Bug 190886.
14488 2003-05-16 Akim Demaille <akim@epita.fr>
14490 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
14491 user name space clashes.
14492 Reported by Bruno Haible.
14494 2003-05-16 Akim Demaille <akim@epita.fr>
14496 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14497 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
14498 them uniform, and more robust to Perl special characters.
14499 Reported by Martin Mokrejs.
14501 2003-05-14 Akim Demaille <akim@epita.fr>
14503 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
14505 2003-05-14 Akim Demaille <akim@epita.fr>
14507 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
14510 2003-05-12 Akim Demaille <akim@epita.fr>
14512 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
14514 From Matthias Andree.
14516 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
14518 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
14521 2003-05-06 Akim Demaille <akim@epita.fr>
14523 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
14524 longer updates aclocal.m4 if useless, (ii) if a file m4_included
14525 by aclocal.m4 is changed it might require the importing of another
14526 m4 extension file, i.e., aclocal must be run.
14528 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
14529 (&parse_args): Use --force with aclocal if required and supported.
14530 (&autoreconf_current_directory): Use &run_aclocal.
14532 2003-05-06 Akim Demaille <akim@epita.fr>
14534 Lock autom4te's cache.
14536 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
14537 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
14538 argument instead of a file name, so that the request file remains
14539 open during the whole autom4te run.
14540 ($icache_file): New.
14541 (&freeze): Lock the $icache_file.
14543 2003-04-29 Derek Price <derek@ximbiot.com>
14545 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
14546 seperator with m4_append_uniq(). It doesn't work.
14547 (AT_CLEANUP): Add `;' to end of at_help_all.
14548 (AT_INIT): Allow --keywords to be specified more than once. When
14549 grepping $at_help_all for keywords, use the field and keyword
14550 seperators to ensure a complete keyword match. Alter at_prev handling
14551 to support the new --keywords behavior.
14553 2003-04-27 Karl Berry <karl@freefriends.org>
14555 * doc/autoconf.texi: Make the dir entries in the autoconf manual
14556 align better with others. I also made some of the individual
14557 entries on one line, for brevity and to make it easier for me to
14558 sort my dir-example file in the Texinfo distribution :).
14560 2003-04-12 Jim Meyering <jim@meyering.net>
14562 * NEWS: Mention the new macro.
14563 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
14564 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
14565 * tests/c.at: Test AC_C_RESTRICT.
14566 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
14568 2003-04-08 Akim Demaille <akim@epita.fr>
14570 * bin/ifnames.in: Skip C++ comments.
14571 From Jeremy Yallop.
14573 2003-04-08 Akim Demaille <akim@epita.fr>
14575 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
14576 From Ilya Zakharevich.
14578 2003-04-08 Akim Demaille <akim@epita.fr>
14580 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
14581 net/if.h, stdlib.h.
14583 2003-04-01 Derek Price <derek@ximbiot.com>
14585 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
14586 from Akim's checkin of 2003-03-29.
14588 2003-04-01 Derek Price <derek@ximbiot.com>
14590 * tests/torture.at (Configuring subdirectories): Add missing
14591 close-quote for Akim's change from 2003-03-28.
14593 2003-04-01 Akim Demaille <akim@epita.fr>
14595 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
14596 (AC, AT, MS): these.
14597 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
14600 * doc/Makefile.am (CLEANFILES): Adjust.
14601 (TEXI2DVI): Make it --batch.
14603 2003-03-31 Derek Price <derek@ximbiot.com>
14605 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
14606 which removed the main loop.
14607 Thanks to Akim Demaille.
14609 2003-03-29 Akim Demaille <akim@epita.fr>
14611 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
14613 From Ilya Zakharevich.
14615 2003-03-29 Akim Demaille <akim@epita.fr>
14617 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
14618 documentation to read is Autoconf's.
14619 Suggested by Paul Eggert.
14621 2003-03-28 Akim Demaille <akim@epita.fr>
14623 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
14624 reading the section "Present But Cannot Be Compiled" when the
14625 header causes problems.
14627 2003-03-28 Akim Demaille <akim@epita.fr>
14629 * tests/torture.at (Configuring subdirectories): Require aclocal
14630 1.4, otherwise the test fails, as it does support configure.ac.
14631 This fixes the "test 40 failed" bug reports.
14633 2003-03-28 Akim Demaille <akim@epita.fr>
14635 * doc/autoconf.texi (C Compiler): `#line' portability.
14636 From Paul Eggert and Nelson H. F. Beebe.
14638 2003-03-27 Derek Price <derek@ximbiot.com>
14640 * lib/autotest/general.m4: Eliminate main loop and reorganize test
14641 layout in order to allow scripting around test groups.
14643 2003-03-27 Derek Price <derek@ximbiot.com>
14645 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
14646 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
14647 use new diversions in preparation for accepting new arguments and
14648 allowing scripting around tests.
14649 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
14651 2003-03-26 Derek Price <derek@ximbiot.com>
14653 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
14654 obsolete AC_HELP_STRING.
14655 (AC_HELP_STRING): AU_DEFUN to...
14656 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
14657 * tests/m4sh.at (AS_HELP_STRING): New test.
14659 * tests/acgeneral.at: Regenerated.
14661 2003-03-26 Derek Price <derek@ximbiot.com>
14663 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
14664 sense. Verbosify the diversion definitions comment.
14666 2003-03-26 Derek Price <derek@ximbiot.com>
14668 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
14671 2003-03-21 Eric Siegerman <eric_97@pobox.com>
14673 * doc/autoconf.texi (Present But Cannot Be Compiled):
14674 Grammar fixes and minor rewording. (trivial change)
14676 2003-03-06 Paul Eggert <eggert@twinsun.com>
14678 Work around a problem noted by Nelson H. F. Beebe with coreutils
14679 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
14680 2002/05/09) rejects '#line 32768 "configure"' because the line
14682 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
14684 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
14685 * doc/autoconf.texi (Generating Sources): Document this.
14687 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
14689 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
14690 file name for the m4 program, when it has an "exe" file extension.
14691 DJGPP's error messages include the error code in brackets -
14692 remove the error code during normalization.
14694 2003-02-28 Akim Demaille <akim@epita.fr>
14696 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
14698 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
14700 * doc/autoconf.texi (Limitations of Make): Remove the section
14701 about `$<' in inference rules, it was a bogus interpretation of
14702 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
14703 Tru64 make in the "target lookup" section.
14704 (Automake): Automake 1.5+ no longer requires special tools to be
14705 present on the developer's host.
14707 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
14709 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
14710 to a shell that can handle redirection or quoting correctly.
14711 Override SHELL with the shell detected by configure.
14712 Use of $^O suggested by Tim van Holder.
14713 * bin/autom4te.in (BEGIN): Likewise.
14714 * bin/autoreconf.in (BEGIN): Likewise.
14715 * bin/autoscan.in (BEGIN): Likewise.
14716 * bin/autoupdate.in (BEGIN): Likewise.
14717 * bin/ifnames.in (BEGIN): Likewise.
14719 * bin/ifnames.in: Add final newline to help and version messages.
14721 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
14722 to cope with DOS-style absolute paths, when constructing
14725 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
14726 When constructing paths with IFS=:, quote the path. If we're
14727 constructing a DOS-style absolute path, we don't want to split it
14730 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
14733 2003-02-25 Pavel Roskin <proski@gnu.org>
14735 * bin/autoheader.in: Add missing newline when printing
14736 suggestion how change AC_DEFINE call.
14738 2003-02-24 Paul Eggert <eggert@twinsun.com>
14740 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
14741 2002-09-01 patch by replacing "test -n" with "test -z".
14742 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
14743 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
14745 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
14746 to fix a mismatch between example and discussion.
14748 2003-02-24 Kevin Ryde <user42@zip.com.au>
14750 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
14751 format starting with "-".
14753 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
14755 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
14756 is not portable inside Makefile.
14758 2003-02-20 Akim Demaille <akim@epita.fr>
14760 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
14761 compiler says yeah, but preproc says nope, compiler is right.
14762 Conversely, prompt the reader to send a bug report to the
14763 maintainers of the package, not of Autoconf.
14765 2003-02-20 Klee Dienes <kdienes@apple.com>
14767 * bin/autoreconf.in (autoreconf_current_directory): Properly
14768 handle an empty aclocal.m4.
14770 2003-02-20 Akim Demaille <akim@epita.fr>
14772 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
14773 $ac_prefix_program.
14776 2002-12-23 Paul Eggert <eggert@twinsun.com>
14778 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
14779 innocuous variant befor including <limits.h> or <assert.h>. This
14780 works around a bug reported by Albert Chin: HP-UX 11i
14781 (and earlier versions) have a <limits.h> that declares
14782 gettimeofday and many other functions.
14784 2002-12-03 Paul Eggert <eggert@twinsun.com>
14788 * NEWS, configure.ac: Update version.
14790 * doc/fdl.texi: Upgrade to FDL version 1.2.
14792 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
14793 nontrivially in main's body, so that f's external declaration is
14794 not optimized away in AIX. This should fix the bug reported by
14796 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
14798 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
14799 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
14800 defined, to support freestanding compilers. This should fix the
14801 bug reported by Momchil Velkov in
14802 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
14804 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
14805 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
14806 obsolete AC_CHECK_TYPE. The missing empty arg was reported
14807 by Simon Josefsson in
14808 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
14810 * Makefile.maint (www-gnu): New macro.
14811 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
14812 the location has moved.
14814 2002-12-02 Martin Frydl <martin@systinet.com>
14816 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
14817 \(.*\) match is too long and there is something more to be checked.
14818 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
14820 2002-11-15 Akim Demaille <akim@epita.fr>
14824 * config/install-sh: chmod +x.
14826 * config/move-if-change: Indenting changes.
14827 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
14828 * configure.ac (AM_INIT_AUTOMAKE): here.
14831 2002-11-14 Akim Demaille <akim@epita.fr>
14835 * config/config.guess, config/config.sub, config/install-sh:
14836 Update from masters.
14838 2002-11-14 Akim Demaille <akim@epita.fr>
14840 * Makefile.maint: Sync with Bison, i.e.:
14841 (po-check): Scan .l and .y files instead of the
14842 .c and the .h files that they generate. This fixes the bug
14843 reported by Tim Van Holder in:
14844 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
14845 Look for N_ as well as for _. Try to avoid matching #define for
14849 2002-11-14 Akim Demaille <akim@epita.fr>
14851 * doc/autoconf.texi (C Compiler): Compiling several files at once.
14852 From Paul Eggert and Albert Chin-A-Young.
14854 2002-11-14 Akim Demaille <akim@epita.fr>
14856 * doc/autoconf.texi (C Compiler): Solitary backslashes.
14857 From Paul Eggert and Albert Chin-A-Young.
14859 2002-11-14 Kevin Ryde <user42@zip.com.au>
14861 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
14862 than assigning in main, to avoid HP cc +O3 optimizing it away.
14864 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
14866 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
14867 option. Process --recheck after parsing all options. Pass -q
14868 option to configure on --recheck.
14869 (AC_OUTPUT): Pass -q from configure to config.status.
14870 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
14871 arguments to record.
14872 * doc/autoconf.texi (config.status Invocation): Document
14873 config.status -q option.
14875 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
14877 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
14878 Makefile.in if Makefile.am exists.
14879 (output): Strip `.am' from Makefiles. Don't
14880 output AC_CONFIG_FILES if no Makefiles were found.
14882 2002-11-07 Akim Demaille <akim@epita.fr>
14884 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
14885 (local_updates): New.
14886 * Makefile.maint: Update, from CVS Bison.
14887 (local_updates): New.
14889 2002-11-06 Akim Demaille <akim@epita.fr>
14891 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
14892 declaration in extern "C" too.
14893 Reported by Roberto Bagnara.
14895 2002-11-06 Akim Demaille <akim@epita.fr>
14897 * tests/torture.at (Configuring subdirectories): Don't use grep
14899 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
14900 Reported by Ezra Peisach.
14902 2002-11-05 Akim Demaille <akim@epita.fr>
14904 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
14906 We _have_ to stop using the old compatibility scheme that tried to
14907 avoid useless backslashes because Libtool 1.4.3 contains a
14908 AC_DEFINE([error_t], [int],
14909 [Define to a type to use for \`error_t' if it is not
14910 otherwise available.])
14911 We _have_ to quote the single quote and backslashes with \. The
14912 old compatibility scheme saw that ` was backslashed, and therefore
14913 did not quote the single quote. Hence before this patch, Autoconf
14914 was not compatible with Libtool.
14916 2002-11-04 Paul Eggert <eggert@twinsun.com>
14918 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
14919 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
14920 LC_NAME, LC_PAPER, LC_TELEPHONE.
14921 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
14923 2002-11-04 Akim Demaille <akim@epita.fr>
14927 * Makefile.maint (update, cvs-update, po-update, do-po-update):
14929 * config/texinfo.tex: Update.
14931 2002-11-03 Akim Demaille <akim@epita.fr>
14933 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
14935 (&autoreconf): here.
14936 ($help, $make, &parse_args, &autoreconf_current_directory):
14938 * doc/autoconf.texi (autoreconf Invocation): Adjust.
14940 2002-10-31 Bruno Haible <bruno@clisp.org>
14942 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
14943 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
14944 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
14945 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
14946 to ac_cv_func_realloc_0_nonnull.
14947 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
14949 2002-10-31 Akim Demaille <akim@epita.fr>
14951 The test suite was no longer checking for trailing envvars and files.
14953 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
14954 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
14956 2002-10-31 Akim Demaille <akim@epita.fr>
14958 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
14959 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
14960 Make variable, not a shell variable.
14961 Suggested by Bruno Haible.
14963 2002-10-31 Akim Demaille <akim@epita.fr>
14965 * bin/autom4te.in (load_configuration): Reject #args out of any
14968 2002-10-31 Akim Demaille <akim@epita.fr>
14970 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
14971 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
14972 (_AC_RUN_IFELSE): Use it.
14973 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
14974 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
14975 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
14978 2002-10-30 Akim Demaille <akim@epita.fr>
14980 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
14981 * doc/autoconf.texi (autom4te Invocation): Adjust.
14982 Suggested by Tim van Holder.
14984 2002-10-29 Paul Eggert <eggert@twinsun.com>
14986 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
14987 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
14988 Problem reported by Bruno Haible.
14990 2002-10-29 Akim Demaille <akim@epita.fr>
14992 * doc/autoconf.texi (Header Templates): Put also in words what the
14993 pictures says to assist free style readers.
14994 (Customizing autom4te): s/--cache=/--cache /.
14996 2002-10-29 Akim Demaille <akim@epita.fr>
14998 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
15000 sparc_address_test returns void.
15001 Use it with an argument, as prototyped.
15004 2002-10-29 Akim Demaille <akim@epita.fr>
15006 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
15007 configure.in, not configure.ac.
15008 Reported by Bruno Haible.
15010 2002-10-29 Akim Demaille <akim@epita.fr>
15012 * tests/torture.at (Deep Package): New test.
15013 (Configuring subdirectories): Don't use a testSubDir as Autotest
15014 now does it itself.
15016 2002-10-29 Akim Demaille <akim@epita.fr>
15018 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
15019 * doc/autoconf.texi (Invoking autom4te): Rename as...
15020 (autom4te Invocation): this, for consistency with the other nodes.
15022 2002-10-29 Akim Demaille <akim@epita.fr>
15024 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
15025 Reported by Ralf Corsepius.
15027 2002-10-29 Akim Demaille <akim@epita.fr>
15029 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
15030 characters is a back as an `obsolete' warning now.
15031 Reported by Ralf Corsepius.
15033 2002-10-28 Akim Demaille <akim@epita.fr>
15035 * configure.ac: Bump to 2.54c.
15037 2002-10-28 Akim Demaille <akim@epita.fr>
15041 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
15043 2002-10-28 Akim Demaille <akim@epita.fr>
15045 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
15046 m4 executable names, and different GNU M4 version.
15047 Reported by Ezra Peisach and Paul Jarc.
15049 2002-10-27 Akim Demaille <akim@epita.fr>
15051 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
15054 2002-10-27 Akim Demaille <akim@epita.fr>
15056 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
15057 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
15058 Die when a simple Fortran program cannot be compiled.
15059 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
15060 Issue a warning if no function is given.
15062 2002-10-27 Akim Demaille <akim@epita.fr>
15064 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
15065 Move the documentation of AC_TRY_RUN to...
15066 (Obsolete Macros): here.
15067 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
15068 (autoconf Invocation): Remove the duplicates with `invoking
15070 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
15071 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
15073 2002-10-27 Akim Demaille <akim@epita.fr>
15075 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
15076 and AC_LANG_FUNC_LINK_TRY.
15077 (Examining Libraries): Rename as...
15078 (Running the Linker): this.
15079 Document AC_LINK_IFELSE.
15080 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
15081 (Obsolete Macros): here.
15082 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
15083 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
15084 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
15085 * lib/autoconf/headers.m4 (AC_USG): Likewise.
15087 2002-10-27 Akim Demaille <akim@epita.fr>
15089 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
15091 More `check config.log' messages.
15093 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
15094 * doc/autoconf.texi (Printing Messages): Document it.
15095 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
15097 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
15098 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
15099 (_AC_COMPILER_OBJEXT): Likewise.
15100 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
15101 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
15103 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
15106 Deprecate macros with unusual interfaces.
15108 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
15109 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
15111 Document the new ones, and proper style.
15113 * doc/autoconf.texi (Generating Sources): New.
15114 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
15115 (Examining Declarations): Rename as...
15116 (Running the Preprocessor): this.
15117 Document AC_PREPROC_IFELSE.
15118 (Examining Syntax): Rename as...
15119 (Running the Compiler): this.
15120 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
15121 (Obsolete Macros): Move the definition of AC_TRY_CPP and
15122 AC_TRY_COMPILE here.
15124 2002-10-27 Akim Demaille <akim@epita.fr>
15126 Move sections around.
15128 * doc/autoconf.texi (Customizing autom4te): Remove a lost
15130 Reported by Burno Haible.
15131 (Language Choice): Now the first section of...
15132 (Writing Tests): this section.
15133 Make the introduction less C-centric.
15134 (Guidelines, Test Functions): Move to...
15135 (Writing Test Programs): this new section.
15136 (Test Programs): Merge into...
15139 2002-10-27 Akim Demaille <akim@epita.fr>
15141 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
15142 autom4te.in that resulted in the need for two `make' runs.
15144 2002-10-27 Akim Demaille <akim@epita.fr>
15146 * configure.ac: Bump to 2.54b.
15148 2002-10-25 Akim Demaille <akim@epita.fr>
15152 * Makefile.maint: Update from the Coreutils.
15153 (AMTAR): Remove, obsolete.
15154 (automake_repo): Update to redhat.com.
15156 Adjust to the fact that ansi2knr is now hosted by Automake.
15157 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
15158 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
15159 Update from masters.
15160 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
15161 autoscan.pre is not to be installed, and autoscan.list is not to
15163 (CLEANFILES): Add autoscan.list.
15164 (autoscan.list): Disable the cache.
15165 * bin/Makefile.am: Include freeze.mk.
15167 2002-10-25 Akim Demaille <akim@epita.fr>
15169 * bin/autom4te.in (&load_configuration): Take the file as
15171 (&parse_args): Handle -C, --cache.
15173 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
15174 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
15175 * doc/autoconf.texi (Invoking autom4te): Document --cache.
15176 Now a subsection of...
15177 (Using autom4te): This new section.
15178 (Customizing autom4te): New.
15179 (autom4te.cache): Adjust.
15181 2002-10-25 Akim Demaille <akim@epita.fr>
15183 * doc/autoconf.texi (Generic Headers): More information on how to
15184 use AC_CHECK_HEADERS.
15186 2002-10-25 Akim Demaille <akim@epita.fr>
15188 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
15191 2002-10-25 Akim Demaille <akim@epita.fr>
15193 * bin/autoscan.in (output): Output AC_PREREQ.
15194 (%needed_macros): Add AC_PREREQ so that configure.ac without one
15197 2002-10-23 Akim Demaille <akim@epita.fr>
15199 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
15202 2002-10-23 Akim Demaille <akim@epita.fr>
15204 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
15205 Reported by Peter Eisentraut.
15207 2002-10-23 Akim Demaille <akim@epita.fr>
15209 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
15212 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
15213 Eggert's recommandations.
15215 2002-10-22 Akim Demaille <akim@epita.fr>
15217 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
15218 Bison, by Paul Eggert.
15219 * doc/autoconf.texi (Particular Headers): Document it.
15221 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
15223 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
15224 `$ac_configure_args'.
15226 2002-10-22 Akim Demaille <akim@epita.fr>
15228 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
15229 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
15232 2002-10-22 Akim Demaille <akim@epita.fr>
15234 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
15236 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
15237 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
15238 (_AC_CHECK_HEADER_NEW): Rename as...
15239 (AC_CHECK_HEADER): this.
15241 2002-10-22 Akim Demaille <akim@epita.fr>
15243 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
15244 words about HP-UX cmp: it was actually a user-written cmp.
15246 2002-10-22 Akim Demaille <akim@epita.fr>
15248 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
15249 are a few warnings.
15250 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
15251 Quote for Perl '' strings, not "".
15252 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
15255 2002-10-22 Akim Demaille <akim@epita.fr>
15257 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
15258 characters is a syntax warning now.
15259 (_AS_QUOTE): Accept $2 as list of characters to quote.
15260 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
15261 Quote for Perl, not sh.
15262 * bin/autoheader.in: When $debug, report the file which is
15264 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
15265 `@', to tickle Perl's lists.
15266 Reported by Carlos Velasco.
15268 2002-10-18 Akim Demaille <akim@epita.fr>
15270 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
15271 missing included files _are_ errors.
15272 Thanks to Alexandre Duret-Lutz.
15273 * tests/tools.at (autom4te cache): Adjust.
15274 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
15275 (AT_CHECK_M4SUGAR): Use it.
15276 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
15278 * tests/tools.at (autom4te): Now it does exit 1.
15280 2002-10-17 Akim Demaille <akim@epita.fr>
15282 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
15283 Fixes the `AC_ARG_VAR' test failures.
15284 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
15285 * lib/freeze.mk (check-forbidden-patterns): New.
15286 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
15287 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
15288 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
15290 Reported months ago by H. Merijn Brand.
15292 2002-10-17 Akim Demaille <akim@epita.fr>
15294 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
15296 2002-10-16 Paul Eggert <eggert@twinsun.com>
15298 * Makefile.maint (wget_files): Remove ansi2knr.c.
15299 (ansi2knr.c-url_prefix): Remove.
15301 2002-10-16 Akim Demaille <akim@epita.fr>
15303 Because of caching, some files that no longer exist and are no
15304 longer required can still cause errors.
15305 Reported by Alexandre Duret-Lutz.
15307 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
15308 to frozen files in @ARGV, as @ARGV must remain being a list of
15309 files. Rather, at M4 call sites, use this...
15310 (&files_to_options): New function.
15311 (&freeze): Use &error.
15312 (&up_to_date): If a file that was included according to the cache
15313 is no longer there, then the output is out dated.
15314 (&main): Don't even check whether a file is up to date is anyway
15316 * tests/tools.at (autom4te cache): New.
15318 2002-10-16 Akim Demaille <akim@epita.fr>
15320 * bin/autoconf.as: Kill dead options.
15321 * bin/autoupdate.in (&parse_args): Kill old options.
15322 * bin/autoreconf.in (&parse_args): Remove dead options.
15324 (&autoreconf): Report the directories we enter *and leave*, so
15325 that error messages can be easily located, and use GNU Make
15326 format, so that Emacs' compile mode understands us.
15327 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
15328 if some file was changed instead of `print'.
15329 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
15330 (&parse_args): Remove the dead options.
15331 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
15332 autoheader's quiet mode.
15333 (AT_CHECK_AUTOUPDATE): Likewise.
15334 * tests/tools.at (autoupdate): Adjust.
15335 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
15337 2002-10-11 Akim Demaille <akim@epita.fr>
15339 No longer use CPP to check for the existing of headers: use CC to
15340 check for compilability.
15342 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
15343 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
15344 (_AC_CHECK_HEADER_NEW): Rename as...
15345 (AC_CHECK_HEADER): this.
15347 * lib/autotest/general.m4 (AT_INIT): Include the failed test
15348 numbers in the Subject suggestion.
15350 2002-10-11 Akim Demaille <akim@epita.fr>
15352 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
15353 Suggest using AC_CHECK_DECLS instead.
15355 2002-10-11 Akim Demaille <akim@epita.fr>
15357 * tests/torture.at (AC_ARG_VAR): Have configure report the value
15360 2002-10-11 Akim Demaille <akim@epita.fr>
15362 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
15363 file name to enable parallel executions.
15364 From Sam Varshavchik.
15366 2002-10-08 Akim Demaille <akim@epita.fr>
15368 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
15369 aclocal invocation, as Gettext macros might not be visible to
15371 Instead of blindly running autopoint, scan configure.ac (not the
15372 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
15373 Reported by Paul D. Smith.
15375 2002-10-08 Paul Eggert <eggert@twinsun.com>
15377 Work around problems found when POSIXLY_CORRECT=1 is set.
15378 None of this seems to have anything to do with POSIX, really,
15379 but it's how Perl getopt works.
15380 * bin/autom4te.in (parse_args): Configure GetOpt with
15382 * doc/autoconf.texi (Invoking autom4te):
15383 --warning -> --warnings.
15384 * lib/autom4te.in: --warning -> --warnings.
15386 2002-09-28 Akim Demaille <akim@epita.fr>
15388 * doc/autoconf.texi (autom4te.cache): New section.
15390 2002-09-28 Akim Demaille <akim@epita.fr>
15392 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
15393 (Automake-preselections): Update.
15394 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
15396 2002-09-28 Akim Demaille <akim@epita.fr>
15398 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
15399 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
15400 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
15401 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
15403 2002-09-28 Akim Demaille <akim@epita.fr>
15405 * tests/torture.at (Configuring subdirectories): Be robust to
15406 users who use config.site to require for a cache: in this case,
15407 the two last configure runs, using two different sets of
15408 arguments, trigger a legitimate error.
15410 2002-09-28 Akim Demaille <akim@epita.fr>
15412 * tests/m4sh.at (Functions Support, Functions and return Support):
15415 2002-09-28 Akim Demaille <akim@epita.fr>
15417 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
15418 autoheader are Perl programs.
15419 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
15420 (autom4te): Specify that the sources are in the $srcdir.
15421 * doc/autoconf.texi (Installation Directory Variables): Adjust.
15423 2002-09-28 Akim Demaille <akim@epita.fr>
15425 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
15426 (tm_zone): Move their rules to...
15427 * lib/autoconf/types.m4: here, using AN_ macros.
15428 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
15429 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
15430 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
15431 * lib/autoconf/programs.m4: here.
15432 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
15433 (ETAGS_FOR_AUTOCONF): New.
15436 2002-09-28 Akim Demaille <akim@epita.fr>
15438 * lib/autoconf/autoscan.m4: New file.
15439 * lib/autoconf/autoconf.m4: Include it.
15440 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
15441 that were listed in the original autoscan.list.
15442 * lib/autoconf/headers.m4: Similarly with headers.
15443 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
15444 (.m4.m4f): Don't pass --prepend-include, since that's done by
15445 tests/autom4te itself.
15446 * lib/autoscan/Makefile.am: Include freeze.mk.
15447 (autoscan.list): New target --this file is no longer a source.
15448 (autoscan.pre): New file.
15450 2002-09-28 Akim Demaille <akim@epita.fr>
15452 * bin/autoscan.in (@kinds): Make them singular.
15454 (&init_tables): When --debug, report the list of rules to ease
15455 tracking changes in autoscan.list.
15456 * lib/autoscan/autoscan.list (function): Strip comments, sort.
15458 2002-09-28 Akim Demaille <akim@epita.fr>
15460 * lib/autoscan/functions, lib/autoscan/headers,
15461 * lib/autoscan/identifiers, lib/autoscan/makevars,
15462 * lib/autoscan/programs: Merge into...
15463 * lib/autoscan/autoscan.list: this.
15464 * bin/autoscan.in (&init_tables): Adjust.
15466 2002-09-28 Akim Demaille <akim@epita.fr>
15468 * lib/autoscan/functions, lib/autoscan/headers,
15469 * lib/autoscan/identifiers, lib/autoscan/makevars,
15470 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
15471 `functions' line is now prefixed with `function:'.
15472 * bin/autoscan.in (&init_tables): Adjust.
15474 2002-09-28 Akim Demaille <akim@epita.fr>
15476 From now on, autoscan files must always map a macro name to a
15477 word: there is no `default' macro for autoscan.
15479 * bin/autoscan.in (&init_tables): Reject entries with no macro at
15481 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
15484 2002-09-28 Akim Demaille <akim@epita.fr>
15486 * bin/autoscan.in (%c_keywords): Remove.
15487 (&used): Keep only track of the words we might be interested in.
15488 (&output_kind): It is no longer needed to look for non active
15491 2002-09-27 Akim Demaille <akim@epita.fr>
15493 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
15494 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
15495 * lib/autoscan/functions: Adjust.
15496 * doc/autoconf.texi (Particular Functions): Adjust.
15498 2002-09-27 Akim Demaille <akim@epita.fr>
15500 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
15502 Thanks to Bill Moseley and Paul Eggert.
15503 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
15504 the tmpdir must be created.
15505 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
15506 dir be in the build tree, instead of $TMPDIR.
15508 2002-09-27 Akim Demaille <akim@epita.fr>
15510 * bin/autoscan.in: Improve the comments.
15511 (&parse_args): Drop obsolete undocumented options.
15512 (&output_kind): Output warnings.
15513 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
15514 (getwd): Trigger a warning.
15516 2002-09-26 Akim Demaille <akim@epita.fr>
15518 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
15519 Reported by Ralf Corsepius.
15520 * doc/autoconf.texi (autoreconf Invocation): Likewise.
15522 2002-09-26 Akim Demaille <akim@epita.fr>
15524 Single suffix rules and seperated dependencies are not portable.
15526 * doc/autoconf.texi (Installation Directory Variables): Update.
15527 (Limitations of Make): Some about `Single Suffix Rules and
15528 Separated Dependencies'.
15529 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
15530 (ifnames, autoscan, autom4te): Un-factor into several rules.
15532 2002-09-25 Paul Eggert <eggert@twinsun.com>
15534 * BUGS (Interoperability bugs): New section. Mention libtool
15535 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
15537 2002-09-24 Paul Eggert <eggert@twinsun.com>
15539 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
15540 make handles suffix-rules differently from GNU make.
15542 * bin/Makefile.am (SUFFIXES, .in): Remove.
15543 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
15544 Move the body of the old .in rule here.
15546 2002-09-16 Akim Demaille <akim@epita.fr>
15548 i960 compilers create `b.out' files by default.
15549 Reported by Ralf Corsepius.
15551 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
15552 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
15554 2002-09-13 Paul Eggert <eggert@twinsun.com>
15556 * doc/autoconf.texi (Particular Headers): Remove obsolete
15557 reference to `struct timezone' in the description of
15560 2002-09-13 Akim Demaille <akim@epita.fr>
15564 * config/config.sub, config/config.guess: Update.
15565 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
15566 * Makefile.am: Adjust.
15568 2002-09-13 Akim Demaille <akim@epita.fr>
15570 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
15571 reading config.log when the compiler is rejected.
15572 Suggested by Guido Draheim.
15574 2002-09-13 Akim Demaille <akim@epita.fr>
15576 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
15577 (chdir_init) might hang when stat'ing mounted directories.
15578 Reported by Vance Shipley.
15580 2002-09-12 Akim Demaille <akim@epita.fr>
15582 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
15585 2002-09-12 Akim Demaille <akim@epita.fr>
15587 * doc/autoconf.texi (Defining Symbols): Present two different
15588 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
15589 difference between 1 argument calls, and 2-3 argument calls.
15591 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
15593 * doc/autoconf.texi: Review grammar and punctuation.
15595 2002-09-11 Paul Eggert <eggert@twinsun.com>
15597 * doc/autoconf.texi: Fix minor formatting, spelling, and
15599 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
15600 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
15603 2002-09-11 Akim Demaille <akim@epita.fr>
15605 * doc/autoconf.texi (Questions): Rename as...
15607 (Defining Directories): New.
15609 2002-09-09 Akim Demaille <akim@epita.fr>
15611 * doc/autoconf.texi (Making testsuite Scripts): Update.
15612 Suggested by Nishio Futoshi.
15614 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
15616 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
15617 plain `@' is wanted.
15619 2002-09-09 Akim Demaille <akim@epita.fr>
15621 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
15622 `duplicates', since the algorithm was too naive and could keep
15623 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
15624 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
15625 Reported by Ralf Corsepius.
15626 * tests/torture.at (Configuring subdirectories): Exercise these
15629 2002-09-09 Akim Demaille <akim@epita.fr>
15631 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
15632 looking for a replacement file.
15633 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
15634 directory is relative.
15635 * doc/autoconf.texi (Generic Functions): Clarify the replacement
15636 directory definition.
15637 Reported by Andreas Schwab and Jim Meyering.
15639 2002-09-06 Akim Demaille <akim@epita.fr>
15641 * doc/autoconf.texi (Setting Output Variables): Clarify what
15642 precious variables are.
15643 Suggested by Pontus Skoeld.
15645 2002-09-05 Akim Demaille <akim@epita.fr>
15647 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
15648 (ifnames, autoscan, autom4te): Since we don't only depend on
15649 configure.ac variables (such as VERSION etc.), but also on prefix
15650 and so forth, depend on Makefile, not configure.ac.
15651 Reported by Alexandre Duret-Lutz.
15652 * doc/autoconf.texi (Installation Directory Variables): Adjust.
15654 2002-09-05 Kevin Ryde <user42@zip.com.au>
15656 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
15657 doesn't seem to be confined to ia64, just say "some versions".
15659 2002-09-04 Akim Demaille <akim@epita.fr>
15661 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
15663 * Makefile.am (maintainer-clean-local): Remove.
15664 (MAINTAINERCLEANFILES): Remove COPYING.
15666 2002-09-03 Paul Eggert <eggert@twinsun.com>
15668 * doc/autoconf.texi (Configuration Commands): Remove obsolete
15669 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
15672 2002-09-03 Akim Demaille <akim@epita.fr>
15674 * configure.ac: Bump to 2.53d.
15675 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
15676 as of today, on Automake's team suggestion.
15678 2002-09-03 Akim Demaille <akim@epita.fr>
15682 2002-09-02 Akim Demaille <akim@epita.fr>
15684 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
15686 * configure.ac: Disable SITE_MACRO_DIR.
15688 2002-09-02 Jim Meyering <meyering@lucent.com>
15690 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
15691 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
15692 Also, tweak grammar: s/make sure to/be sure to/.
15694 2002-09-02 Paul Eggert <eggert@twinsun.com>
15696 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
15697 directory names are generally preferable to physical names.
15699 2002-09-02 Akim Demaille <akim@epita.fr>
15701 * lib/Autom4te/General.pm (&update_file): s/die/error/.
15702 Reported by Raja R. Harinath.
15703 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
15704 * bin/autoupdate.in: Use error instead of die.
15706 2002-09-01 Paul Eggert <eggert@twinsun.com>
15708 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
15709 ordinary shell concatenation rather than echo+tr+sed command that
15710 runs afoul of a long-line-related sed bug in Solaris 8.
15712 * bin/autoheader.in (parse_args): --warning -> --warnings.
15714 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
15715 stdout, as traditional "ls" does.
15716 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
15717 _AC_COMPILER_EXEEXT_O): Likewise.
15718 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
15720 * bin/autoconf.as: Add --prepend-include option. This patch was
15721 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
15722 but bin/autoconf.in is generated automatically from bin/autoconf.as.
15724 * bin/autoconf.in, configure: Regenerate.
15726 * doc/autoconf.texi (Special Shell Variables): Mention
15727 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
15729 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
15730 MAILPATH and set PS1, PS2, PS4 to default values, to work
15731 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
15732 For LC_ALL etc, first try to set to "C" as POSIX requires and as
15733 the Autoconf documentation specifies; fall back to "unset" only if
15734 this fails. Use a shell for-loop for this rather than an m4 loop,
15735 to shorten the output script.
15737 2002-08-30 Paul Eggert <eggert@twinsun.com>
15739 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
15740 1003.1-2001's requirements for CDPATH. Give a simpler workaround
15741 for the CDPATH problem. Document PWD.
15742 (Limitations of Builtins): Document the problem that "cd $foo" and
15743 "ls $foo" may refer to different directories in shells conforming
15744 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
15745 example, since the old example is now out of date.
15747 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
15748 FOO" and "ls FOO" talk about different directories; this catches
15749 problems when POSIX 1003.1-2001 "cd" fails due to symlink
15752 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
15753 of rolling our own unset.
15754 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
15755 in practice we needn't worry about CDPATH if unset doesn't work.
15757 * Makefile.in, aclocal.m4, bin/Makefile.in,
15758 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
15759 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
15760 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
15761 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
15762 tests/Makefile.in: Regenerate with Automake 1.6.3.
15764 * config/config.guess, config/config.sub, config/mkinstalldirs:
15767 * configure: Regenerate with self.
15769 2002-08-30 Kevin Ryde <user42@zip.com.au>
15771 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
15774 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15776 * bin/autom4te.in (Request::load): Correctly test for "do" read
15779 2002-08-29 Akim Demaille <akim@epita.fr>
15781 * lib/Autom4te/General.pm (&xqx): New.
15782 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
15783 hand, which is not portable.
15785 * bin/autom4te.in: Use them.
15786 Use &error instead of die.
15787 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
15790 2002-08-17 Paul Eggert <eggert@twinsun.com>
15792 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
15793 default list of compilers to try, since it was long ago superseded
15794 by the ksh fc builtin. Suggested by Steven G. Johnson.
15796 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
15798 * doc/autoconf.texi (Invoking autom4te): End the option table,
15799 fixing a bug introduced by the previous patch.
15800 (Limitations of Make): Add a 'target lookup' subentry in the
15801 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
15803 2002-07-29 Mark D. Roth <roth@feep.net>
15805 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
15806 options and use $AUTOM4TE_PATH.
15807 * doc/autoconf.texi: Remove documentation of autom4te
15808 --include-envvar and --site-macro-subdir options and document
15809 use of $AUTOM4TE_PATH.
15810 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
15811 arguments from each language section.
15813 2002-07-29 Paul Eggert <eggert@twinsun.com>
15815 * doc/install.texi: Include copyright symbol in copyright notice.
15817 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
15819 (AM_MAKEINFOFLAGS): New macro.
15820 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
15821 * Makefile.am (INSTALL): Use the new macros.
15822 Use -o rather than --output, since "missing" does not grok --output.
15824 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
15826 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
15827 comments do not always work. Never trust the exit status of
15830 2002-07-24 Kevin Ryde <user42@zip.com.au>
15832 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
15833 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
15835 2002-07-23 Paul Eggert <eggert@twinsun.com>
15837 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
15838 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
15839 apparently treats PATH="nonexistent" as if it contained ".".
15840 Bug reported by Stefan `Sec' Zehl.
15842 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
15844 * doc/autoconf.texi (Limitations of Make): Mention the special
15845 handling of the obj/ directory by BSD make.
15847 2002-07-20 Kevin Ryde <user42@zip.com.au>
15849 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
15852 2002-07-19 Akim Demaille <akim@epita.fr>
15854 * doc/autoconf.texi (Function Portability): `exit'.
15855 (Programming in M4sh): Ethymology of M4sh.
15857 2002-07-19 Akim Demaille <akim@epita.fr>
15859 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
15861 2002-07-18 Akim Demaille <akim@epita.fr>
15865 2002-07-18 Akim Demaille <akim@epita.fr>
15867 * config/config.guess, config/config.sub: Update.
15869 2002-07-18 Akim Demaille <akim@epita.fr>
15871 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
15874 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
15875 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
15876 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
15878 2002-07-18 Akim Demaille <akim@epita.fr>,
15879 Alexandre Duret-Lutz <duret_g@epita.fr>
15881 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
15882 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
15884 2002-07-17 Russ Allbery <rra@stanford.edu>
15886 * doc/autoconf.texi (Initializing configure): Clarify the
15887 description of the tarname default.
15889 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
15891 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
15892 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
15893 latter was not run.
15895 2002-07-17 Akim Demaille <akim@epita.fr>
15897 * lib/Autom4te/General.pm (find_file): Browse the directories in
15898 the order they are given.
15900 2002-07-17 Akim Demaille <akim@epita.fr>
15902 * tests/wrapsh.as, tests/wrappl.as: Merge into...
15903 * tests/wrapper.as: this.
15904 * tests/Makefile.am, configure.ac: Adjust.
15906 2002-07-17 Mark D. Roth <roth@feep.net>
15908 * configure.ac: Add --enable-site-macro-dir option.
15909 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
15910 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
15911 --site-macro-subdir options.
15912 * bin/autoconf.in: Add --prepend-include option.
15913 * bin/autoheader.in: Add --prepend-include option.
15914 * bin/autoreconf.in: Add --prepend-include option.
15915 * bin/autoscan.in: Add --prepend-include option.
15916 * bin/autoupdate.in: Add --prepend-include option.
15917 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
15918 macro directory, remove note that include path directories are
15919 used in reverse order, and document --prepend-include option.
15920 * lib/autom4te.in: Use --prepend-include instead of --include.
15921 * tests/wrapsh.in: Use --prepend-include instead of --include.
15923 2002-07-17 Akim Demaille <akim@epita.fr>
15925 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
15927 * doc/autoconf.texi (Initializing configure): Adjust.
15929 2002-07-17 Akim Demaille <akim@epita.fr>
15931 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
15932 (_AC_FUNC_MALLOC): New.
15933 (AC_FUNC_MALLOC): Use the latter.
15934 Define HAVE_MALLOC to 0 if broken.
15935 * doc/autoconf.texi (Particular Functions): Adjust.
15937 2002-07-16 Akim Demaille <akim@epita.fr>
15939 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
15940 * doc/autoconf.texi (C Compiler): Adjust.
15942 2002-07-09 Akim Demaille <akim@epita.fr>
15944 * doc/autoconf.texi: Properly set the ``header'' part.
15946 2002-07-09 Akim Demaille <akim@epita.fr>
15948 * doc/autoconf.texi (Systemology): Some about Darwin.
15950 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
15952 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15953 Don't use AC_REQUIRE in AU_DEFUN.
15955 2002-07-09 Art Haas <ahaas@neosoft.com>
15957 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
15959 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
15961 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15962 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
15963 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
15964 so that Emacs setups GNU style for perl-mode and cperl-mode.
15966 2002-06-27 Paul Eggert <eggert@twinsun.com>
15968 * config/install-sh: Quote $src. Prefer || to test's -o option,
15969 as per "Limitations of Builtins".
15970 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
15971 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
15973 * tests/mktests.sh: Use grep instead of fgrep, as per
15974 "Limitations of Builtins".
15976 2002-06-15 Paul Eggert <eggert@twinsun.com>
15978 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
15979 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
15980 so that we consistently test the just-built programs.
15981 * tests/wrappl.as: Likewise.
15983 2002-06-12 Paul Eggert <eggert@twinsun.com>
15985 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
15986 name, so that symlinks to 'autoconf' work properly. Bug reported
15988 * bin/autoheader.in (AUTOM4TE): Likewise.
15989 * bin/autoreconf.in (autoconf, autoheader): Likewise.
15990 * bin/autoscan.in (autom4te): Likewise.
15991 * bin/autoupdate.in (autom4te): Likewise.
15993 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
15994 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
15997 2002-06-11 Andreas Schwab <schwab@suse.de>
15999 * doc/autoconf.texi: Add more dir entries.
16001 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
16003 * bin/autom4te.in ($cache): Don't define using `$me', the name
16004 of the cache should not depend on the name under which autom4te
16007 2002-06-07 Akim Demaille <akim@epita.fr>
16009 * tests/tools.at (autoconf: forbidden tokens, basic)
16010 (autoconf: forbidden tokens, exceptions): Adjust to the change of
16011 words in autom4te.in.
16013 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
16015 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
16016 _AC_LANG_PROGRAM_C_F77_HOOKS.
16018 2002-06-07 Akim Demaille <akim@epita.fr>
16020 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
16022 (AC_REPLACE_FNMATCH): this.
16023 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
16024 AC_FUNC_FNMATCH_GNU.
16026 2002-06-07 Akim Demaille <akim@epita.fr>
16028 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
16029 Rosetta Stone for Unix.
16031 2002-06-07 Akim Demaille <akim@epita.fr>
16033 * bin/autom4te.in (warn_forbidden): When rejecting a token,
16034 suggest m4_pattern_allow.
16035 Suggested by Adam J. Richter.
16037 2002-06-07 Akim Demaille <akim@epita.fr>
16039 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
16040 ac_config_libobj_dir.
16041 (AC_CONFIG_LIBOBJ_DIR): New.
16042 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
16043 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
16044 Use ac_config_libobj_dir to find the replacement files.
16045 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
16046 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
16047 (AC_REPLACE_FNMATCH_GNU): these.
16048 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
16049 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
16050 * tests/mktests.sh (ac_exclude_list): Don't check
16051 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
16053 2002-06-06 Paul Eggert <eggert@twinsun.com>
16055 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
16056 if ln doesn't work.
16058 * doc/autoconf.texi (Configuration Links): Likewise.
16059 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
16061 2002-06-05 Paul Eggert <eggert@twinsun.com>
16063 * config/config.guess, config/config.sub, config/texinfo.tex:
16064 Update from masters.
16066 2002-05-29 Paul Eggert <eggert@twinsun.com>
16068 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
16069 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
16070 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
16072 * lib/autoconf/Makefile.am (check-local): Likewise.
16073 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
16074 * lib/autoconf/types.m4 (commentary only): Likewise.
16075 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
16076 * lib/autotest/Makefile.am (check-local): Likewise.
16077 * lib/m4sugar/Makefile.am (check-local): Likewise.
16078 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
16079 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
16081 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
16082 * doc/autoconf.texi (Particular Programs): Document them.
16083 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
16086 2002-05-27 Paul Eggert <eggert@twinsun.com>
16088 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
16089 * NEWS, doc/autoconf.texi (Particular Types): Document it.
16090 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
16091 instead of AC_MBSTATE_T, which never existed.
16093 2002-05-23 Akim Demaille <akim@epita.fr>
16095 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
16096 version of Autoconf that is discussed.
16098 2002-05-22 Paul Eggert <eggert@twinsun.com>
16100 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
16101 from the default list of compilers to try. Suggested by
16103 * NEWS: Document the above.
16104 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
16106 2002-05-17 Paul Eggert <eggert@twinsun.com>
16108 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
16109 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
16110 This improves on an earlier suggestion by H. Peter Anvin.
16112 2002-05-16 Paul Eggert <eggert@twinsun.com>
16114 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
16115 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
16116 Both macros now accept an optional source-dir arg.
16117 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
16119 * NEWS: Document this.
16120 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
16122 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
16123 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
16124 not for GNU extensions; this undoes part of the 2000-11-03 change,
16125 reverting to 2.13-compatible behavior.
16126 Add new optional argument DIR.
16127 (AC_FUNC_FNMATCH_GNU): New macro.
16129 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
16131 2002-05-08 Paul Eggert <eggert@twinsun.com>
16133 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
16134 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
16135 and it causes a 'test' syntax error if it fails.
16136 Bug reported by Stephen Gildea.
16138 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
16139 If prototypes are supported, use them to check this at compile-time,
16140 instead of trying to check it at run-time. If we must do a run-time
16141 check, assume that setvbuf is standard when cross-compiling, as
16142 nonstandard setvbuf occurs only on ancient and unlikely hosts.
16143 Bug reported by Paul D. Smith.
16145 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
16146 argument specifying location of getloadavg.c. This removes a
16147 FIXME. This idea was taken from Jim Meyering's implementation in
16149 * doc/autoconf.texi (Particular Functions): Document this.
16150 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
16151 that's what the code does; this fixes a bug reported by
16154 2002-05-03 Akim Demaille <akim@epita.fr>
16156 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
16157 autopoint instead of gettextize.
16158 ($uses_alocal): Rename as...
16159 ($uses_aclocal): this.
16160 * doc/autoconf.texi (autoreconf Invocation): Adjust.
16161 Suggested by Bruno Haible.
16163 2002-05-03 Akim Demaille <akim@epita.fr>
16165 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
16167 2002-04-29 Paul Eggert <eggert@twinsun.com>
16169 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
16170 files to be 1 second older; just set them to be the same time.
16171 Also, sleep 1 second after the first aclocal, to work around
16172 problems with sub-second time stamps on the input files.
16174 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
16176 * doc/autoconf.texi: Mention "set -e -x" lossage
16177 under node "Limitations of Builtins".
16179 2002-04-29 Akim Demaille <akim@epita.fr>
16181 * doc/install.texi: Better wording for setting variables when
16183 From Christian Cornelssen.
16185 2002-04-29 Akim Demaille <akim@epita.fr>
16187 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
16188 of lack of $LINENO support, then the test will compare the $LINENO
16189 in testsuite vs. the lineno in the test file. This is wrong, of
16191 Be sure to protect it.
16192 Reported by Patrick Welche.
16194 2002-04-25 Akim Demaille <akim@epita.fr>
16196 * doc/autoconf.texi (Obsolete Macros): Typo.
16197 Reported by Vladimir Volovich.
16199 2002-04-25 Akim Demaille <akim@epita.fr>
16201 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
16202 than some of the input files, hence, on the second run of aclocal,
16203 if some of its input are younger, make them older.
16204 Suggested by Paul Eggert.
16206 2002-04-25 Akim Demaille <akim@epita.fr>
16208 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
16209 Thanks to Paul Eggert.
16211 2002-04-25 Akim Demaille <akim@epita.fr>
16213 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
16214 and ac_subst_vars be sh variables containing the list of
16215 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
16217 (_AC_INIT_PREPARE): Use them to log them.
16218 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
16219 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
16220 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
16221 _AC_SUBST_FILES and _AC_SUBST_VARS.
16222 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
16224 2002-04-24 Akim Demaille <akim@epita.fr>
16226 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
16227 autoheader, so that automake does not complain about a missing
16228 config.h.in that was to be created.
16230 2002-04-23 Akim Demaille <akim@epita.fr>
16232 * bin/autoheader.in (parse_args): --warning takes an argument.
16235 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
16237 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
16238 and bb.out when cleaning up.
16240 2002-04-22 Akim Demaille <akim@epita.fr>
16244 2002-04-22 Akim Demaille <akim@epita.fr>
16246 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
16248 2002-04-22 Akim Demaille <akim@epita.fr>
16250 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
16252 Reported by Gregory Giannoni.
16254 2002-04-22 Akim Demaille <akim@epita.fr>
16256 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
16257 Fixes false failures on Darwin.
16259 2002-04-21 Paul Eggert <eggert@twinsun.com>
16261 * TODO, bin/autoupdate.in, doc/autoconf.texi,
16262 lib/autoconf/general.m4, lib/autoconf/libs.m4,
16263 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
16264 tests/tools.at: Minor spelling and grammar fixes.
16266 2002-04-20 Paul Eggert <eggert@twinsun.com>
16268 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
16269 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
16270 * lib/autotest/general.m4 (AT_INIT): Likewise.
16271 * tests/atgeneral.m4 (AT_INIT): Likewise.
16273 2002-04-19 Paul Eggert <eggert@twinsun.com>
16275 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
16276 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
16277 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
16278 lib/autoconf/functions.m4, lib/autoconf/general.m4,
16279 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
16280 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
16281 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
16282 Minor spelling and grammar fixes.
16284 * doc/autoconf.texi: Follow the outline suggested in the GNU
16285 Sample Texts sections of the Texinfo 4.2 manual. Most
16286 importantly, this makes sure that the copyright notices appear in
16287 all output formats. You probably need Texinfo 4.2 to generate
16290 Fix some bugs when using "$@" when there might be zero positional
16291 arguments in cases where this matters.
16293 * bin/autoconf.as: Rewrite so that the problem does not come up.
16294 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
16295 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
16296 * lib/autotest/general.m4 (AT_INIT): Likewise.
16298 * bin/autoheader.in: Use 'case' statement to work around problem.
16299 * bin/auto4mte.in: Likewise.
16300 * bin/autoreconf.in: Likewise.
16301 * bin/autoscan.in: Likewise.
16302 * bin/autoupdate.in: Likewise.
16303 * bin/ifnames.in: Likewise.
16305 * doc/autoconf.texi (Shell Substitutions): Document the problem.
16307 * lib/autotest/general.m4 (AT_INIT):
16308 Use Zsh alias to work around problem.
16309 * tests/atgeneral.m4 (AT_INIT): Likewise.
16311 * tests/c.at: We can't have zero arguments, so remove workaround
16312 that is not portable to Zsh.
16314 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
16316 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
16317 from aclocal.m4 too.
16319 2002-04-12 Akim Demaille <akim@epita.fr>
16321 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
16323 2002-04-10 Akim Demaille <akim@epita.fr>
16325 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
16326 workaround for ${1+"$@"}.
16327 * doc/autoconf.texi (Shell Substitutions): Explain it.
16328 From Oliver Kiddle and Peter Stephenson.
16330 Have M4sh perform minimal shell sanitizing.
16332 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
16334 (_AS_PREPARE): this new macro.
16336 (AS_INIT): Invoke AS_SHELL_SANITIZE.
16337 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
16339 Adjust Autoconf and Autotest.
16341 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
16342 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
16343 * lib/autotest/general.m4 (AT_INIT): Likewise.
16344 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
16345 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
16348 Use this M4sh to generate Autoconf's shell scripts.
16350 * tests/wrapsh.as: New, precursor of wrapsh.in.
16351 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
16352 on Autotest and M4sh.
16353 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
16354 (wrapsh.in): New target.
16355 * bin/autoconf.as: New, precursor of autoconf.in.
16356 (autoconf.in): New target.
16358 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
16360 * doc/autoconf.texi (Limitations of Make): Mention the issue
16361 with indented comments in rules.
16363 2002-04-09 Andreas Schwab <schwab@suse.de>
16365 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
16366 ac_top_builddir when setting ac_abs_top_builddir.
16368 2002-04-06 Kevin Ryde <user42@zip.com.au>
16370 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
16371 (Portable Shell): Cross reference to Systemology.
16373 2002-04-05 Akim Demaille <akim@epita.fr>
16375 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
16376 directories when descending in a SUBDIRS.
16377 Reported by Ezra Peisach.
16379 2002-04-04 Andreas Schwab <schwab@suse.de>
16381 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
16382 contains no literal separators.
16384 2002-04-03 Akim Demaille <akim@epita.fr>
16386 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
16387 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
16388 Use dnl, not the KILL diversion.
16390 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
16391 (AC_CONFIG_LINKS): here.
16393 Don't use the KILL diversion, as it kills spurious output, which
16394 results in failures being hidden.
16395 Use m4_defn where appropriate.
16396 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
16397 after the second argument.
16399 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
16400 syntax, as it is provided by M4sugar.
16401 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
16403 2002-04-03 Andreas Schwab <schwab@suse.de>
16405 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
16406 expanded if $# <= 2.
16408 * bin/autoreconf.in (autoreconf): Run automake after rerunning
16411 2002-04-03 Akim Demaille <akim@epita.fr>
16413 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
16414 (_AC_COMPILER_EXEEXT_REJECT): New.
16415 Also recognize *.bb and *.bbg as compilation byproducts.
16416 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
16417 (_AC_COMPILER_OBJEXT): Use them.
16418 Fixes Debian #138666.
16420 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
16422 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
16424 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
16425 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
16426 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
16427 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
16428 (AC_C_CONST): Same.
16429 (AC_C_INLINE): Same.
16430 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
16431 * doc/autoconf.texi, NEWS: Document.
16432 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
16435 2002-04-02 Akim Demaille <akim@epita.fr>
16437 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
16438 _AS_MKDIR_P_PREPARE.
16440 2002-03-28 Kevin Ryde <user42@zip.com.au>
16442 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
16443 to avoid versions of HP C which don't allow that.
16445 2002-03-27 Paul Eggert <eggert@twinsun.com>
16447 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
16448 (AS_SHELL_SANITIZE): Invoke it.
16449 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
16451 2002-03-26 Akim Demaille <akim@epita.fr>
16453 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
16455 2002-03-26 Akim Demaille <akim@epita.fr>
16457 * doc/autoconf.texi (Introduction): The GNATS base moved.
16459 2002-03-25 Paul Eggert <eggert@twinsun.com>
16461 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
16462 as POSIX requires, as it doesn't work with Zsh.
16463 * doc/autoconf.texi (Assignments): Document the problem.
16465 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
16467 * doc/autoconf.texi (Limitations of Make): Mention more issue
16468 about VPATH, overriding of macros in sub-makes, and handling of
16471 2002-03-21 Paul Eggert <eggert@twinsun.com>
16473 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
16474 problem with here-document buffer boundaries.
16476 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
16477 when reinvoking the shell, to work around problems with installers
16478 who put strange things like "cd" commands in their environments.
16480 2002-03-19 Akim Demaille <akim@epita.fr>
16482 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
16485 2002-03-19 Akim Demaille <akim@epita.fr>
16487 * bin/autoscan.in (scan_file): Specify the location in `&used'
16491 2002-03-19 Akim Demaille <akim@epita.fr>
16493 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
16494 From Nishio Futoshi.
16496 2002-03-19 Akim Demaille <akim@epita.fr>
16498 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
16500 2002-03-18 Paul Eggert <eggert@twinsun.com>
16502 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
16503 (Limitations of Usual Tools): Add mkdir section.
16505 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
16506 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
16507 back on AS_DIRNAME to compute prefixes otherwise; this is
16508 roughly what mkinstalldirs does. That way, we need not have
16509 our own filename disassembler. The old disassembler did not
16510 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
16512 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
16513 Create at_test_all by a series of assignments,
16514 not by a single assignment of a long string. The latter causes ksh
16515 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
16516 presumably because of a buffer overrun.
16518 2002-03-14 Paul Eggert <eggert@twinsun.com>
16520 * lib/autotest/general.m4 (at_times_skip):
16521 Renamed from at_times. Now a boolean.
16522 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
16523 says 'times: not found'.
16525 2002-03-14 Akim Demaille <akim@epita.fr>
16527 * bin/autoreconf.in (&study_gettextize): New.
16528 (&autoreconf): Handle newest gettextize.
16529 Rerun aclocal if needed.
16530 Suggested by Andreas Schwab.
16532 2002-03-13 Akim Demaille <akim@epita.fr>
16534 * doc/autoconf.texi (Special Shell Variables): More about IFS.
16536 2002-03-13 Akim Demaille <akim@epita.fr>
16538 * doc/autoconf.texi (Header Portability): New.
16539 Add information about stdint.h and inttypes.h from Paul Eggert.
16541 2002-03-13 Akim Demaille <akim@epita.fr>
16543 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
16547 2002-03-12 Akim Demaille <akim@epita.fr>
16549 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
16552 2002-03-11 Andreas Schwab <schwab@suse.de>
16554 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
16555 does not do it if --with-lispdir is given.
16557 2002-03-08 Akim Demaille <akim@epita.fr>
16561 2002-03-08 Akim Demaille <akim@epita.fr>
16563 * doc/autoconf.texi (Subdirectories): Clarify that the
16564 subdirectory should exist.
16566 2002-03-08 Akim Demaille <akim@epita.fr>
16568 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
16570 2002-03-08 Akim Demaille <akim@epita.fr>
16572 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
16573 aliases the actual variables, and modifications of the former
16576 2002-03-08 Akim Demaille <akim@epita.fr>
16578 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
16579 because of C-c: have m4 output in tmp files, then mv them.
16581 2002-03-08 Akim Demaille <akim@epita.fr>
16583 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
16584 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
16585 * bin/ifnames.in: Copyright update.
16587 2002-03-08 Akim Demaille <akim@epita.fr>
16589 * doc/autoconf.texi (Invoking autom4te): New.
16591 2002-03-05 Akim Demaille <akim@epita.fr>
16593 * doc/autoconf.texi (Specifying Names): Clarification suggested by
16596 2002-03-05 Akim Demaille <akim@epita.fr>
16600 2002-03-04 Akim Demaille <akim@epita.fr>
16602 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
16603 * lib/autoconf/general.m4 (AC_INIT): More informative error
16604 message for LIBOBJ.
16606 2002-03-04 Akim Demaille <akim@epita.fr>
16608 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
16611 2002-03-04 Akim Demaille <akim@epita.fr>
16613 * doc/autoconf.texi (Transforming Names): Equality between target
16614 and host is irrelevant.
16615 (Specifying Names, Canonicalizing): Remove all references to the
16616 backward compatibility hooks. Rather, collect them all into...
16617 (Hosts and Cross-Compilation): this new section.
16618 * doc/install.texi (System Type): Ditto.
16619 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
16620 that `--host' implies cross-compilation.
16622 2002-03-04 Akim Demaille <akim@epita.fr>
16624 * doc/autoconf.texi (Evaluation Macros): New.
16625 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
16627 (_m4_foreach): Define the variant with immediate evaluation so
16628 that it contains exactly the items, not an expression which
16629 evaluation is the current item.
16630 (m4_re_string, m4_re_word): Don't over quote them.
16632 2002-03-04 Akim Demaille <akim@epita.fr>
16634 Instead of having stacking `shift's evaluated at the end, let
16635 `foreach' loops immediately evaluate them.
16637 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
16638 $*. This is the n-th time I change my mind, but hopefully this is
16641 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
16643 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
16644 it was only a hack for m4_text_wrap.
16645 (m4_car2): Remove, replaced by...
16647 (_m4_foreach): Adjust.
16648 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
16649 m4_bpatsubst for clarification.
16651 2002-03-04 Akim Demaille <akim@epita.fr>
16653 * doc/autoconf.texi (Changequote is Evil): New.
16655 2002-03-03 Kevin Ryde <user42@zip.com.au>
16657 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
16658 on old systems like SunOS.
16660 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
16662 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16663 lib/autoconf/functions.m4, lib/autoconf/general.m4,
16664 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
16665 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
16668 2002-02-28 Akim Demaille <akim@epita.fr>
16670 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
16671 message to be sent.
16673 2002-02-28 Kevin Ryde <user42@zip.com.au>
16675 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
16677 2002-02-25 Akim Demaille <akim@epita.fr>
16679 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
16680 From Akinori Musha.
16682 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
16684 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
16685 translate \r\n to \n.
16687 2002-02-07 Akim Demaille <akim@epita.fr>
16691 2002-02-07 Akim Demaille <akim@epita.fr>
16693 Fix Autoconf PR/209.
16694 Also reported by Frank Denis.
16696 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
16698 2002-02-07 Akim Demaille <akim@epita.fr>
16700 Fix Autoconf PR/207:
16701 AC_PREFIX_PROGRAM fails with dashed program names
16703 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
16704 variable when looking for the prefix program.
16705 Now it also works for shell variables.
16707 2002-02-07 Akim Demaille <akim@epita.fr>
16709 * doc/autoconf.texi (Limitations of Builtins): More about
16712 2002-02-06 Akim Demaille <akim@epita.fr>
16714 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
16715 case/esac, some shells don't support it.
16716 Reported by Zack Weinberg.
16717 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
16719 2002-02-06 Akim Demaille <akim@epita.fr>
16721 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
16722 sure not to introduce newlines in at_groups.
16723 * lib/autotest/Makefile.am (autotest.m4f): Typo.
16725 2002-02-06 Akim Demaille <akim@epita.fr>
16727 * tests/torture.at (Configuring subdirectories): Skip if aclocal
16730 2002-02-05 Paul Eggert <eggert@twinsun.com>
16732 * doc/autoconf.texi (Specific Compiler Characteristics):
16733 Describe HP-UX cc bug workaround more accurately.
16734 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
16736 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
16737 cross-compilers, too. This undoes some of the most recent change
16740 2002-02-05 Akim Demaille <akim@epita.fr>
16742 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
16743 to make sure they are up to date when `check' is run.
16745 2002-02-05 Akim Demaille <akim@epita.fr>
16747 * doc/autoconf.texi (Making testsuite Scripts): Document
16750 2002-02-05 Akim Demaille <akim@epita.fr>
16752 * lib/freeze.mk: New.
16754 2002-02-05 Akim Demaille <akim@epita.fr>
16756 Implement `autom4te --freeze'.
16758 * bin/autom4te.in (&freeze): New.
16759 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
16760 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
16762 2002-02-05 Akim Demaille <akim@epita.fr>
16764 * bin/autom4te.in (&parse_args): Implement `frozen files are
16765 optional are the sum of the previous files on the command line'.
16766 Also, pass `--reload-state=' on them, so...
16767 (handle_m4): don't.
16768 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
16769 (M4sh): Rely on M4sugar.
16770 (Autotest, M4sh, M4sugar): Use frozen files.
16772 2002-01-31 Akim Demaille <akim@epita.fr>
16774 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
16775 * doc/autoconf.texi (Initializing configure): Adjust.
16777 2002-01-30 Akim Demaille <akim@epita.fr>
16779 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
16780 alphanumeric to `-' instead of `_'.
16782 2002-01-30 Akim Demaille <akim@epita.fr>
16784 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
16785 for plain code, the other for cross-compilation code. The latter
16786 is now run with GCC only.
16787 * doc/autoconf.texi (Compilers and Preprocessors): New.
16789 2002-01-30 Akim Demaille <akim@epita.fr>
16791 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
16793 * doc/autoconf.texi (Initializing configure): Explain how to
16794 change AC_INIT default values.
16796 2002-01-29 Akim Demaille <akim@epita.fr>
16798 * tests/torture.at (Configuring subdirectories): Use configure.in,
16799 so that aclocal 1.4 works.
16800 Reported by Alexandre Duret-Lutz and Larry Schmitt.
16802 2002-01-28 Akim Demaille <akim@epita.fr>
16804 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
16807 2002-01-28 Akim Demaille <akim@epita.fr>
16809 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
16810 AUTOTEST_PATH *after* it was set.
16811 Don't put `.' in the PATH: the user should be precise and `./' if
16812 needed. In addition, given that the test suite does some `cd', if
16813 `.' is in the path, the `tested programs' sections will report
16814 programs found in the test suite's directory, while during the
16815 tests (performed in their own directory), these programs are no
16816 longer visible. In other words, the results is confusing and
16818 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
16820 2002-01-24 Akim Demaille <akim@epita.fr>
16824 2002-01-24 Akim Demaille <akim@epita.fr>
16826 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
16827 * doc/autoconf.texi: Finally add Akim as an author.
16829 2002-01-24 Akim Demaille <akim@epita.fr>
16831 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
16832 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
16833 Bourne. Use /bin/sh.
16834 From Andreas Buening.
16836 2002-01-24 Akim Demaille <akim@epita.fr>
16838 * config/config.guess, config/config.sub, config/texinfo.tex:
16839 Update from masters.
16841 2002-01-24 Akim Demaille <akim@epita.fr>
16843 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
16844 * config/auxdir.m4, config/cond.m4, config/depend.m4,
16845 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
16846 * config/missing.m4, config/sanity.m4, config/select.m4,
16847 * config/strip.m4: Remove, to ease sync'ing with any version of
16850 2002-01-24 Akim Demaille <akim@epita.fr>
16852 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
16853 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
16854 Reported by Geir Ove Myhr.
16856 2002-01-21 Akim Demaille <akim@epita.fr>
16858 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
16860 2002-01-21 Akim Demaille <akim@epita.fr>
16862 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
16863 message on invalid options.
16864 * bin/autom4te.in (parse_args): Don't use
16865 Autoconf::General::getopt with non valid options.
16867 2002-01-17 Jim Meyering <meyering@lucent.com>
16869 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
16870 $ac_cv_exeext so we don't use an old, invalid, cached value.
16872 2002-01-11 Akim Demaille <akim@epita.fr>
16874 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
16876 * doc/autoconf.texi (Function Portability): Document the strnlen
16878 (Particular Functions): Document AC_FUNC_STRNLEN.
16879 * lib/autoscan/functions: Adjust.
16881 2002-01-06 Akim Demaille <akim@epita.fr>
16883 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
16884 package.m4, since is really depends upon configure.ac, not
16886 * doc/autoconf.texi (testsuite Scripts): Adjust.
16887 * tests/Makefile.am (package.m4): New.
16888 EXTRA_DIST it since its a source.
16890 2002-01-06 Akim Demaille <akim@epita.fr>
16892 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
16893 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
16894 and PACKAGE_BUGREPORT from here...
16895 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
16897 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
16898 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
16899 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
16900 * tests/tools.at (autoheader): Adjust.
16901 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
16903 2002-01-06 Akim Demaille <akim@epita.fr>
16905 * bin/autoscan.in (scan_file): Use `&used'.
16907 2002-01-03 Akim Demaille <akim@epita.fr>
16909 * doc/autoconf.texi (Output): Improved wording regarding use of
16913 2001-12-18 Kevin Ryde <user42@zip.com.au>
16915 * doc/autoconf.texi (Function Portability): Add notes on sscanf
16916 sometimes needing writable input.
16918 2001-12-17 Jim Meyering <meyering@lucent.com>
16920 * doc/autoconf.texi (New Macros): Tweak wording.
16922 2001-12-14 Akim Demaille <akim@epita.fr>
16924 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
16925 trailing files, don't apply `-rf' to files which might not be
16926 created by configure (core, core.*, and *.core), but just `rm -f'.
16927 Suggested by Jonathan Kamens.
16929 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
16931 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
16933 2001-12-14 Akim Demaille <akim@epita.fr>
16935 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
16937 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
16939 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
16940 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
16941 abs_srcdir, top_srcpath to abs_top_srcdir.
16942 (_AC_OUTPUT_FILES): Adjust.
16943 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
16944 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
16945 * tests/wrappl.in, tests/wrapsh.in: Adjust.
16947 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
16949 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
16950 C/Fortran linking on HP/UX, by extracting the Fortran library
16951 search path from the LPATH line in the $F77 -v output.
16953 2001-12-12 Kevin Ryde <user42@zip.com.au>
16955 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
16956 forbidden file descriptors table.
16958 2001-11-26 Akim Demaille <akim@epita.fr>
16960 * bin/autoscan.in (%c_keywords): Build it at top level.
16961 Map to 1 in order to simplify its uses.
16963 2001-11-26 Akim Demaille <akim@epita.fr>
16965 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
16966 Remove $filepath, useless.
16967 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
16968 variables, they are really part of the tokens.
16969 Split the input line on spaces and then look for tokens.
16970 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
16971 because of `lex$U.$(OBJEXT)'.
16972 (&scan_files): Use "@list" instead of join.
16973 * doc/Makefile.am (CLEANFILES): Add *.fns.
16975 2001-11-26 Akim Demaille <akim@epita.fr>
16977 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
16978 Remove, replaced by...
16979 * tests/wrappl.in: Be common for all the Perl executables.
16980 In particular autoscan and autoheader want -I.
16981 * configure.ac: Adjust.
16982 * lib/autoscan/headers: errno.h is portable.
16984 2001-11-26 Akim Demaille <akim@epita.fr>
16986 * bin/autoscan.in (used): New.
16989 2001-11-26 Akim Demaille <akim@epita.fr>
16991 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
16993 (&scan_sh_file): Remove a duplicate pattern.
16994 (&check_configure_ac): Use long options.
16995 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
16997 2001-11-26 Akim Demaille <akim@epita.fr>
16999 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
17000 Before, having a line containing the opening of a multi line
17001 comment made the whole line be ignored.
17003 2001-11-26 Akim Demaille <akim@epita.fr>
17005 * doc/autoconf.texi (Using an Autotest Test Suite): New.
17006 (testsuite Scripts): Be one of its subsection.
17007 (Autotest Logs): New.
17009 2001-11-26 Akim Demaille <akim@epita.fr>
17011 Test groups are now run two directories deeper.
17013 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
17014 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
17016 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
17017 top_srcdir, builddir and top_builddir.
17018 Use `at_*dir' relatively to the directory containing the
17019 suite, use `*dir' when relatively to the current group dir.
17021 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
17023 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
17024 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
17025 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
17028 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
17030 * doc/autoconf.texi (Using System Type): Add an example of `case
17031 $host' usage so people quit using `case $target' everywhere.
17033 2001-11-22 Akim Demaille <akim@epita.fr>
17035 * doc/autoconf.texi (Installation Directory Variables): Englishoes
17036 spotted by Jim Meyering.
17038 2001-11-16 Paul Eggert <eggert@twinsun.com>
17040 This patch implements a `long double' suggestion by Oliver Kiddle.
17042 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
17043 static, to catch errors if the value isn't known at compile-time
17044 and the compiler supports dynamic arrays. Change its name from
17045 `_array_' to `test_array' to avoid potential name clashes.
17046 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
17047 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
17048 better than double. Catch a bug in GCC 2.95.2 x86.
17049 * doc/autoconf.texi (C Compiler): Document the above.
17052 2001-11-13 Akim Demaille <akim@epita.fr>
17054 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
17056 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
17058 2001-11-13 Akim Demaille <akim@epita.fr>
17060 * lib/autotest/general.m4 (AT_INIT): After having run the test
17061 group, go back to the initial directory, not to at_suite_dir.
17063 2001-11-13 Akim Demaille <akim@epita.fr>
17065 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
17066 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
17067 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
17069 (AT_CHECK_CONFIGURE): Use absolute paths.
17070 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
17071 The problem is still the old one: there is no means in M4 (that I
17072 know about) to create a defining macro, because there is no means
17073 to create `$1' etc., therefore, the defining macro ``swallows''
17074 all the arguments meant to the defined macro.
17076 2001-11-13 Akim Demaille <akim@epita.fr>
17078 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
17079 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
17081 * tests/aclocal.m4: Remove, as it is no longer used.
17083 2001-11-13 Akim Demaille <akim@epita.fr>
17085 * lib/autotest/general.m4: Change `tests?' into `groups?' in
17086 variable names when referring to a single test group, or to
17087 `suite' when referring to the whole test suite.
17088 `at_last_test' is removed: m4 compute at_format itself.
17089 (at_stdout, at_stder1, at_stderr): New variables.
17090 (AT_CHECK): Use them.
17092 2001-11-13 Akim Demaille <akim@epita.fr>
17094 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
17096 Create `testsuite.dir/003/run' instead of `testsuite.003'.
17097 Do it as soon as a test fails, don't wait till the end of the test
17099 Don't remove $as_me.[0-9]*, since these files no longer exist.
17101 2001-11-13 Akim Demaille <akim@epita.fr>
17103 * tests/tools.at: Use absolute paths, since we are no longer run
17106 2001-11-13 Akim Demaille <akim@epita.fr>
17108 Now that tests are running in their own private dir, there is no
17109 need to list the files to remove at the end of tests groups.
17111 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
17112 (AT_data_files, at_data_files): Remove.
17113 (AT_CLEANUP, AT_DATA): Simplify.
17115 Remove the group dir if !debug && !failed.
17116 * tests/atspecific.m4: Adjust.
17118 2001-11-13 Akim Demaille <akim@epita.fr>
17120 Start a new layout for Autotest: `testsuite' creates
17121 `testsuite.dir' in which the at-check-line etc. files are to be
17122 found, and `testsuite.dir/003' where the test group 3 is run.
17124 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
17125 at_check_line_file, at_format, at_test_normalized, at_group_dir
17127 Create the directories.
17128 Use absolute paths for at- files.
17129 (AT_CHECK): Adjust.
17131 2001-11-11 Michael Matz <matz@kde.org>
17133 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
17135 (m4_car): Properly quote arguments.
17137 2001-11-13 Akim Demaille <akim@epita.fr>
17139 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
17140 with stricter rules on LIBOBJS.
17142 2001-11-12 Paul Eggert <eggert@twinsun.com>
17144 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
17145 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
17148 2001-11-12 Akim Demaille <akim@epita.fr>
17150 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
17152 2001-11-12 Akim Demaille <akim@epita.fr>
17154 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
17155 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
17156 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
17157 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
17158 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
17159 specify to what the macro should be defined (typically to 1).
17161 2001-11-12 Akim Demaille <akim@epita.fr>
17163 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
17166 2001-11-12 Akim Demaille <akim@epita.fr>
17168 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
17169 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
17170 definition used by Automake where LEX is +/- "${missing} lex" and
17171 `missing' itself contains variables.
17173 2001-11-12 Akim Demaille <akim@epita.fr>
17175 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
17176 Now that M4sh pushes BODY, the comments were output at the end of
17179 2001-11-08 Akim Demaille <akim@epita.fr>
17181 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
17182 that we can trace macros from aclocal.m4.
17183 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
17184 obsoleted, and redirect to the former anyway.
17185 Reported by Ralf Corsepius.
17187 2001-11-08 Akim Demaille <akim@epita.fr>
17189 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
17190 processed only if present.
17191 * tests/torture.at (Configuring subdirectories): Use autoreconf
17192 instead of successive calls to autoconf.
17193 Add a nonexistent subdirectory to exercise the patch above.
17194 Reported by Ralf Corsepius.
17196 2001-11-08 Kevin Ryde <user42@zip.com.au>
17198 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
17199 doesn't accept .S files.
17201 2001-11-07 Akim Demaille <akim@epita.fr>
17203 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
17204 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
17205 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
17206 * bin/autom4te.in (warn_forbidden): New.
17207 (handle_output): Use it.
17208 Read m4_pattern_forbid with messages.
17210 2001-11-05 Akim Demaille <akim@epita.fr>
17212 * bin/autom4te.in (--normalize): Remove.
17213 * lib/autom4te.in: Adjust.
17215 2001-11-05 Akim Demaille <akim@epita.fr>
17217 * tests/Makefile.am (testsuite): Rename this target as...
17218 ($(TESTSUITE)): this.
17221 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
17223 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
17224 the --prefix option, also remove it's argument.
17226 2001-11-05 Akim Demaille <akim@epita.fr>
17228 * doc/autoconf.texi (testsuite Invocation): Update.
17229 (Writing testsuite.at): Update.
17231 2001-11-03 Akim Demaille <akim@epita.fr>
17233 * doc/autoconf.texi: s/@code/@command/ where appropriate.
17235 2001-11-03 Akim Demaille <akim@epita.fr>
17237 * lib/Autom4te/General.pm: (&catfile, &canonfile)
17238 (&file_name_is_absolute): New, wrappers around routines from
17240 Use and export them.
17241 (&find_configure_ac): Optionally take a directory where to look at.
17242 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
17244 Default @ARGV to `.', not find_configure_ac.
17245 (&autoreconf): Argument is a directory.
17246 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
17247 * doc/autoconf.texi (autoreconf Invocation): Update.
17249 2001-11-03 Akim Demaille <akim@epita.fr>
17251 * lib/Autom4te/General.pm (@export_vars, @export_subs)
17252 (@export_forward_subs): New.
17253 Add basename, dirname, and fileparse.
17255 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
17256 Don't look for aclocal flags if we already know aclocal is not
17258 Move aclocal.m4t only if it exists.
17259 Reported by Ezra Peisach.
17261 2001-11-03 Akim Demaille <akim@epita.fr>
17263 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
17264 passed on command line, defaulting to ./configure.ac if present.
17265 (&maybe_autoreconf, File::Find): Remove, unused.
17266 (&autoreconf): If autoconf is not used, don't try to trace.
17268 2001-11-02 Akim Demaille <akim@epita.fr>
17270 * configure.ac: Bump to 2.52g.
17272 2001-11-02 Akim Demaille <akim@epita.fr>
17276 2001-11-02 Akim Demaille <akim@epita.fr>
17278 * config/config.guess, config/config.sub, doc/standards.texi:
17279 * config/lispdir.m4: Update from masters.
17280 * configure.ac: Bump to 2.52f.
17282 2001-11-02 Akim Demaille <akim@epita.fr>
17284 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
17285 Don't run aclocal when aclocal.m4 is not from aclocal.
17287 Don't run libtoolize and gettextize if --install is not given.
17289 2001-11-01 Paul Eggert <eggert@twinsun.com>
17291 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
17292 be invoked before _AS_LINENO_PREPARE.
17293 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
17294 than character ranges.
17296 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
17297 invoking AS_BASENAME. Set the locale variables to 'C' if
17298 possible, as POSIX requires this to get the traditional
17300 * doc/autoconf.texi (Special Shell Variables): Describe the above.
17302 2001-10-31 Paul Eggert <eggert@twinsun.com>
17304 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
17305 with {}, as that triggers a bug in Bash 2.05.
17307 (_AS_LINENO_PREPARE): Use Sed rather than
17308 Awk. Fix the sed prepass to work even if there are multiple
17309 instances of $LINENO on the same line. Do not substitute for
17310 other variables like $LINENOT. Do not check file dates; such a
17311 check is unreliable on sufficiently fast machines, and removing
17312 the check makes the code simpler and more reliable. Check for
17313 output and chmod failures.
17315 * doc/autoconf.texi (Special Shell Variables): Document
17318 2001-10-31 Akim Demaille <akim@epita.fr>
17320 * tests/Makefile.am (atconfig): Remove this target, Automake
17323 2001-10-31 Akim Demaille <akim@epita.fr>
17325 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
17326 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
17327 provided, while it is optional.
17328 * configure.ac: Adjust.
17330 2001-10-26 Paul Eggert <eggert@twinsun.com>
17332 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
17333 lib/Autom4te/Struct.pm:
17334 Require Perl 5.005_03 instead of just 5.005, as some tests fail
17337 * doc/autoconf.texi (Special Shell Variables): Document some
17338 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
17340 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
17341 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
17342 eval $LINENO is not portable in practice.
17344 2001-10-24 Akim Demaille <akim@epita.fr>
17346 * lib/Autom4te/General.pm (backname): New.
17348 2001-10-24 Akim Demaille <akim@epita.fr>
17350 * m4/: Remove, merged into...
17353 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
17355 * doc/autoconf.texi (Shellology): Mention the problems with bash
17356 2.05's use of ANSI quoting in its `set' builtin.
17358 2001-10-22 Paul Eggert <eggert@twinsun.com>
17360 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
17361 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
17362 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
17363 POSIX decided to standardize on the int flavor of strerror_r.
17364 Always do char* test, as there's no reason not to.
17365 Assign to a char* var, to catch strerror_r that returns int*.
17367 * doc/autoconf.texi (Particular Functions):
17368 Document the above changes. Also, document the fact that
17369 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
17371 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
17373 2001-10-20 Akim Demaille <akim@epita.fr>
17375 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
17376 the executable was missing from the log.
17378 2001-10-20 Akim Demaille <akim@epita.fr>
17380 * lib/Autom4te/General.pm (&update_file): If destination is
17381 unchanged, remove the source.
17382 (&up_to_date_p): Don't be verbose, be debug.
17383 * bin/autoreconf.in: No longer support --m4dir.
17384 (&autoreconf): Display the full path of the configure.ac we are
17386 Trace it only once.
17387 Be sure to honor --force with gettextize.
17388 Always run aclocal.
17389 * doc/autoconf.texi: Adjust.
17391 2001-10-20 Akim Demaille <akim@epita.fr>
17393 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
17395 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
17396 `intl' is already present, as it refuses unless --force.
17397 (&parse_args): Use -I, --include instead of the old Autoconf
17399 ($localdir, $autoconf_dir): Remove.
17401 (&maybe_autoreconf): New, to preserve $_ for File::Find.
17403 2001-10-19 Jens Petersen <petersen@redhat.com>
17405 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
17406 * doc/autoconf.texi (Particular Programs): Likewise.
17408 2001-10-19 Akim Demaille <akim@epita.fr>
17410 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
17411 file in @configure_input@.
17412 Don't mention `automatically' in addition to `generated'.
17413 * tests/torture.at (#define header templates): Adjust.
17415 2001-10-19 Akim Demaille <akim@epita.fr>
17417 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
17418 comment, explain how to install automatic mode selection.
17421 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
17423 * bin/autoreconf.in (autoreconf): Display the path to the
17424 configure.ac being studied.
17426 2001-10-18 Paul Eggert <eggert@twinsun.com>
17428 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
17429 long, to work around a bug in the HP C compiler version HP92453-01
17432 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
17433 (AS_BASENAME_EXPR): New macro.
17434 (AS_BASENAME_SED): Do not assume GNU sed semantics.
17435 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
17436 and fall back on 'sed' only if the other two fail. This makes
17437 AS_BASENAME act more like AS_DIRNAME.
17438 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
17439 contains white space.
17440 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
17441 Use AS_DIRNAME, since I think it's now DOS-friendly.
17442 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
17443 Allow "dirname //FOO" to return either / or //, as POSIX allows
17446 2001-10-10 Akim Demaille <akim@epita.fr>
17448 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
17449 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
17452 2001-10-10 Akim Demaille <akim@epita.fr>
17454 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
17455 m4_define, since...
17456 (_AS_ECHO_N): AS_REQUIREs it.
17458 2001-10-10 Akim Demaille <akim@epita.fr>
17460 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
17461 (AC_INCLUDES_DEFAULT): Move to...
17462 * lib/autoconf/headers.m4: here.
17463 * lib/autoconf/types.m4: Comment changes.
17464 * doc/autoconf.texi: Specify where the default includes are used
17465 in the macro prototypes.
17467 2001-10-09 Akim Demaille <akim@epita.fr>
17469 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
17472 2001-10-08 Akim Demaille <akim@epita.fr>
17474 * bin/autoreconf.in (&autoreconf): Remove debugging code.
17475 (&parse_args): Pass verbosity/debugging options to subtools when
17476 --debug, not when --verbose.
17477 * lib/autom4te.in (Autoreconf-preselections): New.
17478 (Autoconf): Use it.
17480 2001-10-08 Akim Demaille <akim@epita.fr>
17482 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
17484 2001-10-08 Akim Demaille <akim@epita.fr>
17486 * doc/autoconf.texi (autoreconf Invocation): Adjust.
17487 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
17489 2001-10-08 Akim Demaille <akim@epita.fr>
17491 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
17492 (Syntax of the shell scripts): Don't.
17493 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
17494 bother with $force since...
17495 * lib/Autom4te/General.pm: does.
17497 2001-10-08 Akim Demaille <akim@epita.fr>
17499 * bin/autoreconf.in: Rewrite in Perl.
17500 * configure.ac: Adjust.
17501 * lib/Autom4te/General.pm (&up_to_date_p): New.
17502 * bin/autom4te.in (&up_to_date_p): Use it.
17504 (&up_to_date): this.
17506 2001-10-08 Akim Demaille <akim@epita.fr>
17508 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
17509 (m4_list_cmp): Use $0 to reinvoke yourself.
17510 (m4_patsubsts): New.
17511 (m4_strip, m4_version_unletter): Use it.
17512 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
17514 2001-10-08 Akim Demaille <akim@epita.fr>
17516 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
17517 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
17518 * lib/autoconf/types.m4, lib/autotest/general.m4,
17519 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
17520 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
17521 m4_bregexp, m4_bpatsubst, and m4_bmatch.
17522 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
17524 2001-10-08 Akim Demaille <akim@epita.fr>
17526 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
17528 2001-10-08 Akim Demaille <akim@epita.fr>
17530 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
17531 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
17532 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
17533 * tests/tools.at, tests/m4sh.at: Use it.
17534 * tests/m4sh.at: Don't rely on Autoconf macros.
17535 (DIRNAME_TEST): Also exercise the expr variant.
17536 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
17537 preferred M4sugar extension is now `.4s'.
17538 * tests/README: Remove.
17540 2001-10-08 Akim Demaille <akim@epita.fr>
17542 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
17543 (m4_provide_if): this.
17544 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
17545 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
17546 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
17547 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
17549 2001-10-08 Akim Demaille <akim@epita.fr>
17551 Use `add-log-current-defun-function' for ChangeLog creation.
17552 Suggested by Tom Tromey.
17554 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
17555 (autotest-mode): Adjust.
17556 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
17557 'comment-region onto `C-c ;'.
17558 Comments are `#', not `dnl'.
17559 (autoconf-current-defun): New.
17560 (autoconf-font-lock-keywords): Recognize `m4_defun'.
17562 2001-10-08 Akim Demaille <akim@epita.fr>
17564 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
17565 * lib/m4sugar/m4sh.m4: here.
17566 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
17567 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
17568 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
17569 include handle the m4_pattern_*, no longer push the
17570 BODY diversion nor set the /bin/sh line, AS_INIT does it.
17571 * lib/autotest/general.m4 (AT_INIT): Likewise.
17572 * tests/base.at: Adjust the tests to use AS_INIT.
17573 * tests/tools.at (AT_DATA_FORBIDDEN): New.
17574 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
17577 2001-10-07 Paul Eggert <eggert@twinsun.com>
17579 * doc/autoconf.texi (config.status Invocation):
17580 CONFIG_SHELL defaults to a shell that supports LINENO if available.
17582 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
17583 shell does not support LINENO, and if CONFIG_SHELL is unset or
17584 empty, and if we can find a shell that does support LINENO,
17585 then set CONFIG_SHELL to that shell and then re-execute
17586 ourselves with CONFIG_SHELL.
17588 2001-10-05 Paul Eggert <eggert@twinsun.com>
17590 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
17591 doesn't exist. Remove *.tmp, as a .tmp file is created during the
17592 build of $(TESTSUITE).
17594 2001-10-05 Akim Demaille <akim@epita.fr>
17596 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
17597 iff we are a bareword.
17598 Reported by Raja R Harinath.
17600 2001-10-05 Akim Demaille <akim@epita.fr>
17602 * tests/m4sh.at (LINENO): New.
17603 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
17604 PATH_SEPARATOR before using it.
17605 Fix the absolute path case/esac pattern.
17606 Provide $0 as fallback for as_myself.
17607 Reported by Raja R Harinath.
17609 2001-10-05 Akim Demaille <akim@epita.fr>
17611 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
17612 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
17614 2001-10-05 Akim Demaille <akim@epita.fr>
17616 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
17617 (AS_SHELL_SANITIZE): here. Use it.
17618 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
17621 2001-10-04 Akim Demaille <akim@epita.fr>
17623 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
17624 combination of Awk and sed to replace $LINENO.
17626 2001-10-02 Paul Eggert <eggert@twinsun.com>
17628 * doc/autoconf.texi (Limitations of Builtins): You can't use
17629 "source"; it's not portable. Remove confusing and
17630 somewhat-incorrect example involving "." and "/".
17632 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
17633 compatibility with POSIX shells.
17635 2001-10-02 Akim Demaille <akim@epita.fr>
17637 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
17638 instead of exec'ing to preserve $0 and $@.
17640 2001-10-01 Akim Demaille <akim@epita.fr>
17642 * tests/testsuite (AT_INIT) <at_pass_list>: New.
17643 Don't run twice the same test.
17645 2001-10-01 Akim Demaille <akim@epita.fr>
17647 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
17648 No longer output the list of tests.
17649 <--list>: New option.
17650 <--full-help>: Remove.
17651 Complete the short/long options duality.
17652 Various small adjustments.
17654 2001-10-01 Akim Demaille <akim@epita.fr>
17656 * doc/autoconf.texi: Use @kbd for user input.
17657 Always use `$' as shell prompt.
17659 2001-09-30 Paul Eggert <eggert@twinsun.com>
17661 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
17662 Don't use nested parenthesization. This patch was originally
17663 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
17664 but somehow it didn't get incorporated then.
17665 * doc/autoconf.texi (Limitations of Usual Tools):
17666 Clarify remark about sed and nested parenthesization.
17668 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
17669 Report an error if the size cannot be determined even though
17671 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
17672 Check for `expr' arithmetic overflow, and for compilation failure,
17673 and invoke a new argument $4 if either is discovered.
17674 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
17675 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
17677 2001-09-28 Akim Demaille <akim@epita.fr>
17679 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
17680 * m4/lispdir.m4: New.
17681 * aclocal.m4, configure.ac: Adjust.
17683 2001-09-28 Akim Demaille <akim@epita.fr>
17685 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
17687 (AT_INIT): More the wrapped section to where it will be expanded.
17688 Output `AT_tested' only when existing.
17689 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
17691 2001-09-27 Akim Demaille <akim@epita.fr>
17693 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
17694 generates too many bug reports.
17696 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
17697 status when executing the ACTION-IF-FALSE.
17698 * tests/base.at (AC_TRY_*): Rename as...
17699 (AC_TRY_COMMAND): this.
17700 (AC_RUN_IFELSE): New.
17701 * tests/compile.at (Extensions, C keywords)
17702 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
17703 (Broken/missing compilers, AC_PROG_CPP with warnings)
17704 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
17705 * tests/c.at (Extensions, C keywords)
17706 (Broken/missing compilers, AC_PROG_CPP with warnings)
17707 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
17708 (AC_PROG_CPP requires AC_PROG_CC): here and...
17709 * tests/fortran.at (GNU Fortran 77): there.
17710 * doc/autoconf.texi (autoconf Invocation): Fix the example:
17711 AC_TRY_RUN is about compilation, not shell commands.
17712 (Test Programs): AC_TRY_RUN works as used to be advertised.
17714 2001-09-27 Akim Demaille <akim@epita.fr>
17716 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
17718 Be sure to detect when $LINENO always returns the same value.
17719 Look for the original script, basename($0) is certainly not
17721 Pass the CLI arguments to `$as_me.lineno'.
17723 2001-09-25 Akim Demaille <akim@epita.fr>
17725 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
17726 Be sure the close and reopen the LOG fd before and after using tee
17728 <at_tests_pattern>: Adjust to the new format of at_help_all.
17730 2001-09-23 Akim Demaille <akim@epita.fr>
17732 * bin/autom4te.in (parse_args): There can be several invocations
17735 2001-09-23 Akim Demaille <akim@epita.fr>
17737 * doc/autoconf.texi (Top): Wrap in @ifnottex.
17739 2001-09-23 Akim Demaille <akim@epita.fr>
17741 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
17742 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
17743 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
17744 builddir, buildpath, top_builddir, and top_buildpath.
17745 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
17746 the current directory.
17747 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
17748 variables *before* changing the current directory.
17749 Skip nonexistent dirs.
17750 * doc/autoconf.texi (Preset Output Variables): Document these
17753 * lib/autotest/general.m4: Do not reset AT_victims.
17754 Don't compute at_srcdir nor at_top_srcdir.
17756 * tests/tools.at: Hence use top_srcdir.
17758 * tests/Makefile.am, tests/autoconf, tests/autoheader,
17759 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
17761 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
17762 * tests/wrapsh.in, tests/autoupdate.in: New.
17763 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
17764 * configure.ac: Build the position independent wrappers.
17766 * man/Makefile.am: Now that test wrappers are position
17767 independent, use them and drop dark envvar magic.
17769 2001-09-23 Akim Demaille <akim@epita.fr>
17771 * doc/autoconf.texi (Common Shell Constructs): Rename as...
17772 (Programming in M4sh): this.
17773 Promote to @section.
17775 2001-09-23 Akim Demaille <akim@epita.fr>
17777 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
17778 Pass $at_debug_args to the rerun test suite.
17779 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
17780 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
17783 2001-09-23 Akim Demaille <akim@epita.fr>
17785 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
17787 2001-09-23 Akim Demaille <akim@epita.fr>
17789 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
17792 2001-09-23 Akim Demaille <akim@epita.fr>
17794 * lib/Autom4te/General.pm (&debug): New.
17795 * bin/autom4te.in ($language): Move to...
17796 (parse_args): here.
17797 Handle --language in languages.
17798 * lib/autom4te.in (Automake-selections, Autoheader-selections)
17799 (Autoscan-selections): New.
17800 (Autoconf): Adjust.
17802 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
17804 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
17805 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
17806 to match current versions from CVS Automake.
17808 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
17810 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
17813 2001-09-22 Akim Demaille <akim@epita.fr>
17815 * lib/autoconf/autotest.m4: Create `package.m4'.
17816 * tests/Makefile.am (package.m4): Remove.
17818 2001-09-22 Akim Demaille <akim@epita.fr>
17820 Rely on `$LINENO' when possible instead of `__oline__'.
17822 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
17823 `$LINENO' support replacement when not supported.
17824 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
17825 them explicitly to be sure they are not output before this section
17826 (via m4_require). Cosmetic only.
17827 * lib/autoconf/c.m4, lib/autoconf/general.m4,
17828 * lib/autoconf/programs.m4: Replace all the occurrences of
17829 `__oline__' with `$LINENO'.
17830 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
17832 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
17834 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
17835 character (u: -> ue) in a code comment.
17836 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
17839 2001-09-21 Akim Demaille <akim@epita.fr>
17841 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
17842 Suggested by Jim Meyering.
17844 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17846 * lib/autoconf/programs.m4: Use extensions listed in
17847 $ac_executable_extensions when looking for programs.
17849 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17851 * lib/autoconf/general.m4: Fix a small Englisho.
17852 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
17853 setting up ac_dir_suffix and ac_top_builddir.
17854 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
17856 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17858 * doc/autoconf.texi (File System Conventions): Clarify the use of
17860 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
17861 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
17862 be used instead of ':'.
17863 * lib/autotest/general.m4: Replace occurrences of ':' in
17864 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
17866 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17868 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
17869 arguments. Fixed a typo.
17871 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17873 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
17874 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
17876 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17878 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
17879 * bin/autoupdate.in: Ditto.
17880 * bin/autoheader.in: Reworded a few comments.
17881 * bin/autoconf.in: Reworded help text for a few options.
17882 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17883 * bin/autoscan.in, bin/autoupdate.in: Ditto.
17885 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
17887 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
17888 already have $file). Set output files to binary mode (helps avoid
17889 CR issues on DOSish systems).
17891 2001-09-19 Akim Demaille <akim@epita.fr>
17893 * lib/autotest/general.m4: Englishoes.
17894 From Tim Van Holder and Alexey Mahotkin.
17896 2001-09-18 Paul Eggert <eggert@twinsun.com>
17898 * doc/autoconf.texi (Common Shell Constructs): New node,
17899 documenting AS_DIRNAME.
17900 (Limitations of Usual Tools): Refer to it when discussing dirname.
17901 Also, update discussion of POSIX standard to reflect latest draft.
17903 * lib/autoconf/c.m4:
17904 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
17906 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
17907 Do not pass a first argument with leading '-'
17908 to expr, by parenthesizing initial integers that might be negative.
17910 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
17911 now merely checks whether it is an error to pass an argument
17914 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
17915 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
17916 whether it is a (compile-time) error to pass an argument to
17917 getpgrp. This simpler test supports the revised documentation,
17918 and is all that AC_FUNC_GETPGRP's users really need.
17920 2001-09-18 Akim Demaille <akim@epita.fr>
17922 * doc/autoconf.texi (Limitations of Make) <$<>: New.
17924 2001-09-18 Akim Demaille <akim@epita.fr>
17926 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
17928 * lib/autotest/general.m4 (AT_INIT): Adjust.
17930 2001-09-18 Paul Wagland <paul@wagland.net>
17932 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
17934 Add test for AS_BASENAME.
17935 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
17936 added test. It now correctly handles /1/2/3/, returning '3' not ''.
17937 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
17938 * tests/base.at: Fixed the expected responses. The old ones were
17940 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
17941 the documentation claims it should (and how it behaved in 2.13).
17943 2001-09-18 Akim Demaille <akim@epita.fr>
17945 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
17946 the AC_CONFIG_COMMANDS invocation.
17947 This also solves the name clash problems.
17948 Don't set the package's ID.
17949 * lib/m4sugar/Makefile.am (version.m4): Revamp.
17950 No longer to be shipped.
17951 (version.in): Remove.
17952 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
17953 * lib/autoconf/status.m4: Adjust.
17954 Use `m4_PACKAGE_STRING'.
17955 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
17956 the only optional argument is the name of the test suite.
17957 Expect `package.m4' to define the package signature.
17958 * lib/autom4te.in (Autotest): Add `package.m4?'.
17959 * tests/Makefile.am (package.m4): New.
17960 * tests/suite.at: ifnames is a victim.
17962 2001-09-18 Akim Demaille <akim@epita.fr>
17964 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
17965 AC_LIBSOURCE, AC_CONFIG_FILES.
17966 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
17967 program version string doesn't match the package's.
17968 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
17971 2001-09-17 Paul Eggert <eggert@twinsun.com>
17973 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
17974 Allow expression to return any value that can fit into unsigned long
17975 (not int, as before). Check for output errors.
17977 2001-09-17 Bruno Haible <haible@ilog.fr>
17979 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
17980 Always include <stdio.h> and <stdlib.h>. Evaluate
17981 the expression in an extra function before these includes. Call
17982 fprintf "%d" only after ensuring the argument is of type 'int'.
17983 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
17985 2001-09-17 Paul Eggert <eggert@twinsun.com>
17987 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
17988 or CFLAGS=-O5. In that case, the linker has a relaxed view of
17989 fatal errors, and AC_CHECK_LIB causes it to include libraries even
17990 when they don't exist.
17992 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
17993 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
17996 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
17997 version with the version used by fileutils 4.1, except use
17998 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
18001 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
18003 2001-09-13 Akim Demaille <akim@epita.fr>
18005 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
18007 Reported by Gerrit P. Haase.
18009 2001-09-13 Akim Demaille <akim@epita.fr>
18011 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
18012 m4_defn'ing is valid.
18014 2001-09-13 Akim Demaille <akim@epita.fr>
18016 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
18017 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
18020 2001-09-13 Akim Demaille <akim@epita.fr>
18022 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
18024 (m4_re_escape): New.
18025 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
18026 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
18027 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
18029 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
18030 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
18031 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
18032 AT_tests_all for consistency.
18034 (AT_VICTIMS): Similar to AT_KEYWORDS.
18035 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
18037 2001-09-13 Akim Demaille <akim@epita.fr>
18039 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
18041 2001-09-13 Akim Demaille <akim@epita.fr>
18043 * lib/autotest/general.m4 (AT_INIT): Create and remove
18044 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
18045 test suites can cohabit.
18047 2001-09-13 Akim Demaille <akim@epita.fr>
18049 * tests/mktests.sh: Don't output banners for empty test files.
18051 2001-09-13 Akim Demaille <akim@epita.fr>
18053 Test suites can be run independently of configure.
18055 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
18056 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
18057 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
18059 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
18061 * lib/autotest/general.m4: Use ECHO_*.
18063 2001-09-13 Akim Demaille <akim@epita.fr>
18065 * bin/ifnames.in: Rewrite in Perl.
18066 * configure.ac: Don't look for AWK.
18067 * tests/tools.at (AWK portability): Remove.
18068 (Syntax of the shell scripts): Don't check ifnames.
18069 (AT_CHECK_PERL_SYNTAX): New.
18070 (Syntax of the Perl scripts): Check ifnames.
18071 * tests/ifnames: New.
18073 2001-09-13 Akim Demaille <akim@epita.fr>
18075 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
18077 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
18078 Remove all the other keywords.
18080 2001-09-10 Akim Demaille <akim@epita.fr>
18082 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
18083 SETUP: no longer used.
18084 Support -k, --keywords.
18085 <at_help>: Be `no', `short', or `long'.
18086 <at_help_all>: New variable.
18087 (AT_KEYWORDS): New.
18088 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
18089 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
18090 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
18091 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
18092 No longer fill the HELP diversion.
18093 (AT_CLEANUP): Use them.
18094 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
18095 (m4_list_append): Remove.
18097 Spread a few keywords in the Autoconf test suite.
18099 2001-09-10 Akim Demaille <akim@epita.fr>
18101 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
18102 PATH_SEPARATOR, let M4sh compute it.
18103 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
18104 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
18106 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
18107 Simplify when the path is not a literal.
18108 (AS_UNAME): Use it to report PATH.
18109 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
18110 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
18111 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
18112 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
18113 normalize the path, and to look for victims.
18114 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
18115 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
18117 2001-09-07 Akim Demaille <akim@epita.fr>
18119 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
18120 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
18121 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
18122 related variables into `at_package_*'.
18123 * lib/autotest/general.m4 (AT_VICTIMS): New.
18124 (AT_INIT): Adjust for stand-alone/embedded test suites.
18125 (AS_MESSAGE_LOG_FD): Define and use it.
18126 * tests/suite.at (AT_VICTIMS): Use it.
18127 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
18130 2001-09-07 Akim Demaille <akim@epita.fr>
18132 Move toward possibly stand-alone test suites.
18134 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
18135 in addition, it introduces useless differences in logs.
18136 (AT_INIT): Let atconfig and atlocal be both optional.
18137 Adjust PATH computation.
18138 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
18140 2001-09-07 Akim Demaille <akim@epita.fr>
18142 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
18143 m4sugar/version.m4.
18145 2001-09-05 Akim Demaille <akim@epita.fr>
18147 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
18148 to avoid GCC warnings.
18151 2001-09-05 Akim Demaille <akim@epita.fr>
18153 * bin/autom4te.in: --language is -l, not -s.
18155 2001-09-05 Akim Demaille <akim@epita.fr>
18157 Be ready to handle filenames as stupid as `dnl.at', for if even
18158 the maintainer is dumb enough to do that...
18160 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
18161 excellence in M4 quotation: consider `__file__' is active.
18163 And BTW, when invoking m4, pass the --include in the right order:
18166 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
18169 2001-09-05 Akim Demaille <akim@epita.fr>
18171 * lib/Autom4te/XFile.pm: New lib file.
18172 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
18173 * bin/autoheader.in: Use it.
18175 2001-09-05 Akim Demaille <akim@epita.fr>
18177 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
18180 2001-09-05 Akim Demaille <akim@epita.fr>
18182 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
18183 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
18185 * bin/autoscan.in: Use `getopt' and `find_files' etc.
18186 Add -I, --include support.
18187 * doc/autoconf.texi (autoscan Invocation): Adjust.
18189 2001-09-05 Akim Demaille <akim@epita.fr>
18191 CVS GNU M4 doesn't like `undefine(undefined)'.
18193 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
18194 New, extracted from main.
18195 Use IO::File wherever possible.
18196 (input.m4): Be constant, use -I instead of hard coding $tmp.
18197 Therefore be a quoted heredoc.
18198 Don't invoke `_au_disable', since ac was not loaded, but just
18201 2001-08-31 Akim Demaille <akim@epita.fr>
18205 2001-08-31 Akim Demaille <akim@epita.fr>
18207 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
18209 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
18211 2001-08-31 Akim Demaille <akim@epita.fr>
18213 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
18214 serious problems handling heredocs in heredocs.
18215 Reported by Nicolas Joly.
18217 2001-08-31 Akim Demaille <akim@epita.fr>
18219 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
18220 (Making testsuite Scripts): Update.
18222 2001-08-31 Akim Demaille <akim@epita.fr>
18224 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
18226 2001-08-31 Akim Demaille <akim@epita.fr>
18228 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
18229 (testsuite Scripts): There is no such thing as `atconfig.in'.
18230 And actually one diagram is missing: test suite runtime.
18232 2001-08-31 Akim Demaille <akim@epita.fr>
18234 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
18237 2001-08-31 Akim Demaille <akim@epita.fr>
18239 * bin/autoupdate.in (@include): `installcheck' revealed the path
18240 to m4sugar was lacking!
18242 2001-08-31 Akim Demaille <akim@epita.fr>
18244 * man/Makefile.am (.x.1): We really have to pass
18245 autom4te_perllibdir.
18247 2001-08-31 Akim Demaille <akim@epita.fr>
18249 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
18250 debug scripts, in particular passing explicitly listed tests to
18253 2001-08-31 Akim Demaille <akim@epita.fr>
18255 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
18256 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
18257 Use directly autom4te, not autoconf.
18258 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
18260 2001-08-31 Akim Demaille <akim@epita.fr>
18262 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
18263 * bin/autoheader.in (%symbol): Strip arguments of macros.
18265 2001-08-31 Akim Demaille <akim@epita.fr>
18267 * doc/autoconf.texi: Catch up -I, --include changes.
18269 2001-08-31 Akim Demaille <akim@epita.fr>
18271 * bin/autom4te.in (&parse_args): Die on unknown languages.
18272 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
18274 Promote --include over --macrodir and other obsolete options.
18276 2001-08-31 Akim Demaille <akim@epita.fr>
18278 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
18279 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
18280 * bin/autom4te.in ($autoconf): Pass --force.
18281 `print $out' doesn't print `$_' but `$out'.
18282 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
18283 (autoheader): Pass --force since the test suite goes too fast for
18285 Adjust to the new autoheader messages.
18287 2001-08-31 Akim Demaille <akim@epita.fr>
18289 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
18290 Check the completeness of the #template.
18291 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
18292 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
18295 2001-08-31 Akim Demaille <akim@epita.fr>
18297 * lib/Autom4te/General.pm (&find_file, &update_file): New.
18298 * bin/autoupdate.in, bin/autoheader.in: Adjust.
18299 Drop AC_MACRODIR dead for real.
18300 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
18301 `autoheader: `config.hin' is created'.
18302 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
18304 2001-08-31 Akim Demaille <akim@epita.fr>
18306 * bin/autoheader.in: Rewrite in Perl.
18307 * tests/autoheader: Adjust.
18309 2001-08-31 Akim Demaille <akim@epita.fr>
18311 * bin/autoconf.in (--include, -I): New option.
18312 Map --localdir, --autoconf-dir onto it.
18313 Forward autom4te's options instead of interpreting them.
18314 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
18315 There is no such envvar since the inception of autom4te.cfg.
18316 * bin/autom4te.in (&parse_args): Uniquify `@include'.
18317 * bin/autoupdate.in: Adjust, and perform more control.
18318 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
18319 * tests/autoconf: Dittowise.
18321 2001-08-31 Akim Demaille <akim@epita.fr>
18323 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
18324 * bin/autom4te.in (&find_file): Support `FILE?' standing for
18326 Use -e, not -f, since /dev/null for instance is OK.
18327 (&parse_args): Adjust.
18328 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
18330 2001-08-31 Akim Demaille <akim@epita.fr>
18332 * configure.ac: Also find tested executables in bin.
18333 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
18334 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
18335 installed peer executables, only PATH is allowed to resolve it.
18336 Pass `autoconf_dir' via options, not via invisible envvars.
18337 * lib/Autom4te/General.pm (&find_peer): Remove.
18338 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
18339 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
18340 * man/Makefile.am: Let help2man rely on PATH instead of trying to
18341 find the executables for it.
18342 * tests/Makefile.am: Major cleanup. Too lazy to document...
18343 * tests/atlocal.in: Remove all the obscure envvar manipulations.
18345 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
18346 indeed related to running the test suite, while passing
18347 --autoconf-dir and others is related to running non installed
18348 Autoconf executables. So don't do that, leave it to...
18349 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
18350 * tests/autoscan: New.
18351 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
18352 refer to library files: rely on --language.
18354 2001-08-29 Akim Demaille <akim@epita.fr>
18356 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
18357 s/--set/--language/.
18359 2001-08-29 Akim Demaille <akim@epita.fr>
18361 * doc/autoconf.texi: Strip the @nodes.
18362 Suggested by Paul Eggert.
18363 (Initializing configure): Typo.
18365 2001-08-29 Akim Demaille <akim@epita.fr>
18367 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
18368 Suggested by Paul Eggert.
18370 2001-08-29 Akim Demaille <akim@epita.fr>
18372 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
18373 download in a tmp dir.
18375 2001-08-29 Akim Demaille <akim@epita.fr>
18377 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
18378 case insensitive OSes out there :(
18379 From Tim Van Holder.
18381 2001-08-29 Akim Demaille <akim@epita.fr>
18383 * lib/autom4te.in: New.
18384 * lib/Makefile.am (edit, autom4te.cfg): New.
18385 * bin/autom4te.in (BEGIN): Simplify.
18386 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
18387 (&load_configuration): New. Use it.
18388 (&parse_args): Support --mode, --set, and --melt.
18389 * bin/autoconf.in: Simplify and adjust.
18390 * tests/Makefile.am (AUTOMAKE): Use --set.
18391 * tests/atlocal.in: Adjust.
18392 * BUGS: distcheck and check are weak.
18394 2001-08-29 Akim Demaille <akim@epita.fr>
18396 * lib/autotest/general.m4: Use
18397 foo=`(command) 2>/dev/null`
18399 foo=`command` 2>/dev/null
18400 (at-devnull): Rename as...
18401 (AT-devnull): this.
18402 (--clean): Remove AT-* files too.
18403 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
18404 Reported by Nicolas Joly.
18406 2001-08-28 Akim Demaille <akim@epita.fr>
18408 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
18409 quotes inside single quotes.
18410 Reported by Nicolas Joly.
18412 2001-08-28 Kevin Ryde <user42@zip.com.au>
18414 * doc/autoconf.texi (Function Portability): Mention C right shifts.
18416 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
18418 * lib/autotest/general.m4: Reword some messages.
18419 (AT_INIT): Check for the `times' builtin before using it.
18420 Support test ranges as arguments to the testsuite.
18421 Have -e imply -d as the help text suggested.
18423 2001-08-27 Akim Demaille <akim@epita.fr>
18425 * Makefile.maint: Formatting changes.
18426 (do-po-update, po-update, cvs-update, update): New targets.
18429 2001-08-27 Akim Demaille <akim@epita.fr>
18431 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
18432 <at_cmd_line>: New.
18433 Pass it to debug-*.sh scripts.
18434 <AUTOTEST_PATH>: May contain absolute dir names.
18436 2001-08-27 Akim Demaille <akim@epita.fr>
18438 * lib/autotest/general.m4 (AT_INIT): Log the command line.
18439 Support `VAR=VAL' as arguments.
18440 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
18441 may be set via the command line.
18443 2001-08-27 Akim Demaille <akim@epita.fr>
18445 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
18446 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
18447 first the build dirs, then the src dirs.
18448 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
18450 2001-08-27 Akim Demaille <akim@epita.fr>
18452 * lib/autotest/general.m4 (AT_INIT): Output the definition of
18453 at_data_files earlier.
18454 (--clean, -c): New option.
18455 * tests/Makefile.am: Use this option.
18457 2001-08-27 Akim Demaille <akim@epita.fr>
18459 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
18460 `ac_top_builddir' to mimic Automake's vocabulary, which much more
18463 * doc/autoconf.texi (Configuration Actions): Document the vars
18464 available in commands.
18465 Emphasize the risks of collisions in init-cmds.
18467 2001-08-27 Akim Demaille <akim@epita.fr>
18469 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
18470 (Initializing configure): this new node.
18472 2001-08-27 Akim Demaille <akim@epita.fr>
18474 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
18476 2001-08-27 Akim Demaille <akim@epita.fr>
18478 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
18479 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
18481 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
18483 2001-08-27 Akim Demaille <akim@epita.fr>
18485 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
18487 * lib/autoconf/autoheader.m4: this new file.
18488 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
18489 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
18491 * lib/autoconf/autoupdate.m4: this new file.
18493 2001-08-27 Akim Demaille <akim@epita.fr>
18495 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
18496 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
18497 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
18499 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
18500 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
18502 2001-08-27 Akim Demaille <akim@epita.fr>
18504 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
18505 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
18506 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
18507 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
18508 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
18509 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
18510 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
18511 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
18512 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
18513 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
18514 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
18515 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
18516 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
18517 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
18518 (_AC_OUTPUT_SUBDIRS): Move to...
18519 * lib/autoconf/status.m4: this new file.
18520 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
18521 * tests/Makefile.am, tests/suite.at: Adjust.
18523 2001-08-27 Akim Demaille <akim@epita.fr>
18527 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
18528 (AMTAR): Help automake define it.
18529 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
18530 needed, 1.5 can have a macro and a target with the same name.
18531 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
18532 * m4/strip.m4: New.
18533 * m4/init.m4, m4/sanity.m4: Update.
18534 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
18535 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
18536 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
18537 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
18539 2001-08-27 Akim Demaille <akim@epita.fr>
18541 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
18543 * lib/autoconf/version.in: Remove.
18544 * lib/m4sugar/version.in: New.
18545 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
18547 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
18548 the name of the directory they're in, instead of the filename,
18549 since version.m4 is now in m4sugar, but m4_acversion must not be
18550 classified as an Autoconf macro.
18551 ($input_m4): Don't qualify the path to m4sugar.
18552 Rather, pass autoconf_dir to m4.
18553 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
18554 * tests/suite.at: Require 2.52c.
18556 2001-08-27 Akim Demaille <akim@epita.fr>
18558 testsuite.log should include config.log.
18560 * lib/autotest/autotest.m4: New.
18561 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
18562 * tests/suite.at : Adjust.
18563 (AT_INIT): Log config.log.
18564 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
18565 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
18566 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
18567 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
18568 of config.log on traps.
18569 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
18570 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
18571 for config.status'.
18572 Open the log as soon as possible.
18573 Use the same log introduction as configure's.
18575 2001-08-22 Paul Eggert <eggert@twinsun.com>
18577 * doc/autoconf.texi (Indices): New node.
18578 Move indices out of the top level menu and into this submenu.
18580 2001-08-22 Akim Demaille <akim@epita.fr>
18582 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
18584 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
18586 2001-08-22 Akim Demaille <akim@epita.fr>
18588 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
18589 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
18590 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
18591 * lib/autoconf/programs.m4: here.
18592 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
18593 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
18594 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
18595 * lib/autoconf/programs.m4: here.
18596 (_AC_DECL_YYTEXT): Rename as...
18597 (_AC_PROG_LEX_YYTEXT_DECL): this.
18598 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
18599 * tests/Makefile.am, tests/suite.am: Adjust.
18601 2001-08-22 Akim Demaille <akim@epita.fr>
18603 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
18605 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
18607 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
18608 * lib/autoconf/functions.m4: here.
18609 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
18610 (AH_CHECK_LIB): Move to...
18611 * lib/autoconf/libs: this new file.
18612 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
18613 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
18614 * lib/autoconf/libs.m4: here.
18615 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
18617 2001-08-22 Akim Demaille <akim@epita.fr>
18619 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
18620 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
18621 (AC_SITE_LOAD): Better logging of config.site.
18623 2001-08-20 Akim Demaille <akim@epita.fr>
18625 * configure.ac (AT_CONFIG): Fix the path.
18626 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
18629 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
18631 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
18632 program with AC_LANG_PROGRAM before feeding it to
18633 AC_COMPILE_IFELSE. Cleanup grep usage.
18635 2001-08-20 Akim Demaille <akim@epita.fr>
18637 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
18638 * NEWS, README, README-alpha, TODO, tests/README: This package is
18639 `Autoconf', not `autoconf' (the executable).
18641 2001-08-20 Akim Demaille <akim@epita.fr>
18643 Info readers seem to need `Index' in the index node title :(
18645 * doc/autoconf.texi: Reverse the 2001-08-15 change which
18646 simplified index node names.
18648 2001-08-20 Akim Demaille <akim@epita.fr>
18650 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
18651 arguments are not literals.
18652 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
18653 Specify the output variables, and macros defined.
18655 2001-08-20 Akim Demaille <akim@epita.fr>
18657 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
18658 (Examining Syntax) <AC_TRY_COMPILE>
18659 (Examining Libraries) <AC_TRY_LINK>
18660 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
18662 Reported by Werner Lemberg.
18664 2001-08-20 Akim Demaille <akim@epita.fr>
18666 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
18667 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
18668 Load atlocal late enough to dump it in the log.
18669 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
18671 2001-08-20 Akim Demaille <akim@epita.fr>
18673 * tests/torture.at (Configuring subdirectories): New test.
18674 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
18676 * m4/atconfig.m4: Be sure the let $[0] be expandable.
18677 (top_srcdir): Fix its computation.
18679 2001-08-20 Akim Demaille <akim@epita.fr>
18681 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
18682 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
18684 Create `atconfig' automagically.
18685 Configure atlocal.in if present.
18686 * tests/atconfig.in: Remove.
18687 * tests/atlocal.in: New.
18688 * tests/Makefile.am: Adjust.
18690 2001-08-20 Akim Demaille <akim@epita.fr>
18692 Huh!?!?! There are still some user EOF tags used, which prevents
18693 their use in AC_CONFIG_COMMANDS for instance...
18695 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
18696 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
18697 `_CSEOF', or `_ATEOF', as appropriate.
18698 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
18699 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
18701 2001-08-20 Akim Demaille <akim@epita.fr>
18703 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
18704 * tests/semantics.at, tests/tools.at, tests/torture.at:
18705 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
18707 2001-08-20 Akim Demaille <akim@epita.fr>
18709 Autotest invokes M4sh's initialization.
18711 * lib/autotest/general.m4: Adjust the diversion names.
18712 (AT_INIT): Run AS_INIT.
18713 Use the BINSH diversion to invoke /bin/sh.
18714 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
18715 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
18717 2001-08-20 Akim Demaille <akim@epita.fr>
18719 Let M4sh have its own diversions.
18721 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
18722 (_m4_divert(NOTICE)): Rename as...
18723 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
18724 (_m4_divert(HEADER-COMMENT)): these.
18725 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
18726 (_m4_divert(NOTICE)): New, for Libtool.
18727 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
18728 long ago with `_m4_divert(GROW)'.
18729 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
18731 2001-08-20 Akim Demaille <akim@epita.fr>
18733 * tests/base.at, tests/compile.at, tests/foreign.at,
18734 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
18735 * tests/semantics.at, tests/suite.at, tests/tools.at,
18736 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
18738 2001-08-20 Akim Demaille <akim@epita.fr>
18740 * bin/autom4te.in (handle_output): Handle @__@.
18742 2001-08-20 Akim Demaille <akim@epita.fr>
18744 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
18745 * lib/autotest/general.m4: Adjust the license.
18747 2001-08-17 Paul Eggert <eggert@twinsun.com>
18749 * doc/autoconf.texi (Function Portability): Mention snprintf,
18750 following up on a suggestion by Kevin Ryde.
18752 2001-08-17 Akim Demaille <akim@epita.fr>
18754 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
18755 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
18757 2001-08-17 Akim Demaille <akim@epita.fr>
18759 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
18760 `$0.log' as for projects where testsuite is in src, we'd have
18761 testsuite.log created in src.
18763 2001-08-17 Akim Demaille <akim@epita.fr>
18765 * bin/autom4te.in (&parse_args): Recognize --normalize.
18767 2001-08-17 Akim Demaille <akim@epita.fr>
18769 Start implementing the AC_CHECK_HEADER transition scheme.
18771 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
18772 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
18773 (AC_CHECK_HEADER): Use them.
18775 2001-08-17 Akim Demaille <akim@epita.fr>
18777 * doc/autoconf.texi: Work around Texinfo buglets.
18778 (Transformation Rules): One example is enough, users are expected
18779 to have their brains on. And BTW, use DESTDIR.
18780 (dvar): New macro. Use it.
18782 2001-08-17 Akim Demaille <akim@epita.fr>
18784 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
18785 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
18786 looking for ChangeLogs.
18788 2001-08-17 Akim Demaille <akim@epita.fr>
18790 * bin/autom4te.in: --normalize is a new option.
18791 * bin/autoconf.in: Use it.
18793 2001-08-17 Akim Demaille <akim@epita.fr>
18795 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
18796 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
18798 2001-08-16 Paul Eggert <eggert@twinsun.com>
18800 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
18803 2001-08-15 Akim Demaille <akim@epita.fr>
18805 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
18808 2001-08-15 Akim Demaille <akim@epita.fr>
18810 * doc/autoconf.texi (pr): New index.
18811 (prindex, findex): Use, merge, and output them.
18812 (Environment Variable Index, Output Variable Index)
18813 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
18814 (Autotest Macro Index): Rename as...
18815 (Environment Variables, Output Variables,Preprocessor Symbols)
18816 (Autoconf Macros, M4 Macros, Autotest Macros): these.
18817 * doc/install.texi: Use @command.
18818 (Environment Variables): Rename as...
18819 (Defining Variables): this.
18821 2001-08-15 Akim Demaille <akim@epita.fr>
18823 * doc/autoconf.texi (Function Portability): sprintf's return
18827 2001-08-15 Akim Demaille <akim@epita.fr>
18829 * Makefile.maint (CVS): New.
18830 (local-check): Run changelog-check. last.
18831 (alpha): Don't depend upon local-check, since...
18832 (cvs-dist): depends upon it.
18834 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
18836 * tests/Makefile.am: Use a clean-local rule to remove
18837 autom4te.cache (it's a directory, not a file.
18838 * Makefile.am: Ditto (but maintainer-clean-local).
18840 2001-08-15 Akim Demaille <akim@epita.fr>
18842 * bin/autom4te.in (@m4_warning): New.
18843 (&handle_m4): Use it.
18844 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
18845 warnings are issued at each run.
18846 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
18847 is in the src tree.
18849 2001-08-15 Akim Demaille <akim@epita.fr>
18851 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
18852 don't waste time running `autoupdate --version' works.
18853 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
18855 2001-08-13 Akim Demaille <akim@epita.fr>
18857 * doc/autoconf.texi (ma): Rename this index as...
18860 2001-08-13 Akim Demaille <akim@epita.fr>
18862 * Makefile.am: Remove dead code and dead comments.
18863 (pdf, html): New targets.
18864 * doc/autoconf.texi (Using Autotest): New chapter.
18865 * doc/Makefile.am (pdf): New targets.
18866 (CLEANFILES): Adjust.
18868 2001-08-13 Akim Demaille <akim@epita.fr>
18870 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
18871 duration of the test suite.
18873 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
18875 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
18876 endianness for comparison instead of relying on AT_CHECK_ENV.
18878 2001-08-11 Paul Eggert <eggert@twinsun.com>
18880 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
18881 to the INSTALL file.
18883 2001-08-11 Paul Eggert <eggert@twinsun.com>
18885 * NEWS: The autoconf manual now is distributed under the terms
18886 of the GNU Free Documentation License.
18888 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
18889 Add an appendix "Copying This Manual" for the FDL.
18891 * doc/fdl.texi: New file, from
18892 <http://www.gnu.org/licenses/fdl.texi>.
18894 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
18896 2001-08-10 Paul Eggert <eggert@twinsun.com>
18898 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
18899 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
18900 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
18901 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
18902 m4/sanity.m4, tests/README, tests/aclocal.m4,
18903 tests/atspecific.m4, tests/base.at, tests/compile.at,
18904 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
18905 tests/semantics.at, tests/suite.at, tests/tools.at,
18906 tests/torture.at: Add copyright notice.
18908 * tests/mktests.sh: Update year in copyright notice.
18910 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
18912 * tests/semantics.at (AC_C_BIGENDIAN): New test.
18914 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
18916 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
18917 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
18918 * doc/autoconf.texi (C Compiler Characteristics): Update
18919 documentation for AC_C_BIGENDIAN.
18921 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
18923 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
18924 magic values from an object file when cross-compiling.
18925 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
18927 2001-08-10 Akim Demaille <akim@epita.fr>
18929 * bin/autom4te.in (&handle_output): Don't use `grep' with side
18931 Suggested by Russ Allbery.
18933 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
18935 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
18936 current $prefix to the sub-configures.
18938 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
18940 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
18941 extension (needed on BeOS). Reported by Guido van Rossum.
18943 2001-08-09 Akim Demaille <akim@epita.fr>
18945 * bin/autom4te.in ($icache): Load it only if older than autom4te.
18947 2001-08-07 Akim Demaille <akim@epita.fr>
18949 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
18951 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
18952 No need to remove the files before and after the each test, before
18953 each test and at the end of the suite is enough.
18954 Display only the children `times', not the shell's.
18955 If the test failed or was skipped, at-times is not available.
18957 2001-08-07 Akim Demaille <akim@epita.fr>
18959 Always produce testsuite.log, including when there are no
18960 failures. This helps getting information on skipped tests, and
18961 duration of the tests. Err, implement the latter btw.
18963 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
18964 Dump information on the first run of each test.
18965 (AT_CLEANUP): Create `at-times' containing the duration of the
18968 2001-08-07 Akim Demaille <akim@epita.fr>
18970 The use of `dumpstat' revealed that `len' was used although it
18971 should not. m4_text_wrap was using it, but in the Autoconf world
18972 where it is legal. Hence (i) test M4sh in its own world, not
18973 Autoconf's, and (ii), ahem, fix the bug :)
18975 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
18976 does not like `' instead of [].
18977 (AT_INIT): Forbid `^_?AT_'.
18978 And don't output such tokens.
18979 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
18980 `script.as', and `autom4te.cache'.
18981 Remove `empty' and `macro' which are no longer used.
18982 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
18983 * tests/m4sugar.at: Use it.
18984 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
18986 2001-08-07 Akim Demaille <akim@epita.fr>
18988 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
18990 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
18992 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
18994 2001-08-04 Akim Demaille <akim@epita.fr>
18996 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
18997 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
18999 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
19000 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
19001 (AC_F77_MAIN): Likewise.
19003 2001-08-04 Akim Demaille <akim@epita.fr>
19005 Don't rely on M4sugar outputting the patterns in files, since we
19006 might process the output _without_ running m4, hence without these
19009 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
19010 * bin/autom4te.in (@Request::includes): Remove, unused.
19011 (@Request::source): Rename as...
19012 (@Request::input): this.
19013 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
19014 (&handle_output): Fetch the patterns from the traces.
19015 `$forbidden' and `$allowed' are constant: use m//o.
19016 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
19017 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
19019 2001-08-04 Akim Demaille <akim@epita.fr>
19021 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
19022 autoconf', i.e., in addition to caching traces, cache the output.
19024 * bin/autom4te.in (Request::cache): Rename as...
19025 (Request::id): this.
19026 ($cache, $icache, $tcache, $ocache): New.
19027 (&handle_m4): Save M4 output in the cache instead of $tmp.
19028 (&handle_output): Adjust.
19029 (&up_to_date_p): Check that the output cache is up to date too.
19030 (top level): Run `&handle_m4' iff force or the cache is invalid.
19031 Run `&handle_output' if the output cache is more recent.
19033 2001-08-04 Akim Demaille <akim@epita.fr>
19035 * bin/autom4te.in ($force): New.
19036 (&parse_args, &print_usage): -f, --force is a new option.
19037 (&handle_output): CPP directives might have spaces after `#'.
19038 (&parse_args): The first file only can be frozen.
19040 2001-08-04 Akim Demaille <akim@epita.fr>
19042 Don't let autom4te compute the `include' traces several times:
19043 first check that the trace cache file is up to date, and then
19044 compare its timestamp with that of the output.
19046 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
19047 the preamble. Don't require 5.005 as Autom4te::General does it,
19048 and better yet (use `use', not `require'!).
19049 * lib/Autom4te/Struct.pm: Rename the last occurrences of
19050 Class::Struct as Autom4te::Struct.
19051 * lib/Autom4te/General.pm (File::stat): Use it.
19052 (&mtime): New, export it.
19053 * bin/autom4te.in: Use it.
19054 Declare `$req' is invalid if it is outdated.
19055 Don't declare it valid before saving it if something went wrong.
19057 2001-08-04 Akim Demaille <akim@epita.fr>
19059 Autom4te shall not encode Autoconf data, and preselecting traces
19060 must be proposed to the users.
19062 * bin/autom4te.in (@required_trace): Remove.
19064 (&parse_args, &print_usage): -p, --preselect is a new option.
19065 (&up_to_date_p): Adjust.
19066 * bin/autoconf.in: Preselect some Autoconf macros.
19068 2001-08-04 Akim Demaille <akim@epita.fr>
19070 * tests/tools.at (autoconf --trace: user macros): Check traces on
19071 macros invoked without arguments, and macros invoked with multiple
19074 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
19076 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
19079 2001-08-03 Akim Demaille <akim@epita.fr>
19081 * bin/autoconf.in ($@): Work around the usual sh bug.
19084 2001-08-03 Akim Demaille <akim@epita.fr>
19086 Clean up the handling of the M4 builtins tracing exception.
19088 * bin/autom4te.in (Request::request): Don't complete M4 builtins
19090 (@m4_builtins): Rename as...
19091 (@m4_builtin): this.
19092 (%m4_builtin_alternate_name): New.
19093 (&parse_args): Complete the trace requests with alternate names.
19094 (&handle_traces): Hence no longer do it here.
19095 (&trace_requests): Remove, unused.
19097 2001-08-03 Akim Demaille <akim@epita.fr>
19099 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
19100 m4_if, and m4_wrap.
19102 2001-08-03 Akim Demaille <akim@epita.fr>
19104 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
19105 (m4_divert_pop): Dump the whole diversion stack when a diversion
19107 * bin/autom4te.in (&handle_output): Remember of the first
19108 occurrence of a possibly undefined macro, not the last.
19109 Complain about the possibly undefined macros in the same order as
19110 the appear in the output.
19111 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
19112 * tests/tools.at (autoconf: forbidden tokens, basic)
19113 (autoconf: forbidden tokens, exceptions): No longer sort
19114 autoconf's stderr, as it is now deterministic.
19115 Check that `dnl' is caught.
19117 2001-08-01 Akim Demaille <akim@epita.fr>
19119 * configure.ac: Bump to 2.52c.
19121 2001-08-01 Akim Demaille <akim@epita.fr>
19125 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
19127 2001-08-01 Akim Demaille <akim@epita.fr>
19131 2001-08-01 Akim Demaille <akim@epita.fr>
19133 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
19136 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
19137 `END', as `Autom4te::General::END' will be triggered.
19138 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
19139 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
19140 system to run `mv', `rm', and `cmp'.
19142 2001-08-01 Akim Demaille <akim@epita.fr>
19144 * lib/Autom4te/General.pm (&unique): New.
19145 * bin/autoscan.in (&output): Use it to issue trace requests once.
19147 2001-08-01 Akim Demaille <akim@epita.fr>
19149 * lib/Autom4te/General.pm: New.
19150 * bin/autom4te.in (Autom4te::General): Use it.
19151 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
19152 (&find_configure_ac, &find_slave): Remove.
19153 * bin/autoscan.in: Likewise.
19154 * bin/autoupdate.in: Likewise.
19156 2001-08-01 Akim Demaille <akim@epita.fr>
19158 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
19159 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
19160 * bin: here, new directory.
19161 * lib/Autoconf: Rename as...
19162 * lib/Autom4te: this, to please case insensitive junkie OSes.
19164 2001-08-01 Akim Demaille <akim@epita.fr>
19166 * autom4te.in ($m4): Handle the --nesting-limit.
19167 * autoconf.in (M4): Remove.
19169 2001-08-01 Akim Demaille <akim@epita.fr>
19171 * autoconf.in ($AWK): Remove, no longer used.
19172 * test/tools.at: Use AT_CHECK_AUTOCONF.
19173 (AWK portability): Remove, for autoconf no longer uses AWK.
19174 (Syntax of the Perl scripts): New.
19175 * configure.ac: autoconf no longer needs an AWK with a good
19177 Use a static test on AC_PACKAGE_VERSION.
19178 * autom4te.in (&up_to_date_p): Output depends on the arguments.
19179 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
19180 * tests/atconfig.in (PERL): New.
19182 2001-08-01 Akim Demaille <akim@epita.fr>
19184 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
19185 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
19186 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
19187 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
19188 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
19189 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
19190 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
19191 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
19192 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
19193 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
19194 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
19195 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
19196 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
19197 * lib/autoconf/c.m4: here, new file.
19199 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
19200 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
19201 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
19202 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
19203 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
19204 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
19205 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
19206 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
19207 (AC_F77_FUNC): Move to...
19208 * lib/autoconf/fortran.m4: here, new file.
19210 2001-08-01 Akim Demaille <akim@epita.fr>
19212 * acfunctions.m4: Rename as...
19213 * lib/autoconf/functions.m4: this.
19214 * acgeneral.m4: Rename as...
19215 * lib/autoconf/general.m4: this.
19216 * acheaders.m4: Rename as...
19217 * lib/autoconf/headers.m4: this.
19218 * aclang.m4: Rename as...
19219 * lib/autoconf/lang.m4: this.
19220 * acoldnames.m4: Rename as...
19221 * lib/autoconf/oldnames.m4: this.
19222 * acspecific.m4: Rename as...
19223 * lib/autoconf/specific.m4: this.
19224 * actypes.m4: Rename as...
19225 * lib/autoconf/types.m4: this.
19226 * autoconf.m4: Rename as...
19227 * lib/autoconf/autoconf.m4: this.
19229 * m4sugar.m4: Rename as...
19230 * lib/m4sugar/m4sugar.m4: this.
19231 * m4sh.m4: Rename as...
19232 * lib/m4sugar/m4sh.m4: this.
19234 * tests/atgeneral.m4: Rename as...
19235 * lib/autotest/general.m4: this.
19237 * acfunctions: Rename as...
19238 * lib/autoscan/functions: this.
19239 * acheaders: Rename as...
19240 * lib/autoscan/headers: this.
19241 * acidentifiers: Rename as...
19242 * lib/autoscan/identifiers: this.
19243 * aclibraries: Rename as...
19244 * lib/autoscan/libraries: this.
19245 * acmakevars: Rename as...
19246 * lib/autoscan/makevars: this.
19247 * acprograms: Rename as...
19248 * lib/autoscan/programs: this.
19250 2001-08-01 Akim Demaille <akim@epita.fr>
19252 * doc/autoconf.texi: Moving/deleting open files is not portable.
19253 Portability issues for `.' (source), and more information about sed.
19255 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
19257 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
19258 which has a special meaning and is not a reference to libibmil.a.
19259 Reported by Matteo Frigo.
19261 2001-07-25 Pavel Roskin <proski@gnu.org>
19263 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
19266 2001-07-25 Akim Demaille <akim@epita.fr>
19268 * autoconf.in: Try to define the variables before using them.
19269 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
19270 instead of `$perllibdir'.
19271 * tests/atconfig.in ($autom4te_perllibdir): Export it.
19273 2001-07-25 Akim Demaille <akim@epita.fr>
19275 * autoconf.in (ac_LF_and_DOT): Remove, unused.
19277 2001-07-24 Akim Demaille <akim@epita.fr>
19279 Let autoconf use autom4te for traces.
19281 * autoconf.in ($task, task trace): Remove, merely pass --trace to
19283 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
19284 (Because I found no way for autom4te to accept `-').
19285 * autom4te.in (&Request::request): Beware of M4 builtins.
19286 (END): Don't try to remove the content of an empty dir.
19287 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
19288 (&handle_output): Set a default value to `$forbidden'.
19289 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
19290 ($autoconf): Pass --debug and --verbose.
19291 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
19294 2001-07-24 Akim Demaille <akim@epita.fr>
19296 Let autoconf use autom4te to create configure.
19298 * autoconf.in ($automate): New var.
19299 (task script): Use autom4te.
19300 * autom4te.in (File::Spec): Use it.
19302 (&parse_args): --warning is -W, not -w.
19303 Find the top level files.
19304 (&handle_m4): Pass the warnings flags.
19305 Don't report verbosely m4's failures, unless requested.
19306 (&handle_output): Don't complain for forbidden tokens in comments.
19307 Be sure to report all the forbidden tokens within a single line.
19308 (&trace_format_to_m4): Preserve `$_'.
19309 (&handle_traces): Sort the output macros.
19310 (&up_to_date_p): Find the files before trying to get its time stamp.
19312 2001-07-24 Akim Demaille <akim@epita.fr>
19314 * Makefile.am: Ship, build and install Autom4te.
19315 (SUBDIRS): Add lib.
19316 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
19317 * configure.in: Require Perl.
19318 * man/autom4te.in: New.
19320 2001-07-19 Paul Eggert <eggert@twinsun.com>
19322 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
19323 example, rather than (exit 1); exit (which isn't portable).
19325 2001-07-18 Akim Demaille <akim@epita.fr>
19329 2001-07-18 Akim Demaille <akim@epita.fr>
19331 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
19332 was run, while they are needed also when it is expanded.
19333 Reported by Nicolas Joly.
19335 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
19336 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
19337 AC_F77_DUMMY_MAIN being expanded.
19339 2001-07-18 Akim Demaille <akim@epita.fr>
19341 * configure.in: Bump to 2.51a.
19343 2001-07-17 Akim Demaille <akim@epita.fr>
19347 2001-07-17 Akim Demaille <akim@epita.fr>
19349 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
19350 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
19352 2001-07-17 Akim Demaille <akim@epita.fr>
19354 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
19355 used. Well, then use the prototypes when you can, and runtime as
19357 Reported by Artur Frysiak
19359 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
19360 (AC_FUNC_GETPGRP): Use it.
19361 First try to compile with 0-ary or 1-ary calls.
19363 2001-07-17 Akim Demaille <akim@epita.fr>
19365 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
19369 2001-07-17 Akim Demaille <akim@epita.fr>
19371 * Makefile.maint: Sync. with cppi 1.10.
19373 2001-07-17 Akim Demaille <akim@epita.fr>
19375 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
19376 AC_F77_DUMMY_MAIN has been run.
19377 From Pavel Roskin and Steven G. Johnson.
19379 2001-07-17 Akim Demaille <akim@epita.fr>
19381 * configure.in: Rename as...
19382 * configure.ac: this.
19384 2001-07-17 Akim Demaille <akim@epita.fr>
19386 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
19389 * Makefile.maint (release-archive-dir): Rename as...
19390 (release_archive_dir): this, so that it can be specialized in
19393 2001-07-14 Akim Demaille <akim@epita.fr>
19395 * configure.in: Bump to 2.50d.
19397 2001-07-14 Akim Demaille <akim@epita.fr>
19400 * Makefile.maint (alpha): Typo.
19402 2001-07-14 Akim Demaille <akim@epita.fr>
19404 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
19406 2001-07-14 Akim Demaille <akim@epita.fr>
19408 * config/config.guess, config/config.sub, config/texinfo.tex
19409 * doc/standards.texi, doc/make-stds.texi: Update.
19411 2001-07-14 Akim Demaille <akim@epita.fr>
19413 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
19415 2001-07-14 Akim Demaille <akim@epita.fr>
19417 * Makefile.maint (maintainer-check): Rename as...
19418 (maintainer-distcheck): this.
19419 (changelog-check, static-check): New.
19422 2001-07-14 Kevin Ryde <user42@zip.com.au>
19424 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
19425 for CXX is g++, not gcc.
19427 2001-07-14 Akim Demaille <akim@epita.fr>
19429 * doc/autoconf.texi (Files): New subsection.
19431 2001-07-14 Akim Demaille <akim@epita.fr>
19433 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
19435 (Generic Compiler Characteristics): this.
19436 (C++ Compiler): New subsection.
19438 2001-07-14 Akim Demaille <akim@epita.fr>
19440 * autoscan.in: Use IO::File.
19441 Adjust all the routines to use it.
19442 ($log): New file (autoscan.log).
19443 (output): Dump detailed logs into $log, and a shortened version to
19445 (&scan_makefile): Refine the regexp catching tokens in the code.
19446 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
19447 and the `configure.ac' checking feature.
19449 2001-07-12 Akim Demaille <akim@epita.fr>
19451 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
19452 Reported by Michael Elizabeth Chastain.
19454 * autoconf.in: Refuse such AWK.
19455 * configure.in: Likewise.
19456 * Makefile.am (acversion.m4): Do not use move-if-change this file
19458 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
19460 2001-07-10 Jens Petersen <petersen@redhat.com>
19462 * autoscan.in (&scan_makefile): Improve programs regexp to parse
19463 things like "g++", "file.c" and "some-conf" as tokens.
19464 (&scan_file): Match C++ files extensions.
19465 If the filename extension is C++ then ask for c++.
19467 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
19469 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
19470 AC_TRY_LINK_FUNC, to check whether defining a dummy
19471 main-like routine is needed for linking with F77 libs.
19473 2001-07-05 Pavel Roskin <proski@gnu.org>
19475 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
19477 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
19480 2001-07-05 Akim Demaille <akim@epita.fr>
19482 * Makefile.am (move_if_change): New. Use it instead of `mv'.
19483 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
19485 Reported by Nicolas Joly.
19487 2001-07-04 Akim Demaille <akim@epita.fr>
19489 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
19491 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
19492 warnings from compilers.
19493 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
19494 for all the compilers, not only GNU. Hence move from here...
19495 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
19497 2001-07-04 Akim Demaille <akim@epita.fr>
19499 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
19500 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
19503 2001-07-04 Akim Demaille <akim@epita.fr>
19505 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
19506 the ``strings.h'' change claimed below.
19508 2001-07-04 Akim Demaille <akim@epita.fr>
19510 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
19512 2001-07-04 Akim Demaille <akim@epita.fr>
19514 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
19515 strings.h if usable with string.h.
19516 Suggested by Paul Eggert.
19518 2001-07-04 Akim Demaille <akim@epita.fr>
19520 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
19521 From Jens Petersen.
19523 2001-07-03 Akim Demaille <akim@epita.fr>
19525 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
19528 2001-07-03 Akim Demaille <akim@epita.fr>
19530 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
19531 compiler, not the preprocessor.
19532 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
19533 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
19535 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
19536 earlier if there are.
19538 2001-07-03 Akim Demaille <akim@epita.fr>
19540 * autoscan.in ($initfile): Remove.
19541 (&find_file): Rename as...
19542 (&scan_file): this.
19543 Immediately scan the current file, instead of gathering them, and
19544 later having them handled by &scan_files.
19545 (&scan_files): Merely invoke Find::File.
19548 2001-07-02 Akim Demaille <akim@epita.fr>
19550 * autoscan.in: Formatting changes, matching the invocation order.
19551 (File::Find): Use it instead of Perl 4's `find.pl'.
19552 (&wanted): Rename as...
19553 (&find_file): this.
19555 2001-07-01 Pavel Roskin <proski@gnu.org>
19557 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
19558 break in the argument to AC_TRY_LINK_FUNC.
19559 (AC_F77_MAIN): Remove conftest* after using break in the
19560 argument to AC_TRY_LINK.
19562 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
19564 Add alternate 'main' routine detection for linking C/C++ with Fortran,
19565 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
19567 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
19568 dummy alternate main is required even if the user provides her own
19570 (AC_F77_MAIN): New macro to detect whether it is possible to
19571 provide an alternate 'main' function name, using the 'main' from
19572 the Fortran libraries.
19573 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
19574 cross-language link tests can be performed successfully.
19575 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
19576 after $LIBS, for consistency; this should be the general rule since
19577 the user may want to link to Fortran libraries that require $FLIBS.
19578 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
19580 2001-06-29 Pavel Roskin <proski@gnu.org>
19582 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
19583 at-stdout and at-stderr instead of removing the newline
19584 from the echo output, which is not guaranteed to work.
19586 2001-06-28 Jens Petersen <petersen@redhat.com>
19588 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
19589 confdefs.h when non-zero.
19591 2001-06-28 Akim Demaille <akim@epita.fr>
19593 * configure.in: Bump to 2.50c.
19595 2001-06-26 Akim Demaille <akim@epita.fr>
19599 2001-06-26 Akim Demaille <akim@epita.fr>
19603 2001-06-25 Pavel Roskin <proski@gnu.org>
19605 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
19606 argument, AUTOCONF-FLAGS.
19607 * tests/mktests.sh (update_exclude_list): Add
19608 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
19609 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
19610 AC_FUNC_WAIT3 with "-W no-obsolete".
19612 2001-06-25 Akim Demaille <akim@epita.fr>
19614 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
19616 2001-06-25 Akim Demaille <akim@epita.fr>
19618 * autoscan.in (%macro): Now maps from word to list of macros.
19619 (&init_tables): Die when a word which is already handled by
19620 explicit macros is mapped to the default macro.
19621 (&print_unique): Remove, inlined in...
19622 (&output_kind): here.
19623 (File::Basename): Use it.
19624 (&output): Sort the CONFIG_FILES.
19625 * acheaders: Normalize.
19626 * acfunctions: Likewise.
19628 2001-06-25 Akim Demaille <akim@epita.fr>
19630 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
19631 characteristics in the logs.
19632 Suggested by Mo DeJong.
19634 2001-06-24 Akim Demaille <akim@epita.fr>
19636 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
19637 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
19638 * doc/autoconf.texi (Autoconf 2.13): New section.
19640 2001-06-24 Akim Demaille <akim@epita.fr>
19642 * autoconf.in (Task traces): Separate the error messages from the
19643 traces to improve robustness.
19645 2001-06-23 Akim Demaille <akim@epita.fr>
19647 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
19648 three as failures are unlikely, and speed matters.
19650 2001-06-23 Akim Demaille <akim@epita.fr>
19652 * doc/autoconf.texi (Redefined M4 Macros): New.
19654 2001-06-23 Akim Demaille <akim@epita.fr>
19656 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
19657 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
19660 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
19662 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
19663 config.status targets to after the evaluation of the INIT-CMDS.
19664 Double quote config.status targets (used to be single quoted).
19666 2001-06-23 Akim Demaille <akim@epita.fr>
19668 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
19669 Check the content of the created file.
19670 Check the ./config.status command line invocation.
19672 2001-06-23 Akim Demaille <akim@epita.fr>
19674 * tests/foreign.at (Libtool): Reject prehistoric versions.
19676 2001-06-23 Akim Demaille <akim@epita.fr>
19678 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
19679 preexisting files matching a.*.
19681 2001-06-23 Akim Demaille <akim@epita.fr>
19683 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
19685 * doc/autoconf.texi (AC_ARG_VAR): Update.
19687 2001-06-21 Akim Demaille <akim@epita.fr>
19689 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
19690 precious variables have changed.
19691 * tests/torture.at (AC_ARG_VAR): Adjust.
19693 2001-06-21 Akim Demaille <akim@epita.fr>
19695 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
19696 but some sed choke on multiple `;', and other tools (e.g.,
19697 Automake), include the separator themselves.
19699 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
19701 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
19703 * doc/autoconf.texi (Functions Portability): Rename as...
19704 (Function Portability): this.
19705 (Function Portability): Document potential problems with unlink().
19707 2001-06-19 Paul Eggert <eggert@twinsun.com>
19709 * NEWS, doc/autoconf.texi: Document quadrigraphs.
19711 2001-06-18 Akim Demaille <akim@epita.fr>
19713 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
19715 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
19717 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
19718 (_AC_FUNC_VFORK): this.
19719 Remove AC_DEFINEs and don't guess cross-compilation values.
19720 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
19721 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
19722 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
19723 vfork doesn't work.
19724 Guess values if cross-compiling, but warn.
19725 * acfunctions: Add AC_FUNC_FORK.
19726 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
19727 and vfork appropriately.
19729 2001-06-18 Akim Demaille <akim@epita.fr>
19731 * doc/autoconf.texi (Functions Portability): New section.
19733 2001-06-18 Akim Demaille <akim@epita.fr>
19735 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
19737 Suggested by Andreas Schwab.
19739 2001-06-18 Akim Demaille <akim@epita.fr>
19741 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
19742 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
19743 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
19744 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
19745 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
19746 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
19747 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
19750 2001-06-18 Akim Demaille <akim@epita.fr>
19752 * doc/autoconf.texi (ms): New index.
19753 (Macro Index): Rename as...
19754 (Autoconf Macro Index): this.
19755 (M4 Macro Index): New appendix.
19756 (Programming in M4): New chapter.
19757 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
19758 (Quoting): Rename as...
19759 (M$ Quotation): this.
19760 Be part of `Programming in M4).
19762 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
19764 * tests/torture.at (AC_ARG_VAR): Set variables and export them
19765 in separate statements for compatibility with Tru64 v5.1.
19767 2001-06-17 Akim Demaille <akim@epita.fr>
19769 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
19770 current values of the precious variables, not the previously
19772 Pass precious variables which are set to config.status.
19773 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
19774 * tests/torture.at (AC_ARG_VAR): New.
19776 2001-06-15 Paul Eggert <eggert@twinsun.com>
19778 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
19779 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
19780 and explain why and how to replace them.
19781 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
19782 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
19784 2001-06-15 Akim Demaille <akim@epita.fr>
19786 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
19787 Reported by Bruno Haible.
19789 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
19790 (_AC_ARG_VAR_PRECIOUS): to here.
19792 2001-06-15 Pavel Roskin <proski@gnu.org>
19794 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
19795 an unused pointer use cast to this type and `if' statement to
19796 avoid warnings from the compiler.
19797 (AC_HEADER_TIME): Likewise.
19798 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
19799 in `if' statement to avoid warnings from the compiler. Declare
19800 ac_aggr static to avoid the need to initialize it.
19802 2001-06-14 Akim Demaille <akim@epita.fr>
19804 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
19807 2001-06-13 Akim Demaille <akim@epita.fr>
19809 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
19810 Suggested by Alexander Mai.
19812 2001-06-13 Akim Demaille <akim@epita.fr>
19814 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
19815 sys/types.h and sys/stat.h, and check for them.
19817 2001-06-13 Akim Demaille <akim@epita.fr>
19819 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
19822 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
19824 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
19825 succeeds and only try adding libdnet upon a failure.
19827 2001-06-12 Akim Demaille <akim@epita.fr>
19829 * autoscan.in (&output_kind): Output the comment only if it exists.
19830 (%kind_comment): Add entry for `programs'.
19831 (&output_programs): Use &output_kind.
19832 (&output_functions, &output_identifiers, &output_headers)
19833 (&output_programs): Inline, and remove.
19835 2001-06-12 Akim Demaille <akim@epita.fr>
19837 * autoscan.in (%kind_comment): New.
19838 (output_kind): New.
19839 (output_functions, output_identifiers, output_headers): Use it.
19841 2001-06-12 Akim Demaille <akim@epita.fr>
19843 * autoscan.in (&print_unique): Take `$kind' and `$word' as
19844 arguments, to factor indirections into `%macro' and `%used'.
19845 (%generic_macro): Fix a typo.
19847 2001-06-12 Akim Demaille <akim@epita.fr>
19849 * aclibraries: New.
19850 * autoscan.in (@kinds): Add `libraries'.
19851 Use `@kinds' instead of hard coded lists.
19852 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
19853 Remove, replaced by...
19856 2001-06-12 Akim Demaille <akim@epita.fr>
19858 * autoscan.in (%functions_macros %headers_macros)
19859 (%identifiers_macros %programs_macros %makevars_macros): Remove,
19863 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
19865 * aclang.m4 (AC_NO_EXECUTABLES): Override
19866 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
19868 2001-06-11 Akim Demaille <akim@epita.fr>
19870 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
19872 Reported by Andreas Schwab.
19874 2001-06-11 Akim Demaille <akim@epita.fr>
19876 * Makefile.am, Makefile.maint: Typos.
19878 2001-06-09 Akim Demaille <akim@epita.fr>
19880 * doc/autoconf.texi (Here-Documents): New section, gathering
19881 documentation about here-documents.
19882 Use `href', not `uref', and other changes.
19884 2001-06-09 Akim Demaille <akim@epita.fr>
19886 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
19889 2001-06-09 Akim Demaille <akim@epita.fr>
19891 * doc/autoconf.texi (Limitations of Builtins): Complete the
19892 description of the here-docs penalties with Alexandre Oliva's
19895 2001-06-01 Paul Eggert <eggert@twinsun.com>
19897 * doc/autoconf.texi: Talk about here documents and speedups.
19898 Do not use "echo" on arbitrary strings.
19899 Spell "here-documents" consistently with the standard.
19901 2001-06-09 Akim Demaille <akim@epita.fr>
19903 * doc/autoconf.texi (Concept Index): Introduce it.
19904 Regenerate the menus.
19906 2001-06-09 Akim Demaille <akim@epita.fr>
19908 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
19909 * config/prev-version.txt: New.
19910 * config/move-if-change: New, for GNU libc.
19912 2001-06-06 Pavel Roskin <proski@gnu.org>
19914 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
19916 2001-06-06 Akim Demaille <akim@epita.fr>
19918 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
19919 properly when $1 is not a literal.
19920 Fixes PR Autoconf/187, reported by Bram Moolenaar.
19922 2001-06-06 Akim Demaille <akim@epita.fr>
19924 Invoking AC_COPYRIGHT before AC_INIT fails.
19926 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
19927 * acgeneral.m4 (_m4_divert(VERSION_FSF))
19928 (_m4_divert(VERSION_USER)): New.
19929 (AC_COPYRIGHT): $2 is the diversion to use.
19930 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
19931 (AC_INIT): Remove dead comments as now it's commutative.
19933 2001-06-06 Akim Demaille <akim@epita.fr>
19935 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
19938 2001-06-05 Akim Demaille <akim@epita.fr>
19940 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
19942 `*dir' variables cannot be NONE.
19943 Reported by Mark Kettenis.
19945 2001-06-05 Paul Eggert <eggert@twinsun.com>
19947 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
19949 2001-06-04 Akim Demaille <akim@epita.fr>
19951 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
19952 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
19953 (AC_TR_SH): Move as...
19954 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
19955 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
19957 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
19958 (_AS_TR_SH_PREPARE): New.
19959 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
19960 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
19962 2001-06-02 Akim Demaille <akim@epita.fr>
19964 * Makefile.am (.m4.m4f): Pass the options first.
19965 Fixes PR autoconf/182.
19967 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
19969 GNU getopt, when POSIXLY_CORRECT does not permute options and
19970 arguments. So pass the options first.
19971 Fixes PR autoconf/184.
19973 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
19974 (run_m4): Remove files.
19976 Update remainder of script to use them.
19977 (for warning in): Do not use a literal comma as it will not be
19980 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
19982 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
19983 Fortran compilers to check.
19984 (_AC_PROG_F77_V): Add '-###' as a possible option to print
19985 information on library and object files.
19986 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
19989 2001-06-02 Akim Demaille <akim@epita.fr>
19991 * autom4te.in (Request::@request): Declare with `vars', not `my',
19992 as it prevents updates via `do FILENAME'.
19994 2001-06-02 Akim Demaille <akim@epita.fr>
19996 * configure.in (standards_texi): Remove, dead code.
19998 2001-06-02 Akim Demaille <akim@epita.fr>
20000 * autom4te.in: New.
20002 2001-06-02 Pavel Roskin <proski@gnu.org>
20004 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
20005 for signals other than 0 - exit with code 1.
20006 * m4sh.m4 (AS_TMPDIR): Likewise.
20007 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
20008 * autoheader.in: Likewise.
20009 * autoreconf.in: Likewise.
20010 * tests/torture.at (Signal handling): New test for the above.
20012 2001-06-01 Akim Demaille <akim@epita.fr>
20014 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
20017 2001-05-31 Akim Demaille <akim@epita.fr>
20019 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
20020 Add copyright and comments.
20021 * acheaders: Add stdint.h.
20022 Suggested by Paul Eggert.
20024 2001-05-31 Akim Demaille <akim@epita.fr>
20026 * atgeneral.m4 (AT_INIT): Use $SHELL.
20027 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
20029 2001-05-31 Akim Demaille <akim@epita.fr>
20031 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
20033 From Paul Eggert and Lars Hecking.
20035 2001-05-31 Akim Demaille <akim@epita.fr>
20037 * tests/base.at: Adjust line numbers in error messages.
20039 2001-05-31 Akim Demaille <akim@epita.fr>
20041 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
20042 to emit the bangshe line.
20043 Reported by David Carter.
20045 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
20047 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
20048 Fortran (95) compilers to check.
20050 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
20052 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
20055 2001-05-23 Pavel Roskin <proski@gnu.org>
20057 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
20058 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
20059 (AC_PROG_CXXCPP): Likewise.
20061 2001-05-22 Akim Demaille <akim@epita.fr>
20063 * config: New directory.
20064 * configure.in: AC_CONFIG_AUX_DIR it.
20065 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
20067 2001-05-22 Akim Demaille <akim@epita.fr>
20069 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
20070 * autoupdate.in: Specify the Emacs mode.
20071 * acversion.m4.in: Rename as...
20072 * acversion.m4: this.
20073 * tests/Makefile.am (CLEANFILES): More garbage.
20075 2001-05-22 Akim Demaille <akim@epita.fr>
20077 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
20079 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
20082 2001-05-21 Akim Demaille <akim@epita.fr>
20084 * configure.in: Bump to 2.50a.
20093 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
20094 2009 Free Software Foundation, Inc.
20096 This program is free software: you can redistribute it and/or
20097 modify it under the terms of the GNU General Public License as
20098 published by the Free Software Foundation, either version 3 of the
20099 License, or (at your option) any later version.
20101 This program is distributed in the hope that it will be useful,
20102 but WITHOUT ANY WARRANTY; without even the implied warranty of
20103 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20104 General Public License for more details.
20106 You should have received a copy of the GNU General Public License
20107 along with this program. If not, see
20108 <http://www.gnu.org/licenses/>.