Stepan Kasal [Thu, 30 Jun 2005 18:27:40 +0000 (18:27 +0000)]
(_AC_OUTPUT_CONFIG_STATUS): Use a here document to output the default
config_* lists to config.status.
Don't recognize option --file, if the functionality is not there.
Likewise for --header; moreover, recognize --he and --h as shortcuts
for --help in that case.
Paul Eggert [Fri, 24 Jun 2005 02:13:39 +0000 (02:13 +0000)]
* NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
directory have inherent problems with special characters like spaces,
due to limitations in Make syntax. Problem reported by Alexandre
Duret-Lutz.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
Also, fix Tru64 porting problem with shell patterns,
reported by Ralf Wildenhues.
Paul Eggert [Thu, 23 Jun 2005 20:09:25 +0000 (20:09 +0000)]
Fix some more shell quoting problems. Prompted by a bug report
from Justace Clutter.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
variable into diagnostic. Make the diagnostic an error, not a warning,
because we really don't support spaces and suchlike in dir names.
(_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
Don't worry about backslashes in srcdir; it can't happen now.
(_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
Simplify ac_optarg handling.
(_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
Paul Eggert [Fri, 17 Jun 2005 20:37:36 +0000 (20:37 +0000)]
* lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
* doc/autoconf.texi:
Don't mention Solaris versions so much, if a
problem is common to all extant versions of Solaris. Say "SunOS
4" instead of "SunOS" for SunOS 4.
(awk): Mention more of the limitations of traditional Awk.
(cat): Don't talk about cat -v.
Paul Eggert [Thu, 16 Jun 2005 21:03:47 +0000 (21:03 +0000)]
* lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
(AS_VERSION_COMPARE): New macro. The API is taken from CVS,
but the implementation is entirely different and is designed
to be compatible with glibc strverscmp.
* tests/m4sh.at (AS_VERSION_COMPARE): New test.
Paul Eggert [Thu, 16 Jun 2005 07:24:42 +0000 (07:24 +0000)]
* doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
on Mac OS X 10.4 reported by Peter O'Gorman in:
http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
* lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
Use shell builtins rather than 'expr', to work around expr bug.
Paul Eggert [Sat, 11 Jun 2005 06:05:11 +0000 (06:05 +0000)]
* doc/autoconf.texi: "filesystem" -> "file system".
"behavior" -> "behavior".
Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
* lib/autoconf/general.m4: Omit blank after ":" sed command,
as per POSIX.
* lib/m4sugar/m4sh.m4: Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
with Solaris sed. Fix by Stepan Kasal.
Paul Eggert [Fri, 10 Jun 2005 17:56:21 +0000 (17:56 +0000)]
* man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
(.x.1): Ignore the time stamp in the .TH line when deciding whether
to update the man page. That way, we don't have to check in new
man pages every month.
Derek Price [Wed, 8 Jun 2005 15:44:09 +0000 (15:44 +0000)]
* doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
redefined M4 macros to this node. Document m4_include & m4_sinclude.
Move m4_undefine to alphabetical order.
Paul Eggert [Wed, 8 Jun 2005 07:55:28 +0000 (07:55 +0000)]
* doc/autoconf.texi (Limitations of Builtins) <case>: Mention
Tru64 ksh pattern matching bug. Reported against Libtool by
Albert Chin <libtool@mlists.thewrittenword.com> and
Nicolas Joly <njoly@pasteur.fr>.
Paul Eggert [Wed, 8 Jun 2005 07:13:50 +0000 (07:13 +0000)]
* README: Recommend GNU M4 1.4.3 or later.
* doc/autoconf.texi (Introduction): Likewise.
Reword to avoid some formatting glitches.
Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
Clarify explanation of HP compiler bug.
Redo example output tp match current CVS snapshot.
Use @example.org in email addresses when the examples
might get inadvertently cut-and-pasted into user code.
Remove example of autom4te usage that doesn't seem to work now.
Use modern AC_INIT (except when the example is meant to be
shown with Autoconf 2.13).
Update ksh info for Solaris 9 and later.
KB -> kB.
Modernize description of Automake versions a bit.
Don't claim a future version of Autoconf is near.
Add [] to examples, so that the manual
follows its own advice about quoting better.
* doc/install.texi: Reword to avoid some formatting glitches.
Paul Eggert [Thu, 2 Jun 2005 23:30:13 +0000 (23:30 +0000)]
(AT_INIT): Don't create a regular
expression of unbounded size when processing the --list
option. This runs afoul of a limit of 399 bytes per regular
expression on AIX. Problem reported by Ralf Wildenhues.
Paul Eggert [Wed, 1 Jun 2005 07:16:50 +0000 (07:16 +0000)]
* NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
* doc/autoconf.texi (Particular Headers): Reword example
for multiline stdbool replacement.
(Setting Output Variables): Reword text a bit. Don't
give all the details about |#_!!_#|.
Reword description of line replacement.
Paul Eggert [Wed, 1 Jun 2005 06:54:45 +0000 (06:54 +0000)]
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
now contain newlines, and substituted files must be referenced on
a line alone; the sed scripts to substitute them are now very
different.
(_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
commands can be put in a sed script portably.
* doc/autoconf.texi (Setting Output Variables): Document above
changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
use of multiline substitution.
* tests/torture.at: No longer expect substitution of newline to fail.
Stepan Kasal [Thu, 12 May 2005 11:26:07 +0000 (11:26 +0000)]
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
for absolute directory names in one loop.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
abbreviations of --version and --debug.
Paul Eggert [Tue, 10 May 2005 23:37:37 +0000 (23:37 +0000)]
(Autoconf Language): Be more precise about
quoting rules. Problems noted by Stepan Kasal.
Also, throughout this document, be more careful about white space.
"blank", "white space", and "space" all have different meanings
and we should be careful to say what we mean.
Paul Eggert [Fri, 6 May 2005 05:34:43 +0000 (05:34 +0000)]
Fix C++ related problems reported by Werner Lemberg.
* doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
* lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
* lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
avoid problems with C++ and throw.
* tests/compile.at: .cpp, not .cc.
Gary V. Vaughan [Mon, 2 May 2005 20:14:49 +0000 (20:14 +0000)]
* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
set by latest automake.