1 # vasnprintf.m4 serial 5
2 dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_FUNC_VASNPRINTF],
9 AC_REQUIRE([gl_EOVERFLOW])
10 AC_REPLACE_FUNCS(vasnprintf)
11 if test $ac_cv_func_vasnprintf = no; then
12 AC_LIBOBJ(printf-args)
13 AC_LIBOBJ(printf-parse)
16 gl_PREREQ_PRINTF_PARSE
22 # Prequisites of lib/printf-args.h, lib/printf-args.c.
23 AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
25 AC_REQUIRE([bh_C_SIGNED])
26 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
27 AC_REQUIRE([gt_TYPE_LONGDOUBLE])
28 AC_REQUIRE([gt_TYPE_WCHAR_T])
29 AC_REQUIRE([gt_TYPE_WINT_T])
32 # Prequisites of lib/printf-parse.h, lib/printf-parse.c.
33 AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
35 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
36 AC_REQUIRE([gt_TYPE_LONGDOUBLE])
37 AC_REQUIRE([gt_TYPE_WCHAR_T])
38 AC_REQUIRE([gt_TYPE_WINT_T])
39 AC_REQUIRE([AC_TYPE_SIZE_T])
40 AC_CHECK_TYPES(ptrdiff_t)
41 AC_REQUIRE([gt_AC_TYPE_INTMAX_T])
44 # Prerequisites of lib/vasnprintf.c.
45 AC_DEFUN([gl_PREREQ_VASNPRINTF],
47 AC_REQUIRE([AC_FUNC_ALLOCA])
48 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
49 AC_REQUIRE([gt_TYPE_LONGDOUBLE])
50 AC_REQUIRE([gt_TYPE_WCHAR_T])
51 AC_REQUIRE([gt_TYPE_WINT_T])
52 AC_CHECK_FUNCS(snprintf wcslen)
55 # Prerequisites of lib/asnprintf.c.
56 AC_DEFUN([gl_PREREQ_ASNPRINTF],