]> git.sesse.net Git - vlc/commitdiff
Check for missing LUAC in configure rather than make, make it precious
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 06:46:52 +0000 (09:46 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 06:50:04 +0000 (09:50 +0300)
configure.ac
share/Makefile.am

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"])
 
index a7d0b39e736ce962bbced1909cace6c2e65d352f..59d424f1992c315ef95965a238eabda7d64bccf8 100644 (file)
@@ -193,10 +193,6 @@ luac_verbose_ = $(luac_verbose_$(AM_DEFAULT_VERBOSITY))
 luac_verbose_0 = @echo "  LUAC   $@";
 
 .lua.luac:
-       $(AM_V_at)if test -z "$(LUAC)"; then \
-               echo "LUA byte compiler missing." >&2; \
-               exit 1 ; \
-       fi
        $(AM_V_at)for f in $(EXTRA_DIST); do \
                test "$(srcdir)" = . || f="$(srcdir)/$$f"; \
                if test $$f = $<; then \