autoconf/lib
Zack Weinberg 3b8f293ec2
AC_INIT: better handling of unusual arguments (#110349)
Fix some subtle quotation bugs in _AC_INIT_PACKAGE that made it
impossible to put ‘,’ or an unbalanced close parenthesis in some of
the arguments to AC_INIT.  Document that arguments to AC_INIT
containing parentheses, square brackets, ‘,’ or ‘#’ may need to be
double-quoted.  Provide more detailed examples and exposition re
computing the arguments to AC_INIT when autoconf is run (e.g. with
git-version-gen).  Add a whole bunch more tests for unusual arguments
to AC_INIT, and a test that the backward-compatibility behavior of
AC_INIT with only one argument is still correct.

This may still break some of the existing configure scripts described
in the threads at
https://lists.gnu.org/r/autoconf/2020-10/msg00013.html and
https://lists.gnu.org/r/bug-autoconf/2020-10/msg00012.html
but, I hope, only in ways covered by the existing warning in NEWS
about pickier M4 quotation.

* lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Redo argument
  normalization and default value selection in a simpler, less
  error-prone fashion.
  (_AC_INIT_PACKAGE_N): New helper subroutine.
  (AC_INIT): Always call _AC_INIT_PACKAGE, but supply no arguments if
  we were called with only one argument.

* tests/base.at (AC_INIT (obsolete invocation)): New test.
  (AC_INIT with unusual version strings): Expand test.

* doc/autoconf.texi (AC_INIT): Revise.
2020-11-16 12:06:16 -05:00
..
autoconf AC_INIT: better handling of unusual arguments (#110349) 2020-11-16 12:06:16 -05:00
Autom4te mktmpdir: Ensure that $tmp is always an absolute pathname. 2020-09-24 16:06:23 -04:00
autoscan maint: make update-copyright 2020-01-01 11:45:50 -08:00
autotest Improve handling of missing aux scripts. 2020-10-20 13:59:26 -04:00
emacs maint: make update-copyright 2020-01-01 11:45:50 -08:00
m4sugar AS_ECHO(_N): Do not expand macros named ‘s’ or ‘n’ (#110377) 2020-11-16 10:03:39 -05:00
autom4te.in Improve handling of missing aux scripts (autoreconf) 2020-10-20 16:57:01 -04:00
freeze.mk Port build procedure to AIX 7.1 2020-07-17 18:43:38 -07:00
local.mk Do not apply --program-transform-name to build-aux scripts. 2020-11-05 10:19:26 -05:00