]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Define $as_echo and $as_echo_n for backward compatibility.
authorZack Weinberg <zackw@panix.com>
Fri, 13 Mar 2020 18:50:50 +0000 (14:50 -0400)
committerZack Weinberg <zackw@panix.com>
Fri, 13 Mar 2020 18:50:50 +0000 (14:50 -0400)
commit8a09003664733eb6bef031f56ef9cd575e403023
tree4c56c2d4a963fcb7f37b0ccbbceefa8462ff82c8
parentb2e4b6333785aa55814bfd8f8747a9ce948fa88e
Define $as_echo and $as_echo_n for backward compatibility.

Commit 2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf removed the internal
shell variables $as_echo and $as_echo_n.  It turns out that these are
used by several widely-used third-party m4 files (notably both
gnulib-common.m4 from gnulib, and ax_pthread.m4 from the Autoconf
macro archive) as well as any number of existing configure.ac’s.

Restore these shell variables, unconditionally defining them to use
printf.  Issue -Wobsolete warnings if they are used, recommending the
use of AS_ECHO and AS_ECHO_N respectively.  Add a test which checks
both that they do work and that they trigger warnings.
NEWS
lib/m4sugar/m4sh.m4
tests/m4sh.at