diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-19 14:47:06 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-19 18:51:30 +0200 |
| commit | fc388a01f4a384729d5b9481a20c69f36256780f (patch) | |
| tree | 9239e74b7d60320c3111fab9e95b2ace23fc7c9c /configure | |
| parent | 2f1648c8aa732041451d695aef27ca016d72dbea (diff) | |
| download | vis-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.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
