[master] cff4e9802 build: Internally use a $(VSCTOOL) variable

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon May 15 16:42:06 UTC 2023


commit cff4e98028539b48d646f03ad4bdf9ac22af724e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Apr 3 17:32:13 2023 +0200

    build: Internally use a $(VSCTOOL) variable
    
    And make vsc.am expect it as one of the input variables.

diff --git a/configure.ac b/configure.ac
index ff51ab9ac..fb0b8d202 100644
--- a/configure.ac
+++ b/configure.ac
@@ -645,6 +645,7 @@ AC_SUBST(pkgsysconfdir)
 # VMOD variables
 AC_SUBST(vmoddir, [$\(pkglibdir\)/vmods])
 AC_SUBST(VMODTOOL, [$\(top_srcdir\)/lib/libvcc/vmodtool.py])
+AC_SUBST(VSCTOOL, [$\(top_srcdir\)/lib/libvsc/vsctool.py])
 
 # Check for linker script support
 gl_LD_VERSION_SCRIPT
diff --git a/vsc.am b/vsc.am
index e199810a4..0a8da842a 100644
--- a/vsc.am
+++ b/vsc.am
@@ -1,12 +1,13 @@
 # Generic rule to generate C code from VSC files. VSC files must be listed
-# in the $(VSC_SRC) variable.
+# in the $(VSC_SRC) variable. The $(VSCTOOL) variable must point to the
+# location of vsctool.py, normally set up by varnish.m4 at configure time.
 
 VSC_GEN = $(VSC_SRC:.vsc=.c) $(VSC_SRC:.vsc=.h)
 
-$(VSC_GEN): $(top_srcdir)/lib/libvsc/vsctool.py
+$(VSC_GEN): $(VSCTOOL)
 
 .vsc.c:
-	$(AM_V_GEN) $(PYTHON) $(top_srcdir)/lib/libvsc/vsctool.py -ch $<
+	$(AM_V_GEN) $(PYTHON) $(VSCTOOL) -ch $<
 
 clean-local: vsc-clean
 


More information about the varnish-commit mailing list