]> git.sesse.net Git - vlc/commitdiff
Make sure we use the correct luac version when using contribs
authorRafaël Carré <funman@videolan.org>
Fri, 25 Jan 2013 04:31:48 +0000 (05:31 +0100)
committerRafaël Carré <funman@videolan.org>
Fri, 25 Jan 2013 16:00:08 +0000 (17:00 +0100)
configure.ac

index b694b66016a533ffeda644558c9a98db6d98f5a8..cc557e588c5e6b9f5cbac202d80f291e150b8189 100644 (file)
@@ -1524,6 +1524,9 @@ then
   AS_IF([test "${LUAC}" = "false"], [
     AC_MSG_ERROR([Could not find the LUA byte compiler.])
   ])
+  AS_IF([test -f ${CONTRIB_DIR}/lib/liblua.a -a `echo|${LUAC} -o - -|od -j 8 -N 2 -t x2|head -n 1|cut -d' ' -f2` != 0404], [
+    AC_MSG_ERROR([You need 32-bits luac when using using lua from contrib.])
+  ])
 fi
 AM_CONDITIONAL(BUILD_LUA, [test "${have_lua}" = "yes"])