X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fsnprintf-posix.m4;fp=m4%2Fsnprintf-posix.m4;h=9e9ef1dfe8c387d47e4d801a5eea9cb9ce7a8d2b;hb=f227e78a14b99482c7b12e6f4d4b3cd96f13400e;hp=890605d2ae32ecded970f94acabd55776470b065;hpb=b7143ceeb4f48c6953f41c35746efd30e2b771da;p=gnulib.git diff --git a/m4/snprintf-posix.m4 b/m4/snprintf-posix.m4 index 890605d2a..9e9ef1dfe 100644 --- a/m4/snprintf-posix.m4 +++ b/m4/snprintf-posix.m4 @@ -1,4 +1,4 @@ -# snprintf-posix.m4 serial 3 +# snprintf-posix.m4 serial 4 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, @@ -18,6 +18,7 @@ AC_DEFUN([gl_FUNC_SNPRINTF_POSIX], gl_SNPRINTF_TRUNCATION_C99 gl_SNPRINTF_RETVAL_C99 gl_SNPRINTF_DIRECTIVE_N + gl_VSNPRINTF_ZEROSIZE_C99 case "$gl_cv_func_printf_sizes_c99" in *yes) case "$gl_cv_func_printf_directive_a" in @@ -34,9 +35,13 @@ AC_DEFUN([gl_FUNC_SNPRINTF_POSIX], *yes) case "$gl_cv_func_snprintf_directive_n" in *yes) - # snprintf exists and is already POSIX - # compliant. - gl_cv_func_snprintf_posix=yes + case "$gl_cv_func_vsnprintf_zerosize_c99" in + *yes) + # snprintf exists and is already POSIX + # compliant. + gl_cv_func_snprintf_posix=yes + ;; + esac ;; esac ;;