vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 50cfab0fc34f3d122a1fd955e1b343eda4b575f2 parent 5251ead595549b6c7782583c6a4227ebadb9208a Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 19 May 2016 14:47:06 +0200 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:
| M | configure | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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);