On my system (gentoo) the pkg-config check for lua fails with:

checking for LUA... no
checking for lua 5.1... no; guessing
checking for lua_load in -llua5.1... no
checking whether the lua library is usable... yes

Applying the following patch to patch m4/lua.m4 seems to make it happy:

#
# old_revision [6c5a8fa3d0437be28f59b448a5f72c90267df149]
#
# patch "m4/lua.m4"
#  from [1253a38c8df4cb482c3588d3d11e6478952f2b8c]
#    to [18918826ac2f2eafefabe1c0038df4b1ab7a881c]
#
============================================================
--- m4/lua.m4    1253a38c8df4cb482c3588d3d11e6478952f2b8c
+++ m4/lua.m4    18918826ac2f2eafefabe1c0038df4b1ab7a881c
@@ -10,7 +10,7 @@ AC_DEFUN([MTN_FIND_LUA],
    if test -n "${LUA_CFLAGS+set}" || test -n "${LUA_LIBS+set}"; then
      found_liblua=yes
    else
-     PKG_CHECK_MODULES([LUA], [lua5.1],
+     PKG_CHECK_MODULES([LUA], [lua],
                        [found_liblua=yes], [found_liblua=no])
    fi

checking for LUA... yes
checking whether the lua library is usable... yes

Is this a reasonable change on other systems?

Cheers,
Derek
_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to