Blame SOURCES/lua-5.2.2-configure-linux.patch

a8bfa3
diff -up lua-5.2.2/configure.ac.linux lua-5.2.2/configure.ac
a8bfa3
--- lua-5.2.2/configure.ac.linux	2013-05-10 15:42:27.269437631 -0400
a8bfa3
+++ lua-5.2.2/configure.ac	2013-05-10 15:43:23.530435620 -0400
a8bfa3
@@ -50,6 +50,7 @@ AC_SUBST(READLINE_LIBS)
a8bfa3
 case "$host" in
a8bfa3
   *-mingw*)  use_os=win32  ;;
a8bfa3
   *-darwin*) use_os=macosx ;;
a8bfa3
+  *-linux*)  use_os=linux  ;;
a8bfa3
   *)         use_os=posix  ;;
a8bfa3
 esac
a8bfa3
 
a8bfa3
@@ -62,6 +63,10 @@ if test "x$use_os" == "xwin32"; then
a8bfa3
 elif test "x$use_os" == "xmacosx"; then
a8bfa3
   POSIX_DEFS="#define LUA_USE_POSIX"
a8bfa3
   LUA_DL_DEFS="#define LUA_DL_DYLD"
a8bfa3
+elif test "x$use_os" == "xlinux"; then
a8bfa3
+  POSIX_DEFS="#define LUA_USE_LINUX"
a8bfa3
+  LUA_DL_DEFS="#define LUA_DL_DLOPEN"
a8bfa3
+  LUA_LIBS="$LUA_LIBS -ldl"
a8bfa3
 elif test "x$use_os" == "xposix"; then
a8bfa3
   POSIX_DEFS="#define LUA_USE_POSIX"
a8bfa3
   LUA_DL_DEFS="#define LUA_DL_DLOPEN"