diff options
author | Colin Watson <cjwatson@debian.org> | 2018-07-27 12:05:53 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-07-27 12:05:53 +0100 |
commit | 68d15a97e215a4b7927039421566bbb1f74e5460 (patch) | |
tree | 2652a8cbbfebec85bb22f97036102cb74a9db5ed /gl/m4/vasprintf.m4 | |
parent | fa4049521ed3d323d78661188d7d900a3320c94c (diff) | |
parent | 22e47d7dad51f60c9bcaf697eec47534ecefe1ee (diff) |
Import man-db_2.8.4.orig.tar.xz
Diffstat (limited to 'gl/m4/vasprintf.m4')
-rw-r--r-- | gl/m4/vasprintf.m4 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gl/m4/vasprintf.m4 b/gl/m4/vasprintf.m4 new file mode 100644 index 00000000..0c00b4b6 --- /dev/null +++ b/gl/m4/vasprintf.m4 @@ -0,0 +1,46 @@ +# vasprintf.m4 serial 6 +dnl Copyright (C) 2002-2003, 2006-2007, 2009-2018 Free Software Foundation, +dnl Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_VASPRINTF], +[ + AC_CHECK_FUNCS([vasprintf]) + if test $ac_cv_func_vasprintf = no; then + gl_REPLACE_VASPRINTF + fi +]) + +AC_DEFUN([gl_REPLACE_VASPRINTF], +[ + AC_LIBOBJ([vasprintf]) + AC_LIBOBJ([asprintf]) + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + if test $ac_cv_func_vasprintf = yes; then + REPLACE_VASPRINTF=1 + else + HAVE_VASPRINTF=0 + fi + gl_PREREQ_VASPRINTF_H + gl_PREREQ_VASPRINTF + gl_PREREQ_ASPRINTF +]) + +# Prerequisites of the vasprintf portion of lib/stdio.h. +AC_DEFUN([gl_PREREQ_VASPRINTF_H], +[ + dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +]) + +# Prerequisites of lib/vasprintf.c. +AC_DEFUN([gl_PREREQ_VASPRINTF], +[ +]) + +# Prerequisites of lib/asprintf.c. +AC_DEFUN([gl_PREREQ_ASPRINTF], +[ +]) |