]> git.sesse.net Git - vlc/blobdiff - configure.ac
Check for missing LUAC in configure rather than make, make it precious
[vlc] / configure.ac
index 9fc2af9ba81787ad067d250cd71e723a944662e4..b3e0ee24d22420ed58a847c1084d278db46d017a 100644 (file)
@@ -1629,7 +1629,10 @@ then
   else
       AC_MSG_ERROR([Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.])
   fi
-  AC_PATH_PROG(LUAC, luac)
+  AC_ARG_VAR([LUAC], [LUA byte compiler])
+  AC_PATH_PROG(LUAC, luac, [
+    AC_MSG_ERROR([Could not find the LUA byte compiler.])
+  ])
 fi
 AM_CONDITIONAL(BUILD_LUA, [test "${have_lua}" = "yes"])