summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2006-02-03 08:31:15 +0000
committerEmmanuel Bouthenot <kolter@openics.org>2006-02-03 08:31:15 +0000
commit9150cff430c5fe794e0429b298313e30811ad7ac (patch)
tree4837e9456f031ce6eb4272a904d855aa44318fc9
parent480974b8de118560845cbaa36221eda059a1c756 (diff)
downloadweechat-9150cff430c5fe794e0429b298313e30811ad7ac.zip
fix minor bugs while detecting lua
-rw-r--r--configure.in10
-rw-r--r--weechat/configure.in10
2 files changed, 16 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 90c78ae31..3a239a53a 100644
--- a/configure.in
+++ b/configure.in
@@ -343,6 +343,9 @@ if test "x$enable_lua" = "xyes" ; then
break
fi
done
+ if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_RESULT(found)
+ fi
fi
fi
@@ -354,9 +357,13 @@ if test "x$enable_lua" = "xyes" ; then
LUA_CFLAGS=`$LUACONFIG --include`
LUA_LFLAGS=`$LUACONFIG --libs`
fi
+ if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_RESULT(found)
+ fi
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_CHECKING(for Lua headers and librairies)
AC_CHECK_HEADER(lua.h,ac_found_lua_header="yes",ac_found_lua_header="no")
AC_CHECK_HEADER(lualib.h,ac_found_liblua_header="yes",ac_found_liblua_header="no")
if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
@@ -375,8 +382,7 @@ if test "x$enable_lua" = "xyes" ; then
fi
done
fi
-
- AC_MSG_CHECKING(for Lua headers and librairies)
+
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_ERROR([
*** Lua (>=5.0) headers and librairies couldn't be found in your system.
diff --git a/weechat/configure.in b/weechat/configure.in
index 90c78ae31..3a239a53a 100644
--- a/weechat/configure.in
+++ b/weechat/configure.in
@@ -343,6 +343,9 @@ if test "x$enable_lua" = "xyes" ; then
break
fi
done
+ if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_RESULT(found)
+ fi
fi
fi
@@ -354,9 +357,13 @@ if test "x$enable_lua" = "xyes" ; then
LUA_CFLAGS=`$LUACONFIG --include`
LUA_LFLAGS=`$LUACONFIG --libs`
fi
+ if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_RESULT(found)
+ fi
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
+ AC_MSG_CHECKING(for Lua headers and librairies)
AC_CHECK_HEADER(lua.h,ac_found_lua_header="yes",ac_found_lua_header="no")
AC_CHECK_HEADER(lualib.h,ac_found_liblua_header="yes",ac_found_liblua_header="no")
if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
@@ -375,8 +382,7 @@ if test "x$enable_lua" = "xyes" ; then
fi
done
fi
-
- AC_MSG_CHECKING(for Lua headers and librairies)
+
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_ERROR([
*** Lua (>=5.0) headers and librairies couldn't be found in your system.