Fix formula.
[gnulib.git] / m4 / vasnprintf-posix.m4
index fd88860..a79a267 100644 (file)
@@ -1,4 +1,4 @@
-# vasnprintf-posix.m4 serial 1
+# vasnprintf-posix.m4 serial 2
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,7 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX],
   AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
   AC_REQUIRE([gl_PRINTF_DIRECTIVE_N])
   AC_REQUIRE([gl_PRINTF_POSITIONS])
-  AC_CHECK_FUNCS([vasnprintf])
+  AC_CHECK_FUNCS_ONCE([vasnprintf])
   if expr "$gl_cv_func_printf_sizes_c99" : ".*yes" > /dev/null \
      && expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null \
      && expr "$gl_cv_func_printf_directive_n" : ".*yes" > /dev/null \
@@ -19,10 +19,6 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX],
      && test $ac_cv_func_vasnprintf = yes; then
     : # vasnprintf exists and is already POSIX compliant.
   else
-    if test $ac_cv_func_vasnprintf = yes; then
-      AC_DEFINE([REPLACE_VASNPRINTF], 1,
-        [Define if vasnprintf exists but is overridden by gnulib.])
-    fi
     if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then
       AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
         [Define if the vasnprintf implementation needs special code for