mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[configure.ac] lua compilation fix
This commit is contained in:
parent
68f5007252
commit
12d36f3ec9
@ -1005,9 +1005,16 @@ if test -n "$luapkg" && $PKG_CONFIG $pkg_config_static "$luapkg"; then
|
||||
LIBS="$LUA_LIBS $LIBS_X"
|
||||
|
||||
# Check that it is a compatible Lua version
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <lauxlib.h>]
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <lauxlib.h>]
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
], [[lua_State *L = luaL_newstate();
|
||||
luaL_openlibs(L);
|
||||
lua_pushboolean(L, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user