From 59ad38bc53b26d2ee70ac0a6ceca2ade7150e9e8 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 26 Feb 2006 08:20:30 +0000 Subject: [PATCH] Update Lua configure check for 5.0 Use the new names instead of the deprecated names to increase the likelihood that later versions, which might lack the backwards-compatibility wrappers, will work. --- configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 42513a16b..6e49ba6f2 100644 --- a/configure.in +++ b/configure.in @@ -845,10 +845,11 @@ if test -z "$disable_lua"; then AC_TRY_LINK([ #include #include ], [ lua_State *L = lua_open(); - lua_baselibopen(L); - lua_mathlibopen(L); - lua_strlibopen(L); - lua_tablibopen(L); + luaopen_base(L); + luaopen_table(L); + luaopen_io(L); + luaopen_string(L); + luaopen_math(L); lua_pushboolean(L, 1); lua_close(L);], cf_result=yes, cf_result=no)