File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,20 @@ ngx_check_src="$ngx_addon_dir/ngx_http_upstream_check_module.c"
9
9
ngx_feature_test="int a;"
10
10
. auto/feature
11
11
12
- if [ $ngx_found = yes ]; then
12
+ ngx_addon_name=ngx_http_upstream_check_module
13
+ ngx_module_incs=$ngx_addon_dir
14
+
15
+ if test -n "$ngx_module_link"; then
16
+ ngx_module_type="HTTP"
17
+ ngx_module_name="ngx_http_upstream_check_module"
18
+ ngx_module_srcs="$ngx_addon_dir/ngx_http_upstream_check_module.c"
19
+ ngx_module_deps="$ngx_addon_dir/ngx_http_upstream_check_module.h"
20
+
21
+ . auto/module
22
+ else
13
23
have=NGX_HTTP_UPSTREAM_CHECK . auto/have
14
24
CORE_INCS="$CORE_INCS $ngx_feature_path"
15
- ngx_addon_name=ngx_http_upstream_check_module
16
25
HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_check_module"
17
26
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_feature_deps"
18
27
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_check_src"
19
- else
20
- cat << END
21
- $0: error: the ngx_http_upstream_check_module addon error.
22
- END
23
- exit 1
24
28
fi
You can’t perform that action at this time.
0 commit comments