Mercurial > hg-old > index.cgi
comparison m4/vasprintf.m4 @ 269:6cbc409ff09f 2.6
Added asprintf redux
author | lost |
---|---|
date | Tue, 22 Dec 2009 05:53:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
268:c48e676d641f | 269:6cbc409ff09f |
---|---|
1 # vasprintf.m4 serial 6 | |
2 dnl Copyright (C) 2002-2003, 2006-2007 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. | |
6 | |
7 AC_DEFUN([gl_FUNC_VASPRINTF], | |
8 [ | |
9 AC_CHECK_FUNCS([vasprintf]) | |
10 if test $ac_cv_func_vasprintf = no; then | |
11 gl_REPLACE_VASPRINTF | |
12 fi | |
13 ]) | |
14 | |
15 AC_DEFUN([gl_REPLACE_VASPRINTF], | |
16 [ | |
17 AC_LIBOBJ([vasprintf]) | |
18 AC_LIBOBJ([asprintf]) | |
19 AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | |
20 if test $ac_cv_func_vasprintf = yes; then | |
21 REPLACE_VASPRINTF=1 | |
22 else | |
23 HAVE_VASPRINTF=0 | |
24 fi | |
25 gl_PREREQ_VASPRINTF_H | |
26 gl_PREREQ_VASPRINTF | |
27 gl_PREREQ_ASPRINTF | |
28 ]) | |
29 | |
30 # Prerequisites of the vasprintf portion of lib/stdio.h. | |
31 AC_DEFUN([gl_PREREQ_VASPRINTF_H], | |
32 [ | |
33 dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). | |
34 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | |
35 ]) | |
36 | |
37 # Prerequisites of lib/vasprintf.c. | |
38 AC_DEFUN([gl_PREREQ_VASPRINTF], | |
39 [ | |
40 ]) | |
41 | |
42 # Prerequisites of lib/asprintf.c. | |
43 AC_DEFUN([gl_PREREQ_ASPRINTF], | |
44 [ | |
45 ]) |