Skip to content

Commit 0a0bbf8

Browse files
committed
chore: first stuffs
1 parent de3f375 commit 0a0bbf8

8 files changed

+1556
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.t linguist-language=Text

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53+
54+
t/servroot

README.markdown

Whitespace-only changes.

config

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
if [ $USE_THREADS != YES ]; then
2+
cat << END
3+
4+
$0: lua_io_nginx_module depends on the threads support, please reconfigure with "--with-threads" option.
5+
6+
END
7+
exit 1
8+
fi
9+
10+
# threads support test has been done
11+
12+
# this is a workaround, to include the private header files in ngx_lua module,
13+
# we need this to solve the context checking problem.
14+
for header in $HTTP_LUA_DEPS
15+
do
16+
if grep -q "ngx_http_lua_util.h" <<< $header; then
17+
dir=`dirname $header`
18+
CORE_INCS="$CORE_INCS $dir"
19+
break
20+
fi
21+
done
22+
23+
ngx_addon_name=ngx_http_lua_io_module
24+
HTTP_LUA_IO_SRCS="$ngx_addon_dir/src/ngx_http_lua_io_module.c"
25+
26+
if test -n "$ngx_module_link"; then
27+
ngx_module_type=HTTP
28+
ngx_module_name=$ngx_addon_name
29+
ngx_module_srcs="$HTTP_LUA_IO_SRCS"
30+
31+
. auto/module
32+
else
33+
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
34+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_LUA_UPSTREAM_SRCS"
35+
36+
CORE_INCS="$CORE_INCS $ngx_module_incs"
37+
CORE_LIBS="$CORE_LIBS $ngx_module_libs"
38+
fi

0 commit comments

Comments
 (0)