src: Disable strip http-parser mode

Add --enable-strict-http-parser mode to enable it.
This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-21 00:20:27 +09:00
parent dc82a6026e
commit 6c51bd0979

View File

@ -58,6 +58,11 @@ AC_ARG_ENABLE([debug],
[Turn on debug output])],
[debug=$enableval], [debug=no])
AC_ARG_ENABLE([strict-http-parser],
[AS_HELP_STRING([--enable-strict-http-parser],
[Turn on strict http parser mode])],
[strict_http_parser=$enableval], [strict_http_parser=no])
AC_ARG_ENABLE([app],
[AS_HELP_STRING([--enable-app],
[Build applications (nghttp, nghttpd and nghttpx) [default=check]])],
@ -391,6 +396,10 @@ if test "x$debug" != "xno"; then
CFLAGS="$CFLAGS -DDEBUGBUILD"
fi
if test "x$strict_http_parser" = "xno"; then
CFLAGS="$CFLAGS -DHTTP_PARSER_STRICT=0"
fi
AC_SUBST([TESTS_LIBS])
AC_SUBST([SRC_LIBS])