--- a/config.h.in Wed Nov 28 01:55:12 2012 +0200
+++ b/config.h.in Wed Nov 28 01:56:15 2012 +0200
@@ -22,12 +22,20 @@
// define this to enable debugging output
#cmakedefine DEBUG
+// define this, if you are building with liblua 5.2
+#cmakedefine HAVE_LUA52
+
// define this, if your loudmouth have lm_connection_get_keep_alive_rate ()
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
// define this, if your loudmouth have lm_connection_unregister_reply_handler ()
#cmakedefine HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
+#ifndef HAVE_LUA52
+# define lua_rawlen lua_objlen
+# define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
+#endif
+
#ifdef DEBUG
# include <glib.h>