1# printf-posix-rpl.m4 serial 4
2dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_FUNC_PRINTF_POSIX],
8[
9  AC_REQUIRE([gl_FUNC_VFPRINTF_POSIX])
10  if test $gl_cv_func_vfprintf_posix = no; then
11    gl_REPLACE_PRINTF
12  fi
13])
14
15AC_DEFUN([gl_REPLACE_PRINTF],
16[
17  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
18  AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
19  AC_LIBOBJ([printf])
20  REPLACE_PRINTF=1
21  AC_DEFINE([REPLACE_PRINTF_POSIX], [1],
22    [Define if printf is overridden by a POSIX compliant gnulib implementation.])
23  gl_PREREQ_PRINTF
24])
25
26AC_DEFUN([gl_PREREQ_PRINTF], [:])
27