r769 - trunk/varnish-cache

des at projects.linpro.no des at projects.linpro.no
Tue Aug 8 14:45:02 CEST 2006


Author: des
Date: 2006-08-08 14:45:02 +0200 (Tue, 08 Aug 2006)
New Revision: 769

Modified:
   trunk/varnish-cache/configure.ac
Log:
Now that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no
longer required.

Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2006-08-08 12:42:49 UTC (rev 768)
+++ trunk/varnish-cache/configure.ac	2006-08-08 12:45:02 UTC (rev 769)
@@ -66,27 +66,11 @@
 
 # These functions are provided by libcompat on platforms where they
 # are not available
+AC_CHECK_FUNCS([asprintf vasprintf])
 AC_CHECK_FUNCS([srandomdev])
 AC_CHECK_FUNCS([strlcat strlcpy])
 AC_CHECK_FUNCS([vis strvis strvisx])
 
-# 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,[Define to 1 if asprintf() is available]),
-	,
-	[#include <stdio.h>])
-AC_CHECK_DECL([vasprintf],
-	AC_DEFINE(HAVE_VASPRINTF,1,[Define to 1 if vasprintf() is available]),
-	,
-	[#include <stdio.h>])
-
-AC_CHECK_DECL([SO_ACCEPTFILER],
-	AC_DEFINE(HAVE_ACCEPT_FILTERS,1,[Define to 1 if you have accept filters]),
-	,
-	[sys/types.h, sys/socket.h])
-
 # On some systems, clock_gettime is in librt rather than libc
 AC_CHECK_LIB(rt, clock_gettime, need_librt=yes)
 AM_CONDITIONAL(NEED_LIBRT, test x$need_librt = xyes)




More information about the varnish-commit mailing list