[vlc-devel] commit: configure.ac - lua checks (Dominique Martinet )
git version control
git at videolan.org
Wed Sep 2 18:51:31 CEST 2009
vlc | branch: master | Dominique Martinet <asmadeus at via.ecp.fr> | Fri Aug 28 13:18:07 2009 +0200| [47508ae91df48502a641122f2119eae113701c64] | committer: Rémi Denis-Courmont
configure.ac - lua checks
Makes the configure throw an error when lua is not found and
--enable-lua has been specified.
Also checks for liblua with libmath, so it actually works when there
is no pkgconfig file.
Slightly modified by Rémi Denis-Courmont
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47508ae91df48502a641122f2119eae113701c64
---
configure.ac | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6f0b053..333e542 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1702,8 +1702,10 @@ then
AC_CHECK_LIB( lua , luaL_newstate,
[LUA_LIBS="-llua"],
[ have_lua=no
- AC_MSG_WARN([lua >= 5.1 not found!])
- ])
+ AS_IF([test "x${enable_lua}" = "xyes"],
+ [AC_MSG_ERROR([lua >= 5.1 not found!])],
+ [AC_MSG_WARN([lua >= 5.1 not found!])])
+ ], [-lm])
)
)
])
More information about the vlc-devel
mailing list