-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig
39 lines (31 loc) · 1.04 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ngx_tcp_lurk_src="$ngx_addon_dir/src/ngx_tcp_lurk_module.c"
ngx_tcp_lurk_deps="$ngx_addon_dir/src/ngx_tcp_lurk.h"
if [ -n "$TCP_MODULES" ]; then
have=NGX_LURK_SSL_SERVER . auto/have
CORE_INCS="$CORE_INCS $ngx_addon_dir/src"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_tcp_lurk_deps"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_tcp_lurk_src"
EVENT_MODULES="$EVENT_MODULES ngx_tcp_lurk_module"
else
cat << END
$0: error: the ngx_tcp_lurk_module addon error, depend on ngx_tcp_module.
END
exit 1
fi
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
# check gcc pragma
ngx_feature="compiler structure-packing pragma"
ngx_feature_name="NGX_HAVE_PACK_PRAGMA"
ngx_feature_run=yes
ngx_feature_incs=
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="#pragma pack(push, 1)
struct test_s {
char foo;
int bar;
};
#pragma pack(pop)
if (sizeof(struct test_s) != (sizeof(char) + sizeof(int)))
return 1;"
. auto/feature