Commit 053fc79d authored by Nils Goroll's avatar Nils Goroll

fail configure if Varnish has the wrong ABI

parent ab8b7da3
......@@ -80,11 +80,8 @@ AC_CHECK_FILE([${VAPI_INCLUDE_DIR}/vmod_abi.h],
AS_CASE([${VMOD_ABI_VERSION}],
[4.0*], [AC_SUBST([VMOD_ABI_VERSION], [40])],
[AC_SUBST([VMOD_ABI_VERSION], [41])]
[AC_MSG_ERROR([Usupported ABI version. Do you need the master branch?])]
)
AC_DEFINE_UNQUOTED(VMOD_ABI_VERSION, ${VMOD_ABI_VERSION},
[our vmod abi version])
AM_CONDITIONAL(HAVE_VMOD_ABI_4_1, [test "x${VMOD_ABI_VERSION}" = "x41"])
# This corresponds to FreeBSD's WARNS level 6
DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment