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

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