[5.2] 5064880 Expose vcstool to external projects
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Fri Sep 15 11:17:21 UTC 2017
commit 506488015ad9e0e04871d85980ebbe9ccfbedf6f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Sep 12 18:23:00 2017 +0200
Expose vcstool to external projects
diff --git a/varnish.m4 b/varnish.m4
index 9a7f868..8d4a486 100644
--- a/varnish.m4
+++ b/varnish.m4
@@ -28,8 +28,8 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
-# varnish.m4 - Macros to define VMOD builds. -*- Autoconf -*-
-# serial 7 (varnish-5.1.2)
+# varnish.m4 - Macros to build against Varnish. -*- Autoconf -*-
+# serial 8 (varnish-5.2.0)
#
# This collection of macros helps create VMODs or tools interacting with
# Varnish Cache using the GNU build system (autotools). In order to work
@@ -85,6 +85,7 @@ AC_DEFUN([_VARNISH_PKG_CONFIG], [
PKG_CHECK_VAR([VARNISHAPI_VMODDIR], [varnishapi], [vmoddir])
PKG_CHECK_VAR([VMODTOOL], [varnishapi], [vmodtool])
+ PKG_CHECK_VAR([VCSTOOL], [varnishapi], [vcstool])
AC_SUBST([VARNISH_LIBRARY_PATH],
[$VARNISHAPI_LIBDIR:$VARNISHAPI_LIBDIR/varnish])
@@ -384,6 +385,9 @@ AC_DEFUN([VARNISH_VMODS], [
# - vcldir added
# - pkgvcldir added
#
+# Since Varnish 5.2.0:
+# - VCSTOOL added
+#
# Verify that the version of Varnish Cache found by pkg-config is at least
# MINIMUM-VERSION. If MAXIMUM-VERSION is specified, verify that the version
# is strictly below MAXIMUM-VERSION.
@@ -408,6 +412,7 @@ AC_DEFUN([VARNISH_VMODS], [
# - VARNISHAPI_VCLDIR
# - VARNISHAPI_VMODDIR
# - VMODTOOL
+# - VCSTOOL
#
# In addition, two directories are set up for installation in automake:
#
diff --git a/varnishapi.pc.in b/varnishapi.pc.in
index b452f6b..b9c638b 100644
--- a/varnishapi.pc.in
+++ b/varnishapi.pc.in
@@ -13,6 +13,7 @@ pkgdatadir=${datadir}/@PACKAGE@
vcldir=${pkgdatadir}/vcl
vmoddir=${libdir}/@PACKAGE@/vmods
vmodtool=${pkgdatadir}/vmodtool.py
+vcstool=${pkgdatadir}/vcstool.py
Name: VarnishAPI
Description: Varnish API
More information about the varnish-commit
mailing list