Add LuaJIT support to AX_PROG_LUA macro #288
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow up to #287.
This is a much bigger change adding support for LuaJIT as a Lua interpreter. This is a tricky addition because two sets of version numbers are involved: the Lua VM version (which for LuaJIT is lower that current PUC Lua releases, 5.1 vs 5.4) and also a JIT version. It is also quite common to have both PUC Lua and LuaJIT variants installed on a system, but the lower numbering scheme does not mean that PUC should be preferred.
This implementation leaves it up to the user to specifically request LuaJIT be considered by adding a
--with-luajit
configure option. If they do that and it is set to true, then the regular Lua macros will function in the usual way but with the binary names, include paths, and other things tweaked for use with LuaJIT.I've been using earlier iterations of this (based on a much earlier serial number) for several years with SILE on a number of platforms including Arch Linux, Ubuntu, Nix, Homebrew, OpenBSD, and many others. It has gone pretty well so far. This version is a bit cleaned up and rebased on serial 44.