From af27febe237594914899712b29017cc8f0e1ecff Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Renard?= Date: Wed, 26 Oct 2011 21:14:15 +0200 Subject: [PATCH] varnish plugin: Added Varnish version detection flag --- configure.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 0a0a8f8c..27d39421 100644 --- a/configure.in +++ b/configure.in @@ -4072,10 +4072,9 @@ then CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags" #LDFLAGS="$LDFLAGS $with_libvarnish_libs" - AC_CHECK_LIB(varnishapi, VSL_OpenStats, - [with_libvarnish="yes"], - [with_libvarnish="no (symbol VSL_OpenStats not found)"], - [$with_libvarnish_libs]) + AC_CHECK_FUNC([VSL_OpenStats], + [AC_DEFINE([HAVE_VARNISH_V2], [1], [Varnish 2 API support])], + [AC_DEFINE([HAVE_VARNISH_V3], [1], [Varnish 3 API support])]) CPPFLAGS="$SAVE_CPPFLAGS" #LDFLAGS="$SAVE_LDFLAGS" -- 2.30.2