aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-19 14:47:06 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-19 18:51:30 +0200
commitfc388a01f4a384729d5b9481a20c69f36256780f (patch)
tree9239e74b7d60320c3111fab9e95b2ace23fc7c9c
parent2f1648c8aa732041451d695aef27ca016d72dbea (diff)
downloadvis-fc388a01f4a384729d5b9481a20c69f36256780f.tar.gz
vis-fc388a01f4a384729d5b9481a20c69f36256780f.tar.xz
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.
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
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" <<EOF
#include <lua.h>
#include <lauxlib.h>
+#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);