File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
v3.0.3 - YYYY-MMM-DD (to be released)
2
2
-------------------------------------
3
3
4
+ - Allow LuaJIT to be used
5
+ [Issue #1809 - @victorhora, @p0pr0ck5]
4
6
- Implement support for Lua 5.1
5
7
[Issue #1809 - @p0pr0ck5, @victorhora]
6
8
- Variable names must match fully, not partially. Match should be case
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ AC_DEFUN([CHECK_LUA],
6
6
[ dnl
7
7
8
8
# Possible names for the lua library/package (pkg-config)
9
- LUA_POSSIBLE_LIB_NAMES="lua lua53 lua5.3 lua52 lua5.2 lua51 lua5.1"
9
+ LUA_POSSIBLE_LIB_NAMES="lua lua53 lua5.3 lua52 lua5.2 lua51 lua5.1 luajit luajit-5.1 "
10
10
11
11
# Possible extensions for the library
12
12
LUA_POSSIBLE_EXTENSIONS="so so0 la sl dll dylib so.0.0.0"
68
68
case $LUA_PKG_VERSION in
69
69
(5.1*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
70
70
(5.2*) LUA_CFLAGS="-DWITH_LUA_5_2 ${LUA_CFLAGS}" ; lua_5_2=1 ;;
71
+ (2.*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
71
72
esac
72
73
AC_MSG_NOTICE ( [ LUA pkg-config version: ${LUA_PKG_VERSION}] )
73
74
fi
@@ -169,6 +170,9 @@ AC_DEFUN([CHECK_FOR_LUA_AT], [
169
170
elif test -e "${path}/include/lua5.1/lua.h"; then
170
171
lua_inc_path="${path}/include/lua5.1"
171
172
LUA_VERSION=501
173
+ elif test -e "${path}/include/luajit-2.0/lua.h"; then
174
+ lua_inc_path="${path}/include/luajit-2.0"
175
+ LUA_VERSION=501
172
176
fi
173
177
174
178
if test -n "${lua_lib_path}"; then
You can’t perform that action at this time.
0 commit comments