From fc388a01f4a384729d5b9481a20c69f36256780f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 19 May 2016 14:47:06 +0200 Subject: build: check for Lua >= 5.2 in configure script The generic lua pkg-config name also match for Lua 5.1 which then results in a linker error because the necessary functions are not available. --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 951e67e..b100b48 100755 --- a/configure +++ b/configure @@ -354,12 +354,16 @@ CONFIG_LUA=0 if test "$lua" != "no" ; then - printf "checking for liblua...\n" + printf "checking for liblua >= 5.2 ...\n" cat > "$tmpc" < #include +#if LUA_VERSION_NUM < 502 +#error "Need at least Lua 5.2" +#endif + int main(int argc, char *argv[]) { lua_State *L = luaL_newstate(); luaL_openlibs(L); -- cgit v1.2.3