1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

[configure.ac] Let build with lua52 or lua53 also. Refs #46

Preferred is lua51, but next are checked 53, and finally 52
This commit is contained in:
Witold Filipczyk 2020-05-22 21:01:15 +02:00
parent b3ae1caf8b
commit 058c3f6d0a

View File

@ -893,7 +893,7 @@ if test -z "$disable_lua"; then
withval="";
fi
for luadir in "$withval" "" /usr /usr/local; do
for suffix in "" 5.1 51; do
for suffix in "" 5.1 51 5.3 53 5.2 52; do
if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \
test -f "$luadir/include/lua$suffix/lua.h" ) ; then
LUA_LIBS="-L$luadir/lib -llua$suffix -lm"