]> Savannah Git Hosting - gnulib.git/commitdiff
snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 10:52:14 +0000 (12:52 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 10:29:32 +0000 (12:29 +0200)
* m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE.

ChangeLog
m4/printf.m4

index 790570c917da1a577e318ff8584b1c6bf6ac9170..940887baccdce8d0b241325bbf5a4c2f9c104002 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-30  Bruno Haible  <bruno@clisp.org>
+
+       snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
+       * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE.
+
 2023-03-25  Bruno Haible  <bruno@clisp.org>
 
        is* tests: Ensure needed .m4 files are packaged.
index 4e65abc6e69d51e9d54810e52d24aade94a3a2d8..e639e92fdedc07ff2f5fdab660ca0d23e65a0753 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 73
+# 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,
@@ -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