]> git.sesse.net Git - vlc/commitdiff
LUAC: fix error detection
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 16 Apr 2010 17:33:49 +0000 (20:33 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 16 Apr 2010 17:33:49 +0000 (20:33 +0300)
configure.ac

index 651e174a3b4829628f98192c195a442308f0fb16..aea59d660944f51fb7930e7d5b350a5a5040e15a 100644 (file)
@@ -1631,7 +1631,8 @@ then
       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_ARG_VAR([LUAC], [LUA byte compiler])
-  AC_PATH_PROG(LUAC, luac, [
+  AC_PATH_PROG(LUAC, luac, [false])
+  AS_IF([test "${ac_cv_path_LUAC}" = "false"], [
     AC_MSG_ERROR([Could not find the LUA byte compiler.])
   ])
 fi