]> err.no Git - varnish/commitdiff
Now that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Aug 2006 12:45:02 +0000 (12:45 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Aug 2006 12:45:02 +0000 (12:45 +0000)
longer required.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@769 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index f7472108b577c1d65283e2974852675847d964c6..356357deb92653da9d95e9729cc367abd482589b 100644 (file)
@@ -66,27 +66,11 @@ AC_CHECK_FUNCS([strptime])
 
 # 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)