Skip to content

Commit

Permalink
Support dynamic build for user_agent module.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfakang committed May 14, 2019
1 parent af3ad75 commit 64a674b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions modules/ngx_http_user_agent_module/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
ngx_addon_name=ngx_http_user_agent_module
HTTP_MODULES="$HTTP_MODULES ngx_http_user_agent_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_user_agent_module.c"
HTTP_USER_AGENT=YES
HTTP_USER_AGENT_SRCS="$ngx_addon_dir/ngx_http_user_agent_module.c"

if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_deps=
ngx_module_srcs="$HTTP_USER_AGENT_SRCS"

. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_user_agent_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_USER_AGENT_SRCS"
HTTP_USER_AGENT=YES
fi

0 comments on commit 64a674b

Please sign in to comment.