Blame SOURCES/lua-5.3.0-configure-compat-module.patch
|
|
e6e9ea |
diff -up lua-5.2.2/configure.ac.compat-module lua-5.2.2/configure.ac
|
|
|
e6e9ea |
--- lua-5.2.2/configure.ac.compat-module 2013-05-10 10:16:05.344137597 -0400
|
|
|
e6e9ea |
+++ lua-5.2.2/configure.ac 2013-05-10 10:16:05.357137596 -0400
|
|
|
e6e9ea |
@@ -11,6 +11,20 @@ AC_PROG_CC
|
|
|
e6e9ea |
AC_PROG_LIBTOOL
|
|
|
e6e9ea |
|
|
|
e6e9ea |
AC_ARG_WITH(
|
|
|
e6e9ea |
+ [compat-module],
|
|
|
e6e9ea |
+ [AC_HELP_STRING([--with-compat-module], [Enable LUA_COMPAT_MODULE functions [default=no]])],
|
|
|
e6e9ea |
+ [use_compat_module=$withval],
|
|
|
e6e9ea |
+ [use_compat_module=no]
|
|
|
e6e9ea |
+)
|
|
|
e6e9ea |
+
|
|
|
e6e9ea |
+COMPAT_DEFS="#undef LUA_COMPAT_ALL"
|
|
|
e6e9ea |
+if test "x$use_compat_module" == "xyes"; then
|
|
|
e6e9ea |
+ COMPAT_DEFS="#define LUA_COMPAT_5_1
|
|
|
e6e9ea |
+#define LUA_COMPAT_5_2"
|
|
|
e6e9ea |
+fi
|
|
|
e6e9ea |
+AC_SUBST(COMPAT_DEFS)
|
|
|
e6e9ea |
+
|
|
|
e6e9ea |
+AC_ARG_WITH(
|
|
|
e6e9ea |
[readline],
|
|
|
e6e9ea |
[AC_HELP_STRING([--with-readline], [Use readline for interpreter input [default=yes]])],
|
|
|
e6e9ea |
[use_readline=$withval],
|
|
|
e6e9ea |
diff -up lua-5.2.2/src/luaconf.h.template.in.compat-module lua-5.2.2/src/luaconf.h.template.in
|
|
|
e6e9ea |
--- lua-5.2.2/src/luaconf.h.template.in.compat-module 2013-05-10 10:25:42.586116963 -0400
|
|
|
e6e9ea |
+++ lua-5.2.2/src/luaconf.h.template.in 2013-05-10 10:26:29.957115269 -0400
|
|
|
e6e9ea |
@@ -15,6 +15,7 @@
|
|
|
e6e9ea |
@LUA_DL_DEFS@
|
|
|
e6e9ea |
@LUA_BUILD_AS_DLL_DEFS@
|
|
|
e6e9ea |
@READLINE_DEFS@
|
|
|
e6e9ea |
+@COMPAT_DEFS@
|
|
|
e6e9ea |
|
|
|
e6e9ea |
|
|
|
e6e9ea |
/*
|