updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / stepmania-beta / lua51-2.patch
blob12d44878de44d2ccb7c5023b4e43a249d8168611
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
4 @@ -8,7 +8,7 @@
5 old_LIBS=$LIBS
6 LIBS="$LIBS $LUA_LIBS"
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.
13 @@ -23,25 +23,16 @@
14 LIBS="$old_LIBS"
15 else
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)
22 - fi
23 - if test "$LIB_LUA_LIB" = ""; then
24 - AC_CHECK_LIB(lualib, luaopen_base, LIB_LUA_LIB=-llualib, , [$LIB_LUA -ldl])
25 - fi
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
32 LUA_MISSING=yes
34 - if test "$LIB_LUA_LIB" = ""; then
35 - LUA_LIB_MISSING=yes
36 - fi
37 LUA_CFLAGS=
38 - LUA_LIBS="$LIB_LUA $LIB_LUA_LIB"
39 + LUA_LIBS="$LIB_LUA"
41 if test "$LUA_MISSING" = "yes"; then
42 echo
43 @@ -49,12 +40,6 @@
44 echo "*** it is installed to continue the installation process."
45 exit 1;
47 -if test "$LUA_LIB_MISSING" = "yes"; then
48 - echo
49 - echo "*** liblualib is required to build StepMania; please make sure that"
50 - echo "*** it is installed to continue the installation process."
51 - exit 1;
52 -fi
54 AC_SUBST(LUA_CFLAGS)
55 AC_SUBST(LUA_LIBS)