From 7a3f947a50d70593151c0b68f3823885e46f5716 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 3 Jul 2007 18:20:14 +0200 Subject: [PATCH] configure.in: Speedup lua finding. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 90f344d2..8f53f8ad 100644 --- a/configure.in +++ b/configure.in @@ -895,7 +895,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 -- 2.11.4.GIT