feature: bundle the lua-resty-core library, which reimplements ngx_lua's Lua API with LuaJIT FFI.

This commit is contained in:
Yichun Zhang (agentzh) 2013-12-14 13:21:41 -08:00
parent 0528788543
commit b8bf7bbb4c
2 changed files with 12 additions and 1 deletions

6
util/configure vendored
View File

@ -182,6 +182,9 @@ for my $opt (@ARGV) {
} elsif ($opt eq '--without-lua_resty_lock') {
$resty_opts{no_lua_resty_lock} = 1;
} elsif ($opt eq '--without-lua_resty_core') {
$resty_opts{no_lua_resty_core} = 1;
} elsif ($opt eq '--without-lua_rds_parser') {
$resty_opts{no_lua_rds_parser} = 1;
@ -787,7 +790,7 @@ _EOC_
}
for my $key (qw(dns memcached redis mysql string upload websocket
lock))
lock core))
{
unless ($opts->{"no_lua_resty_$key"}) {
my $name = "lua-resty-$key";
@ -911,6 +914,7 @@ _EOC_
--without-lua_resty_string disable the lua-resty-string library
--without-lua_resty_websocket disable the lua-resty-websocket library
--without-lua_resty_lock disable the lua-resty-lock library
--without-lua_resty_core disable the lua-resty-core library
--without-lua51 disable the bundled Lua 5.1 interpreter
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH

View File

@ -509,6 +509,13 @@ mv agentzh-lua-resty-lock-* lua-resty-lock-$ver || exit 1
#################################
ver=0.0.2
$root/util/get-tarball "https://github.com/agentzh/lua-resty-core/tarball/v$ver" -O "lua-resty-core-$ver.tar.gz" || exit 1
tar -xzf lua-resty-core-$ver.tar.gz || exit 1
mv agentzh-lua-resty-core-* lua-resty-core-$ver || exit 1
#################################
rm *.tar.gz
cd ..