From 1b187099d61143733e35ff58bfc6a0cedd2e2322 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 26 Oct 2012 18:01:17 +0200 Subject: vala: if no proper compiler found, set $(VALAC) to 'valac' This is better than setting it to ':' (as is currently done), because a triggered makefile rule invoking a vala compilation will then clearly fail with an informative error message like "valac: command not found", rather than silently, with the error possibly going unnoticed, or triggering harder-to-diagnose fallout failures in later steps. For a precedent of a similar behaviour, see the AC_PROG_YACC macro. * m4/valac.m4: Implement the new semantic. * doc/automake.texi (Vala Support): Document it. * t/vala4.sh: Adjust. Signed-off-by: Stefano Lattarini --- doc/automake.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/automake.texi b/doc/automake.texi index ae3fd15ba..7289d8543 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -6900,8 +6900,8 @@ There are a few variables that are used when compiling Vala sources: @vtable @code @item VALAC -Absolute path to the Vala compiler, or @samp{:} if no suitable compiler -could be found. +Absolute path to the Vala compiler, or simply @samp{valac} if no +suitable compiler Vala could be found at configure runtime. @item VALAFLAGS Additional arguments for the Vala compiler. -- cgit v1.2.1