printf.m4: avoid autoconf's "Expanded Before Required" warning
authorJim Meyering <meyering@redhat.com>
Thu, 10 Jun 2010 13:21:09 +0000 (15:21 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 11 Jun 2010 05:54:04 +0000 (07:54 +0200)
* m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
autoconf warning.

ChangeLog
m4/printf.m4

index cb30336..0e27cc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       printf.m4: avoid autoconf's "Expanded Before Required" warning
+       * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
+       rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
+       autoconf warning.
+
 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
 
        Replacement header templates are now named with ".in", not "_".
index ebca536..b31efe3 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 33
+# printf.m4 serial 34
 dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1101,7 +1101,7 @@ dnl     }
 dnl     ---------------------------------------------------------------------
 dnl Result is gl_cv_func_snprintf_retval_c99.
 
-AC_DEFUN([gl_SNPRINTF_RETVAL_C99],
+AC_DEFUN_ONCE([gl_SNPRINTF_RETVAL_C99],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles