1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-02-26 08:20:30 +00:00 committed by Miciah Dashiel Butler Masters
parent c26ce0d291
commit 59ad38bc53

View File

@ -845,10 +845,11 @@ if test -z "$disable_lua"; then
AC_TRY_LINK([ #include <lua.h>
#include <lualib.h>],
[ 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)