[anjuta] Detect valac correctly and use (VALAC) in the Makefile.am instead of directly calling the compiler



commit 66e27cb9bf9e13625dbaf2589278d18663ef0773
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Feb 11 22:54:16 2010 +0100

    Detect valac correctly and use (VALAC) in the Makefile.am instead of directly calling the compiler

 configure.in                              |   10 ++++++++++
 plugins/symbol-db/anjuta-tags/Makefile.am |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index db766ac..b18e44a 100644
--- a/configure.in
+++ b/configure.in
@@ -279,6 +279,11 @@ PKG_CHECK_MODULES(VALA,
 	[enable_vala="yes"],
 	[enable_vala="no"])
 
+if test x$enable_vala = xyes; then
+	AC_PATH_PROG(VALAC, valac, valac)
+	AC_SUBST(VALAC)
+fi
+
 AM_CONDITIONAL(ENABLE_VALA, [test x$enable_vala = xyes])
 
 PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
@@ -917,6 +922,11 @@ if [ test x$sourceview = xyes ]; then
 else
         echo "Building GtkSourceView based editor: ...................NO"
 fi
+if [ test x$enable_vala = xyes ]; then
+        echo "Building Vala ctags parser (requires vala):.............YES"
+else
+        echo "Building Vala ctags parser (requires vala):.............NO"
+fi
 echo "-------------------------------------------------------------------"
 echo "AM_CFLAGS = $AM_CFLAGS"
 echo "AM_CXXFLAGS = $AM_CXXFLAGS"
diff --git a/plugins/symbol-db/anjuta-tags/Makefile.am b/plugins/symbol-db/anjuta-tags/Makefile.am
index d23e2a1..0d73de1 100644
--- a/plugins/symbol-db/anjuta-tags/Makefile.am
+++ b/plugins/symbol-db/anjuta-tags/Makefile.am
@@ -30,7 +30,7 @@ js_parser/lex.yy.c : ${LEXFILE}
 	${LEXER} ${LEXCCFLAGS} ${LEXFILE}
 
 ctags-visitor.c: ctags-visitor.vala
-	valac -g -h ctags-vala.h -C --pkg vala-1.0 $^
+	$(VALAC) -g -h ctags-vala.h -C --pkg vala-1.0 $^
 
 anjuta_tags_SOURCES = \
 	main.c        \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]