Skip to content

Commit 9113525

Browse files
committed
Added VARNISHSRC check
1 parent 401317e commit 9113525

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ m4_ifndef([VARNISH_PREREQ], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))
3131
VARNISH_PREREQ([4.1], [5.0.0])
3232
VARNISH_VMODS([zlib])
3333

34+
AC_SUBST([VARNISHSRC])
35+
AC_ARG_VAR([VARNISHSRC], [path to Varnish source tree])
36+
AS_IF([test "x${VARNISHSRC}" = "x" ], AC_MSG_FAILURE([\$VARNISHSRC is not set]), AC_MSG_RESULT([yes]))
37+
AC_CHECK_FILE([$VARNISHSRC/include/vrt.h],
38+
[],
39+
[AC_MSG_FAILURE([\$VARNISHSRC "$VARNISHSRC" is not a Varnish source directory])]
40+
)
41+
42+
# as long as we still need crc32 from libvgz from the Varnish source tree
43+
3444
VMOD_TESTS="$(cd $srcdir/src && echo tests/*.vtc)"
3545
AC_SUBST(VMOD_TESTS)
3646

0 commit comments

Comments
 (0)