1 # vasprintf.m4 serial 6
2 dnl Copyright (C) 2002-2003, 2006-2007, 2009-2010 Free Software Foundation,
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_FUNC_VASPRINTF],
10 AC_CHECK_FUNCS([vasprintf])
11 if test $ac_cv_func_vasprintf = no; then
16 AC_DEFUN([gl_REPLACE_VASPRINTF],
18 AC_LIBOBJ([vasprintf])
20 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
21 if test $ac_cv_func_vasprintf = yes; then
31 # Prerequisites of the vasprintf portion of lib/stdio.h.
32 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
34 dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
35 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
38 # Prerequisites of lib/vasprintf.c.
39 AC_DEFUN([gl_PREREQ_VASPRINTF],
43 # Prerequisites of lib/asprintf.c.
44 AC_DEFUN([gl_PREREQ_ASPRINTF],