2N/A# vsnprintf.m4 serial 5
2N/Adnl Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/AAC_DEFUN([gl_FUNC_VSNPRINTF],
2N/A[
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A gl_cv_func_vsnprintf_usable=no
2N/A AC_CHECK_FUNCS([vsnprintf])
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A gl_SNPRINTF_SIZE1
2N/A case "$gl_cv_func_snprintf_size1" in
2N/A *yes)
2N/A gl_cv_func_vsnprintf_usable=yes
2N/A ;;
2N/A esac
2N/A fi
2N/A if test $gl_cv_func_vsnprintf_usable = no; then
2N/A gl_REPLACE_VSNPRINTF
2N/A fi
2N/A AC_CHECK_DECLS_ONCE([vsnprintf])
2N/A if test $ac_cv_have_decl_vsnprintf = no; then
2N/A HAVE_DECL_VSNPRINTF=0
2N/A fi
2N/A])
2N/A
2N/AAC_DEFUN([gl_REPLACE_VSNPRINTF],
2N/A[
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A AC_LIBOBJ([vsnprintf])
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A REPLACE_VSNPRINTF=1
2N/A fi
2N/A gl_PREREQ_VSNPRINTF
2N/A])
2N/A
2N/A# Prerequisites of lib/vsnprintf.c.
2N/AAC_DEFUN([gl_PREREQ_VSNPRINTF], [:])