changeset 20:b676808a49bc

Compatibility with nginx 1.9.10. This includes using HTTP_INIT_FILTER module type, and new style configuration to allow dynamic compilation.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 08 Feb 2016 19:27:18 +0300
parents 57365655ee44
children 180d415c0e59
files config
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/config	Tue Nov 24 13:51:58 2009 +0300
+++ b/config	Mon Feb 08 19:27:18 2016 +0300
@@ -3,8 +3,22 @@
 
 ngx_addon_name="ngx_http_bytes_filter_module"
 
+if test -n "$ngx_module_link"; then
+
+ngx_module_type=HTTP_INIT_FILTER
+ngx_module_name=ngx_http_bytes_filter_module
+ngx_module_incs=
+ngx_module_deps=
+ngx_module_srcs=$ngx_addon_dir/ngx_http_bytes_filter_module.c
+ngx_module_libs=
+
+. auto/module
+
+else
+
 HTTP_RANGE_BODY_FILTER_MODULE="$HTTP_RANGE_BODY_FILTER_MODULE \
 		ngx_http_bytes_filter_module"
-
 NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
 		$ngx_addon_dir/ngx_http_bytes_filter_module.c"
+
+fi