Commit 9a2f5554 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Improve detection of the presence and usability of asprintf() / vasprintf().

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@723 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 19f2e0a6
......@@ -61,11 +61,21 @@ AC_FUNC_VPRINTF
AC_CHECK_FUNCS([strerror])
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS([socket])
AC_CHECK_FUNCS([vasprintf])
AC_CHECK_FUNCS([asprintf])
AC_CHECK_FUNCS([strlcat])
AC_CHECK_FUNCS([strlcpy])
# asprintf() and vasprintf() are tricky, because on some systems, they
# are present in the C library, but their prototypes are hidden behind
# conditionals which we won't bother to unravel.
AC_CHECK_DECL([asprintf],
AC_DEFINE(HAVE_ASPRINTF,1,[Whether asprintf() is available]),
,
[stdio.h])
AC_CHECK_DECL([vasprintf],
AC_DEFINE(HAVE_VASPRINTF,1,[Whether vasprintf() is available]),
,
[stdio.h])
AC_CONFIG_FILES([
Makefile
bin/Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment