]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
NEWS: add notes about known breakage due to pickier macros.
authorZack Weinberg <zackw@panix.com>
Fri, 10 Jul 2020 18:16:18 +0000 (14:16 -0400)
committerZack Weinberg <zackw@panix.com>
Fri, 10 Jul 2020 18:16:18 +0000 (14:16 -0400)
These are all cases where the offending configure script or
third-party macro was always incorrect, but autoconf 2.69 let you get
away with it.

NEWS

diff --git a/NEWS b/NEWS
index c1a3e70e37f3f378b24b7f00c1a61200a8c026ea..4f6d59a12c3ceb07954a01f67beb2b3de68a07c4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,27 @@ GNU Autoconf NEWS - User visible changes.
    account.  This makes it possible to use AC_DEFINE for secondary
    headers without duplicating the template in the main config header.
 
+** Many macros have been improved to expand their arguments
+   once and only once.  This makes ‘autoconf’ run faster.  However, it
+   may break configure scripts that did not quote all macro arguments
+   properly.  The ‘M4 Quotation’ section of the manual explains how to
+   quote macro arguments properly.
+
+** Several macros that are commonly used early in a configure
+   script, such as AC_PROG_CC, have been optimized and no longer
+   invoke as many subroutine macros as they used to.  This can expose
+   several classes of bugs: these are the ones we know about:
+
+   - Make sure to explicitly invoke all of the macros that set result
+     variables used later in the configure script, or in generated
+     Makefiles.
+
+   - AC_REQUIRE must not appear inside hand-written shell conditional
+     constructs.  Use AS_IF, AS_FOR, etc. instead.
+
+   - AC_REQUIRE cannot be applied to macros that need to be used with
+     arguments.  Instead, invoke the macro normally, with its arguments.
+
 ** Macros that take whitespace-separated lists as arguments
    now always expand macros within those arguments.  (Formerly, these
    macros would *usually* expand those arguments, but the behavior was