diff --git a/config b/config index c55c253..ad3e402 100644 --- a/config +++ b/config @@ -1,4 +1,11 @@ -ngx_addon_name=ngx_http_unzip_module -HTTP_MODULES="$HTTP_MODULES ngx_http_unzip_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_unzip_module.c" -CORE_LIBS="$CORE_LIBS -lzip" +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=ngx_http_unzip_module + ngx_module_srcs="$ngx_addon_dir/ngx_http_unzip_module.c" + ngx_module_libs="-lzip" + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_unzip_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_unzip_module.c" + CORE_LIBS="$CORE_LIBS -lzip" +fi