[libgda/LIBGDA_4.2] build: use AC_PATH_PROG for finding vapigen
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] build: use AC_PATH_PROG for finding vapigen
- Date: Wed, 14 Dec 2011 17:01:16 +0000 (UTC)
commit 512f4c32edbf34b2d7db43169a2de95606282811
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Dec 14 15:05:32 2011 +0100
build: use AC_PATH_PROG for finding vapigen
Also, use the commonly-used names for vala-related variables
configure.ac | 17 ++++++++---------
libgda/Makefile.am | 4 ++--
2 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2746de2..4588215 100644
--- a/configure.ac
+++ b/configure.ac
@@ -513,14 +513,14 @@ then
if test "x$have_vala" = "xyes"
then
- VALA_BINDIR=`pkg-config $VALA_MODULES --variable=bindir`
- AC_SUBST(VALA_BINDIR)
- VALA_COMPILER="$VALA_BINDIR/valac"
- AC_SUBST(VALA_COMPILER)
- VALA_VAPIGEN=`pkg-config $VALA_MODULES --variable=vapigen`
- AC_SUBST(VALA_VAPIGEN)
- VALA_VAPIDIR=`pkg-config $VALA_MODULES --variable=vapidir`
- AC_SUBST(VALA_VAPIDIR)
+ AC_PATH_PROG(VAPIGEN, [vapigen], [no])
+ if test "x$VAPIGEN" = "xno"
+ then
+ AC_MSG_ERROR([Vala found but vapigen not found])
+ fi
+ VAPIDIR=`pkg-config $VALA_MODULES --variable=vapidir`
+ AC_SUBST(VAPIGEN)
+ AC_SUBST(VAPIDIR)
fi
else
if test "x$enable_vala" = xyes
@@ -532,7 +532,6 @@ enable_vala=$have_vala
AM_CONDITIONAL(ENABLE_VALA, [test "$enable_vala" = "yes"])
-
dnl ******************************
dnl Checks for libcrypto
dnl ******************************
diff --git a/libgda/Makefile.am b/libgda/Makefile.am
index f77a4f4..027be4f 100644
--- a/libgda/Makefile.am
+++ b/libgda/Makefile.am
@@ -369,9 +369,9 @@ if ENABLE_VALA
vapi: libgda-4.0.vapi
libgda-4.0.vapi: Gda-4.0.gir
- $(VALA_VAPIGEN) --metadatadir=$(top_srcdir)/libgda --library libgda-4.0 --pkg libxml-2.0 Gda-4.0.gir
+ $(VAPIGEN) --metadatadir=$(top_srcdir)/libgda --library libgda-4.0 --pkg libxml-2.0 Gda-4.0.gir
-vapidir = $(VALA_VAPIDIR)
+vapidir = $(VAPIDIR)
vapi_DATA=libgda-4.0.vapi
EXTRA_DIST += \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]