• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-m4/
1# vasprintf.m4 serial 2
2dnl Copyright (C) 2002-2003, 2006-2007 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_VASPRINTF],
8[
9  AC_CHECK_FUNCS([vasprintf])
10  if test $ac_cv_func_vasprintf = no; then
11    gl_REPLACE_VASPRINTF
12  fi
13])
14
15AC_DEFUN([gl_REPLACE_VASPRINTF],
16[
17  AC_LIBOBJ([vasprintf])
18  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
19  if test $ac_cv_func_vasprintf = yes; then
20    REPLACE_VASPRINTF=1
21  else
22    HAVE_VASPRINTF=0
23  fi
24  gl_PREREQ_VASPRINTF_H
25])
26
27# Prerequisites of the vasprintf portion of lib/stdio.h.
28AC_DEFUN([gl_PREREQ_VASPRINTF_H],
29[
30  dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
31  AC_REQUIRE([AC_GNU_SOURCE])
32])
33