From: Bruno Haible <bruno@clisp.org> Date: Sun, 27 Sep 2020 19:03:24 +0000 (+0200) Subject: Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c. X-Git-Tag: v1.0~3597 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1079dc95fd2c8d5ed2819f30c9b14eee0e162d04;p=gnulib.git Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c. Reported by Gavin Smith <gavinsmith0123@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>. * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT. --- diff --git a/ChangeLog b/ChangeLog index ec6ab91046..43e84b5180 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2020-09-27 Bruno Haible <bruno@clisp.org> + + Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c. + Reported by Gavin Smith <gavinsmith0123@gmail.com> in + <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>. + * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT. + 2020-09-27 Bruno Haible <bruno@clisp.org> extensions: Simplify last commit. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 57343e440a..a036454dbd 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 60 +# gnulib-common.m4 serial 61 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -653,10 +653,9 @@ AC_DEFUN([gl_SILENT], # by an AC_MSG_CHECKING/AC_MSG_RESULT pair. AC_DEFUN([gl_CACHE_VAL_SILENT], [ - saved_as_echo_n="$as_echo_n" - as_echo_n=':' - AC_CACHE_VAL([$1], [$2]) - as_echo_n="$saved_as_echo_n" + gl_SILENT([ + AC_CACHE_VAL([$1], [$2]) + ]) ]) dnl Expands to some code for use in .c programs that, on native Windows, defines