1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

configure.in: Speedup lua finding.

This commit is contained in:
Witold Filipczyk 2007-07-03 18:20:14 +02:00 committed by Witold Filipczyk
parent b2d783351b
commit 84da0c5ccb

View File

@ -907,7 +907,8 @@ if test -z "$disable_lua"; then
fi
for luadir in "$withval" "" /usr /usr/local; do
for suffix in "" 50 51; do
if test "$cf_result" = no; then
if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \
test -f "$luadir/include/lua$suffix/lua.h" ) ; then
LUA_LIBS="-llua$suffix -llualib$suffix -lm"
if test ! -z "$luadir"; then