Commit 7ca2f406 authored by Nils Goroll's avatar Nils Goroll

whitespace

parent 5602713f
...@@ -7,16 +7,16 @@ server s1 { ...@@ -7,16 +7,16 @@ server s1 {
txresp txresp
} -start } -start
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
import dcs from "${vmod_topbuild}/src/.libs/libvmod_dcs.so"; import dcs from "${vmod_topbuild}/src/.libs/libvmod_dcs.so";
sub vcl_recv { sub vcl_recv {
# this code will classify # this code will classify
# #
# for best performance in production, only call classify # for best performance in production, only call classify
# once or use inline-C to save the return value of # once or use inline-C to save the return value of
# classify (int) # classify (int)
# exotic use cases # exotic use cases
set req.http.xx-entry-key = dcs.entry_key(dcs.classify()); set req.http.xx-entry-key = dcs.entry_key(dcs.classify());
set req.http.xx-type-id = dcs.type_id(dcs.classify()); set req.http.xx-type-id = dcs.type_id(dcs.classify());
...@@ -52,4 +52,3 @@ client c1 { ...@@ -52,4 +52,3 @@ client c1 {
expect resp.http.x-nb-classified == "Mobile Phone" expect resp.http.x-nb-classified == "Mobile Phone"
expect resp.http.X-DeviceClass == "smartphone" expect resp.http.X-DeviceClass == "smartphone"
} -run } -run
...@@ -118,7 +118,8 @@ if test "x$VARNISHSRC" = x; then ...@@ -118,7 +118,8 @@ if test "x$VARNISHSRC" = x; then
AM_CONDITIONAL([BUILD_VMOD], [true]) AM_CONDITIONAL([BUILD_VMOD], [true])
AC_SUBST([VCCFILE], [vmod_dcs4.vcc]) AC_SUBST([VCCFILE], [vmod_dcs4.vcc])
AC_DEFINE([VARNISH_MAJOR], [4], [Define the Varnish major version we compile against]) AC_DEFINE([VARNISH_MAJOR], [4],
[Define the Varnish major version we compile against])
AC_SUBST([TESTDIR], [tests4]) AC_SUBST([TESTDIR], [tests4])
else else
AM_CONDITIONAL([HAVE_VARNISH_M4], [false]) AM_CONDITIONAL([HAVE_VARNISH_M4], [false])
...@@ -263,20 +264,20 @@ DEVELOPER_CLANG_CFLAGS="-Wmissing-variable-declarations -Wno-string-plus-int" ...@@ -263,20 +264,20 @@ DEVELOPER_CLANG_CFLAGS="-Wmissing-variable-declarations -Wno-string-plus-int"
# --enable-developer-warnings # --enable-developer-warnings
AC_ARG_ENABLE(developer-warnings, AC_ARG_ENABLE(developer-warnings,
AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]), AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
[], [],
[enable_developer_warnings=no]) [enable_developer_warnings=no])
#DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} ${DEVELOPER_CLANG_CFLAGS}" #DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} ${DEVELOPER_CLANG_CFLAGS}"
if test "x$enable_developer_warnings" != "xno"; then if test "x$enable_developer_warnings" != "xno"; then
CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}" CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
OCFLAGS="${OCFLAGS} ${DEVELOPER_CFLAGS}" OCFLAGS="${OCFLAGS} ${DEVELOPER_CFLAGS}"
fi fi
# --enable-debugging-symbols # --enable-debugging-symbols
AC_ARG_ENABLE(debugging-symbols, AC_ARG_ENABLE(debugging-symbols,
AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]), AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
CFLAGS="${CFLAGS} -O0 -g -fno-inline") CFLAGS="${CFLAGS} -O0 -g -fno-inline")
AC_SUBST(AM_LT_LDFLAGS) AC_SUBST(AM_LT_LDFLAGS)
...@@ -284,7 +285,7 @@ AC_SUBST(AM_LT_LDFLAGS) ...@@ -284,7 +285,7 @@ AC_SUBST(AM_LT_LDFLAGS)
## VARNISH whether to install Varnish inline-c sources ## VARNISH whether to install Varnish inline-c sources
AC_ARG_ENABLE(varnish2, AC_ARG_ENABLE(varnish2,
AS_HELP_STRING([--enable-varnish2],[install code for varnish2 inline-C (default is NO)])) AS_HELP_STRING([--enable-varnish2],[install code for varnish2 inline-C (default is NO)]))
AM_CONDITIONAL([INSTALL_VARNISH2], [test "x$enable_varnish2" != x]) AM_CONDITIONAL([INSTALL_VARNISH2], [test "x$enable_varnish2" != x])
############################################################ ############################################################
......
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