diff -ruN --exclude='.deps*' mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/configure.in mysql-gui-tools-5.0r11.standard/mysql-gui-common/configure.in --- mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/configure.in 2007-03-29 14:46:22.000000000 +0000 +++ mysql-gui-tools-5.0r11.standard/mysql-gui-common/configure.in 2007-11-09 11:28:52.000000000 +0000 @@ -168,8 +168,8 @@ [LUA_LDFLAGS="$withval -llua -llualib"]) if test x"$LUA_CFLAGS$LUA_LDFLAGS" = "x"; then - AC_CHECK_PROG(LUA_CFLAGS,lua-config,`lua-config --include`) - AC_CHECK_PROG(LUA_LDFLAGS,lua-config,`lua-config --libs`) + AC_CHECK_PROG(LUA_CFLAGS,pkg-config,`pkg-config lua --cflags`) + AC_CHECK_PROG(LUA_LDFLAGS,pkg-config,`pkg-config lua --libs`) fi if test x"$LUA_LDFLAGS" = "x"; then @@ -336,7 +336,9 @@ if (pcre_compile("(?:\\\\pL(?:\\\\pL|\\\\pN|\\\\pM|\\\\p{Pc}|\\\\p{Pd}|\\\\pS}|_)*)", PCRE_UTF8, &err, &o, NULL)) return 0; return 1; -])], [HAVE_UNICODE_PCRE=1 AC_MSG_RESULT(yes)], [HAVE_UNICODE_PCRE=0 AC_MSG_RESULT(no)]) +])], [HAVE_UNICODE_PCRE=1 +AC_MSG_RESULT(yes)], [HAVE_UNICODE_PCRE=0 +AC_MSG_RESULT(no)]) CPPFLAGS=$ac_savecpp LIBS=$ac_savelibs AC_DEFINE(HAVE_UNICODE_PCRE, [], [whether pcre was compiled with unicode properties support]) diff -ruN --exclude='.deps*' mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/library/generic-runtime/source/lxp/lxplib.c mysql-gui-tools-5.0r11.standard/mysql-gui-common/library/generic-runtime/source/lxp/lxplib.c --- mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/library/generic-runtime/source/lxp/lxplib.c 2006-03-02 20:48:20.000000000 +0000 +++ mysql-gui-tools-5.0r11.standard/mysql-gui-common/library/generic-runtime/source/lxp/lxplib.c 2007-11-09 11:48:39.000000000 +0000 @@ -539,3 +539,13 @@ return 1; } + +//This function not present in LUA 5.1.x +//Resolve to it found here: http://lua-users.org/lists/lua-l/2006-06/msg00328.html +LUALIB_API int luaL_findstring (const char *name, const char *const list[]) { + int i; + for (i=0; list[i]; i++) + if (strcmp(list[i], name) == 0) + return i; + return -1; /* name not found */ +} diff -ruN --exclude='.deps*' mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/library/generic-runtime/source/myx_grt_lua.c mysql-gui-tools-5.0r11.standard/mysql-gui-common/library/generic-runtime/source/myx_grt_lua.c --- mysql-gui-tools-5.0r11.ORIG/mysql-gui-common/library/generic-runtime/source/myx_grt_lua.c 2006-04-24 21:07:48.000000000 +0000 +++ mysql-gui-tools-5.0r11.standard/mysql-gui-common/library/generic-runtime/source/myx_grt_lua.c 2007-11-09 11:28:52.000000000 +0000 @@ -39,7 +39,6 @@ { "string", luaopen_string }, { "math", luaopen_math }, { "debug", luaopen_debug }, - { "loadlib", luaopen_loadlib }, { "lxp", luaopen_lxp }, { NULL, NULL } };