I forgot to add: `luajit-2.0.0-beta9 -v` prints to stderr instead of stdout, thus the need for the stderr -> stdout redirection. Sounds sorta crazy (to me at least), but it's true. I guess the LuaJIT devs switched to stdout in a later version, because the original autoconf script works like a charm on my 13.10 box.
-Charles On Sat, Nov 16, 2013 at 8:18 PM, Charles Strahan < charles.c.stra...@gmail.com> wrote: > I came up against a couple problems compiling the latest vim source > against the version of LuaJIT that Ubuntu 12.04 officially supports > (2.0.0-beta9); a regexp in the autoconf file needs some tweaking to support > the "-beta9" portion of version string. > > I've attached the patch, and reproduced it below: > > diff --git a/src/configure.in b/src/configure.in > index 8f0dce4..83d0ea8 100644 > --- a/src/configure.in > +++ b/src/configure.in2 > @@ -496,7 +496,7 @@ if test "$enable_luainterp" = "yes" -o > "$enable_luainterp" = "dynamic"; then > if test "X$vi_cv_path_luajit" != "X"; then > dnl -- find LuaJIT version > AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit, > - [ vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT > \([[0-9.]]*\)\.[[0-9]] .*/\1/'` ]) > + [ vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT > \([[0-9.]]*\)\.[[0-9]]\(-[[a-z0-9]]\+\)\? .*/\1/'` ]) > AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit, > [ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | > sed 's/.* //'` ]) > vi_cv_path_lua="$vi_cv_path_luajit" > > > > The other problem I had: autoconf attempts to find luajit on the path, but > the Ubuntu package places the binary at /usr/bin/luajit-2.0.0-beta9; that > was easy enough to fix with symlink (sudo ln -sv > /usr/bin/luajit-2.0.0-beta9 /usr/bin/luajit). > > > Let me know if there's anything else I can do. Thanks! > > -Charles > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.