annotate m4/vasprintf.m4 @ 8211:a7182ec8249f

vsnprintf.h is replaced with <stdio.h>.
author Bruno Haible <bruno@clisp.org>
date Wed, 21 Feb 2007 02:21:08 +0000
parents 28f050736570
children 7929a12676ab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7357
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
1 # vasprintf.m4 serial 2
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
2 dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
5585
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4224
diff changeset
3 dnl This file is free software; the Free Software Foundation
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4224
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4224
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4224
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_VASPRINTF],
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REPLACE_FUNCS(vasprintf)
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 if test $ac_cv_func_vasprintf = no; then
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 AC_LIBOBJ(asprintf)
7357
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
12 gl_PREREQ_VASPRINTF_H
4224
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 gl_PREREQ_VASPRINTF
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 gl_PREREQ_ASPRINTF
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 fi
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 ])
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
7357
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
18 # Prerequisites of lib/vasprintf.h.
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
19 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
20 [
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
21 dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
22 AC_REQUIRE([AC_GNU_SOURCE])
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
23 ])
28f050736570 Avoid warning at configure time with "gcc -Wall".
Bruno Haible <bruno@clisp.org>
parents: 5585
diff changeset
24
4224
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 # Prerequisites of lib/vasprintf.c.
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 AC_DEFUN([gl_PREREQ_VASPRINTF],
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 [
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 ])
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 # Prerequisites of lib/asprintf.c.
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 AC_DEFUN([gl_PREREQ_ASPRINTF],
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 [
83eabea25586 New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 ])