git-merge-changelog: Simplify installation instructions.
[gnulib.git] / m4 / vdprintf.m4
blob2b64a943d8f6fc1767d477054363b4d97356fc21
1 # vdprintf.m4
2 # serial 3
3 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
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_VDPRINTF],
10   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
11   gl_CHECK_FUNCS_ANDROID([vdprintf], [[#include <stdio.h>]])
12   if test $ac_cv_func_vdprintf = no; then
13     HAVE_VDPRINTF=0
14     gl_REPLACE_VDPRINTF
15   fi
18 AC_DEFUN([gl_REPLACE_VDPRINTF],
20   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
21   AC_LIBOBJ([vdprintf])
22   if test $ac_cv_func_vdprintf = yes \
23      || case "$gl_cv_onwards_func_vdprintf" in \
24           future*) true ;; \
25           *) false ;; \
26         esac; then
27     REPLACE_VDPRINTF=1
28   fi
29   gl_PREREQ_VDPRINTF
32 # Prerequisites of lib/vdprintf.c.
33 AC_DEFUN([gl_PREREQ_VDPRINTF], [:])