forked from AlticeLabsProjects/nginx-log-zmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
67 lines (54 loc) · 1.65 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ngx_feature_name=
ngx_feature_run=yes
ngx_feature_incs="#include <zmq.h>"
ngx_feature_test="if (ZMQ_VERSION < 20100) { return 1; }"
if [ -n "$LIBZMQ_INC" -o -n "$LIBZMQ_LIB" ]; then
# specified by LIBZMQ_INC and/or LIBZMQ_LIB
ngx_feature="ZeroMQ library in directories specified by LIBZMQ_INC ($LIBZMQ_INC) and/or LIBZMQ_LIB ($LIBZMQ_LIB)"
ngx_feature_path="$LIBZMQ_INC"
if [ $NGX_RPATH = YES ]; then
ngx_feature_libs="-R$LIBZMQ_LIB -L$LIBZMQ_LIB -lzmq"
else
ngx_feature_libs="-L$LIBZMQ_LIB -lzmq"
fi
. auto/feature
else
ngx_feature="ZeroMQ library"
ngx_feature_path=
ngx_feature_libs="-lzmq"
. auto/feature
fi
if [ $ngx_found = no ]; then
echo "$0: error: requires libzmq"
exit 1
fi
ngx_addon_name="ngx_http_log_zmq_module"
CORE_INCS="$CORE_INCS $ngx_feature_path $ngx_addon_dir/src"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
ZMQ_MODULE="$ngx_addon_name"
ZMQ_SRCS=" \
$ngx_addon_dir/src/ngx_http_log_zmq_module.c \
$ngx_addon_dir/src/ngx_http_log_zmq.c \
"
ZMQ_DEPS=" \
$ngx_addon_dir/src/ngx_http_log_zmq_module.h \
$ngx_addon_dir/src/ngx_http_log_zmq.h \
"
ngx_module_incs=$ngx_addon_dir
ngx_module_deps=$ZMQ_DEPS
ngx_module_libs=
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name="$ZMQ_MODULE"
ngx_module_incs=
ngx_module_deps="$ZMQ_DEPS"
ngx_module_srcs="$ZMQ_SRCS"
. auto/module
else
ngx_module_type=MISC
ngx_module_name="$ZMQ_MODULE"
ngx_module_srcs="$ZMQ_SRCS"
HTTP_MODULES="$HTTP_MODULES $ZMQ_MODULE"
NGX_ADDONS_SRC="$NGX_ADDON_SRCS $ZMQ_SRCS"
NGX_ADDONS_DEPS="$NGX_ADDON_DEPS $ZMQ_DEPS"
fi