1 diff -Naur StepMania-3.9-src-orig/autoconf/m4/lua.m4 StepMania-3.9-src/autoconf/m4/lua.m4
2 --- StepMania-3.9-src-orig/autoconf/m4/lua.m4 2005-01-12 15:23:23.000000000 +0100
3 +++ StepMania-3.9-src/autoconf/m4/lua.m4 2008-01-22 23:14:29.000000000 +0100
8 - AC_CHECK_FUNC(lua_open, , LUA_MISSING=yes)
9 + AC_CHECK_FUNC(luaL_newstate, , LUA_MISSING=yes)
11 # If lua-config exists, we should at least have Lua; if it fails to build,
12 # something other than it not being installed is wrong.
16 if test "$LIB_LUA" = ""; then
17 - AC_CHECK_LIB(lua, lua_open, LIB_LUA=-llua)
18 + AC_CHECK_LIB(lua, luaL_newstate, LIB_LUA=-llua, , [$LIB_LUA -ldl])
20 - if test "$LIB_LUA" = ""; then
21 - AC_CHECK_LIB(lua50, lua_open, LIB_LUA=-llua50)
23 - if test "$LIB_LUA_LIB" = ""; then
24 - AC_CHECK_LIB(lualib, luaopen_base, LIB_LUA_LIB=-llualib, , [$LIB_LUA -ldl])
26 - if test "$LIB_LUA_LIB" = ""; then
27 - AC_CHECK_LIB(lualib50, luaopen_base, LIB_LUA_LIB=-llualib50, , [$LIB_LUA -ldl])
28 + if test "$LIB_LIB" = ""; then
29 + AC_CHECK_LIB(lua, luaopen_base, LIB_LUA=-llua, , [$LIB_LUA -ldl])
31 if test "$LIB_LUA" = ""; then
34 - if test "$LIB_LUA_LIB" = ""; then
38 - LUA_LIBS="$LIB_LUA $LIB_LUA_LIB"
41 if test "$LUA_MISSING" = "yes"; then
44 echo "*** it is installed to continue the installation process."
47 -if test "$LUA_LIB_MISSING" = "yes"; then
49 - echo "*** liblualib is required to build StepMania; please make sure that"
50 - echo "*** it is installed to continue the installation process."