From: Bruno Haible Date: Thu, 30 Mar 2023 10:52:14 +0000 (+0200) Subject: snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a612a9eacd61fa15e8cb8d5a7f65dced99d442ba;p=gnulib.git snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE. --- diff --git a/ChangeLog b/ChangeLog index dea4f9de2c..b40d7ed757 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-30 Bruno Haible + + snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. + * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE. + 2023-03-25 Bruno Haible is* tests: Ensure needed .m4 files are packaged. diff --git a/m4/printf.m4 b/m4/printf.m4 index 667452e34e..e639e92fde 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,5 +1,5 @@ -# printf.m4 serial 73 -dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc. +# printf.m4 serial 73.1 +dnl Copyright (C) 2003, 2007-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -833,7 +833,7 @@ dnl Test whether the *printf family of functions supports POSIX/XSI format dnl strings with positions. (POSIX:2001) dnl Result is gl_cv_func_printf_positions. -AC_DEFUN([gl_PRINTF_POSITIONS], +AC_DEFUN_ONCE([gl_PRINTF_POSITIONS], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles