From 6baab07ed0743c12a0e72e61560de031bc5e6fc6 Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Sat, 19 May 2007 23:00:43 +0000 Subject: [PATCH] Fix previous commit --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index d231d19167..487a2f405d 100644 --- a/configure.ac +++ b/configure.ac @@ -1565,10 +1565,13 @@ then [], [ have_lua=no ] ) AC_CHECK_LIB( lua5.1 , luaL_newstate, - [], - [ have_lua=no - AC_MSG_WARN([lua >= 5.1 not found!]) - ]) + [LUA_LIBS="-llua5.1"], + AC_CHECK_LIB( lua , luaL_newstate, + [LUA_LIBS="-llua"], + [ have_lua=no + AC_MSG_WARN([lua >= 5.1 not found!]) + ]) + ) ]) ]) if test "x${have_lua}" = "xyes" ; then -- 2.39.2