From b9b07c86f04c5df485e9a7b4200a0f467b925bd5 Mon Sep 17 00:00:00 2001 From: gnought Date: Thu, 14 Apr 2016 12:28:57 +0800 Subject: [PATCH] Support nginx 1.9.11+ dynamic module feature --- config | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/config b/config index c688410..cd527bd 100644 --- a/config +++ b/config @@ -1,3 +1,13 @@ ngx_addon_name=ngx_http_concat_module -HTTP_MODULES="$HTTP_MODULES ngx_http_concat_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_concat_module.c" + +if test -n "$ngx_module_link"; then + + ngx_module_type=HTTP + ngx_module_name=$ngx_addon_name + ngx_module_srcs="$ngx_addon_dir/ngx_http_concat_module.c" + + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_concat_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_concat_module.c" +fi