Paul Eggert [Tue, 14 Dec 2004 01:04:25 +0000 (01:04 +0000)]
* lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
tracing on commands with possibly-escaped newlines.
* doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
discontinued behavior and its implications.
* tests/autotest.at (BS-newline in command, ^BS-newline in command)
(BSx641-newline in command, BS-BS-newline in command)
(BSx640-newline in command, Newline-CODE-BS-newline in command)
(Single-quote-BS-newline in command)
(Single-quote-newline-BS-newline in command): New tests.
Paul Eggert [Mon, 13 Dec 2004 18:22:55 +0000 (18:22 +0000)]
* lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
on platforms where it works.
(_AS_TEST_PREPARE): Test for ``test -x''.
(_AS_BROKEN_TEST_PREPARE): Nuke.
Paul Eggert [Mon, 13 Dec 2004 17:58:03 +0000 (17:58 +0000)]
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
give only 4-letter prefix to AS_TMPDIR, comment fixed.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
create the temporary directory.
(_AC_FEATURE_CHECK_LENGTH): Work in current directory.
Paul Eggert [Fri, 10 Dec 2004 23:57:19 +0000 (23:57 +0000)]
(autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
Don't depend on .x file explicitly, since "make" does that for us.
Suggested by Stepan Kasal.
Paul Eggert [Fri, 10 Dec 2004 23:56:45 +0000 (23:56 +0000)]
(MOSTLYCLEANFILES): Renamed from CLEANFILES.
Add *.tmp.
(autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
ifnames): Factor common code. And they said it couldn't be done!
* man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
* lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
* tests/autotest.at: New file.
* tests/suite.at: Include it.
* tests/Makefile.am: Distribute it.
* lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
shell tracing on a command that could contain multiple lines.
* doc/autoconf.text: Document that fact and its implications.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
* tests/autotest.at (Multiline backquote command substitution,
Multiline parameter expansion, Literal multiline command,
Multiline parenthetical command substitution): Remove XFAIL.
Paul Eggert [Thu, 9 Dec 2004 21:14:45 +0000 (21:14 +0000)]
* configure.ac (test suite): Cease to generate wrapper scripts.
* configure: Regenerate.
* lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
(m4f_dependencies): Adjust accordingly.
* tests/Makefile.am (Wrappers): Generate wrapper scripts.
(wrapper.in): Generate it in the build directory.
(MAINTAINERCLEANFILES): Delete wrapper.in.
(CLEANFILES): Add wrapper.in.
* tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
the output. Replace each $as_me with a @wrap_program@.
* tests/wrapper.in: Delete it; we always build it.
* bin/Makefile.am (autoconf.in): Generate it in the build directory.
(EXTRA_DIST): Remove autoconf.in.
(CLEANFILES): Add autoconf.in.
(autoconf): Find autoconf.in in the build directory.
* bin/autoconf.in: Delete it; we always build it.
Paul Eggert [Thu, 9 Dec 2004 21:01:37 +0000 (21:01 +0000)]
* lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
PATH members so as to not prepend an empty element. Move a comment.
* Makefile.am (SUBDIRS): Build in `tests' last.
* tests/Makefile.am (installcheck-local): Add check-local dependencies.
Paul Eggert [Wed, 8 Dec 2004 20:34:37 +0000 (20:34 +0000)]
Don't use "set - x`$ls_command /`", as zsh mishandles
the spaces inside $ls_command. Problem reported by Loulou Pouchet in
<http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
Paul Eggert [Sun, 5 Dec 2004 19:55:23 +0000 (19:55 +0000)]
(AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
out the common code to ...
(_AC_DEFINE_Q): ... a new macro; simplify the condition about the
value of the #define--default to 1, iff the macro was called
with exactly one parameter.
Paul Eggert [Thu, 2 Dec 2004 21:50:46 +0000 (21:50 +0000)]
(AC_FUNC_MEMCMP): Use
"char c = '\200';" rather than "char c = 0x80;" as the
latter doesn't conform to the strict C standard due to
overflow on signed char hosts.
Paul Eggert [Mon, 29 Nov 2004 04:29:08 +0000 (04:29 +0000)]
Fix documentation problems reported by Russ Boylan in
<http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
along with some nearby cruft.
* doc/autoconf.texi (Libtool): Libtool can be used without
Automake (not without Autoconf).
(Introduction): Mention lists.gnu.org.
* BUGS: Don't mention bugs.gnu.org.
Remove mention of ancient libtool compatibility problem.
* NEWS: Mention that bugs.gnu.org is kaput.
* README: Likewise. Mention where mailing list archives can be found.
Paul Eggert [Mon, 22 Nov 2004 23:31:56 +0000 (23:31 +0000)]
(Autoconf Language): Explain that
``descriptions'' may not be double quotes.
(Quotation Rule Of Thumb): Likewise.
(Pretty Help Strings): Likewise; remove the wrong comment;
simplify the examples and improve their quoting.
Paul Eggert [Sun, 14 Nov 2004 06:36:01 +0000 (06:36 +0000)]
(_AC_FEATURE_CHECK_LENGTH): Don't check
the $1_found variable, don't test whether the file is executable;
Both things are checked ...
(_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
the former ``test -f''.
Paul Eggert [Mon, 11 Oct 2004 20:21:33 +0000 (20:21 +0000)]
Standardize spelling of "Posix" (as opposed
to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
variants", "Unix", and some related minor wording fixups.
Paul Eggert [Sun, 5 Sep 2004 03:29:58 +0000 (03:29 +0000)]
(_AC_PATH_X_XMKMF): If xmkmf returns
"/usr/include", clear ac_x_includes instead of leaving it as "no"
(trivial change). Problem and patch reported by Andrew Church in:
http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
Paul Eggert [Sat, 4 Sep 2004 04:51:58 +0000 (04:51 +0000)]
Give AC_DEFINE and AC_DEFINE_UNQUOTED
three args in examples. Problem reported by Frederik Fouvry in:
http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
Also, fix some minor spacing and punctuation bugs.
Paul Eggert [Fri, 20 Aug 2004 23:47:48 +0000 (23:47 +0000)]
(wget_files, cvs_files):
Remove ansi2knr.c; nobody uses it.
(ansi2knr.c-url_prefix): Remove.
(cvs-update): Fix test for failure. I don't know why it ever worked...
Paul Eggert [Fri, 20 Aug 2004 07:01:02 +0000 (07:01 +0000)]
(AC_LANG_BOOL_COMPILE_TRY(C), AC_C_LONG_DOUBLE): Undo 2004-06-04
change, as it didn't work with HP-UX 11.23 cc/aCC or Tru64 4.0 cc.
Problem reported by Noah Misch in
<http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.