Skip to content

Commit

Permalink
config: now we also explicitly check the Lua ABI/language version in …
Browse files Browse the repository at this point in the history
…our feature test for a Lua lib.
  • Loading branch information
agentzh committed Aug 14, 2014
1 parent 90bdd97 commit d4dbba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config
Expand Up @@ -4,7 +4,10 @@ ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <lauxlib.h>"
ngx_feature_path=
ngx_feature_test="(void) luaL_newstate();"
ngx_feature_test="#if LUA_VERSION_NUM != 501
# error unsupported Lua language version
#endif
(void) luaL_newstate();"

if [ -n "$LUAJIT_INC" -o -n "$LUAJIT_LIB" ]; then
# explicitly set Lua lib path
Expand Down

0 comments on commit d4dbba5

Please sign in to comment.