csant <[EMAIL PROTECTED]> writes:

> Still failing with the same error after applying the patch to a clean
> tree  before running autoreconf.

Then, can you try this one (on a clean tree):

--- old-ion-3/configure.ac      2006-05-18 13:21:14.347139320 +0200
+++ new-ion-3/configure.ac      2006-05-18 13:21:14.400131264 +0200
@@ -244,14 +244,14 @@
 elif test "x$with_lua_prefix" != x; then
     LUA_LIBS="-L$with_lua_prefix/lib"
 fi
+AC_CHECK_LIB([m], [exp], [lua_extra_libs="$lua_extra_libs -lm"], [])
+AC_CHECK_LIB([dl], [dlopen], [lua_extra_libs="$lua_extra_libs -ldl"], [])
 AC_CHECK_LIB([lua$with_lua_suffix],
              [lua_call],
-             [LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix"],
+             [LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix $lua_extra_libs"],
              [AC_MSG_ERROR([*** Can't find lua_call in lua$with_lua_suffix.
                   *** Check for liblua installation or --with-lua-libraries or 
--with-lua-suffix options])],
-             [$LUA_LIBS])
-AC_CHECK_LIB([dl], [dlopen], [lua_extra_libs="$lua_extra_libs -ldl"], [])
-AC_CHECK_LIB([m], [exp], [lua_extra_libs="$lua_extra_libs -lm"], [])
+             [$LUA_LIBS $lua_extra_libs])
 dnl }}}
 
 dnl liblua_version {{{



If it doesn't work, it'd be great if you can investigate a bit on your
side. AIUI, you need to add "-lm" to the command line compiling the
test (the one that appears here in config.log:
configure:5837: checking for lua_call in -llua5.1
configure:5867: gcc -o conftest -g -O2   conftest.c -llua5.1  -lm  >&5
configure:5873: $? = 0
)

Thanks a lot,

-- 
Matthieu

Reply via email to