diff options
Diffstat (limited to 'modules/lua/config.m4')
-rw-r--r-- | modules/lua/config.m4 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/lua/config.m4 b/modules/lua/config.m4 index c70c5af9..2d1ac052 100644 --- a/modules/lua/config.m4 +++ b/modules/lua/config.m4 @@ -126,19 +126,22 @@ if test -z "${LUA_LIBS}"; then $2) else AC_MSG_NOTICE([using '${LUA_LIBS}' for Lua Library]) - AC_ARG_ENABLE(luajit, - APACHE_HELP_STRING(--enable-luajit,Enable LuaJit Support), - APR_ADDTO(CPPFLAGS, ["-DAP_ENABLE_LUAJIT"])) + AC_ARG_ENABLE(luajit,APACHE_HELP_STRING(--enable-luajit,Enable LuaJit Support), + [ + if test "$enableval" = "yes"; then + APR_ADDTO(MOD_CPPFLAGS, ["-DAP_ENABLE_LUAJIT"]) + fi + ]) ifelse([$1], , , $1) fi ]) -lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo" +lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo lua_dbd.lo" APACHE_MODULE(lua, Apache Lua Framework, $lua_objects, , , [ CHECK_LUA() if test "x$enable_lua" != "xno" ; then - APR_ADDTO(INCLUDES, [$LUA_CFLAGS]) + APR_ADDTO(MOD_INCLUDES, [$LUA_CFLAGS]) APR_ADDTO(MOD_LUA_LDADD, [$LUA_LIBS]) fi ]) |