[Spice-devel] [PATCH 3/5] build: warn and instruct if valac is missing

Marc-André Lureau marcandre.lureau at gmail.com
Wed Aug 17 05:45:13 PDT 2011


---
 gtk/controller/Makefile.am |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gtk/controller/Makefile.am b/gtk/controller/Makefile.am
index bafad58..4a488e9 100644
--- a/gtk/controller/Makefile.am
+++ b/gtk/controller/Makefile.am
@@ -57,6 +57,13 @@ test_controller_SOURCES = test.c
 test_controller_LDADD = libspice-controller.la
 
 controller.vala.stamp: $(libspice_controller_la_VALASOURCES) custom.vapi
+	@if test -z "$(VALAC)"; then \
+		echo "" ; \
+		echo "  *** Error: missing valac!" ; \
+		echo "  *** You must run autogen.sh or --enable-vala" ; \
+		echo "" ; \
+		exit 1 ; \
+	fi
 	$(VALA_V)$(VALAC) $(VALAFLAGS) $(AM_VALAFLAGS) $(libspice_controller_la_VALASOURCES) -H spice-controller.h
 	@touch $@
 
-- 
1.7.6



More information about the Spice-devel mailing list