rygel r48 - trunk
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r48 - trunk
- Date: Tue, 28 Oct 2008 20:59:06 +0000 (UTC)
Author: zeeshanak
Date: Tue Oct 28 20:59:06 2008
New Revision: 48
URL: http://svn.gnome.org/viewvc/rygel?rev=48&view=rev
Log:
Check for Vala and GUPnP bindings.
Modified:
trunk/ChangeLog
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Oct 28 20:59:06 2008
@@ -11,16 +11,34 @@
AC_PROG_LIBTOOL
AC_FUNC_MMAP
+VALA_REQUIRED=0.3.3
GUPNP_REQUIRED=0.6
GUPNP_AV_REQUIRED=0.1
GCONF_REQUIRED=2.22
DBUS_GLIB_REQUIRED=0.74
+PKG_CHECK_MODULES(VALA, [vala-1.0 >= $VALA_REQUIRED])
PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED)
PKG_CHECK_MODULES(LIBGUPNP_AV, gupnp-av-1.0 >= $GUPNP_AV_REQUIRED)
PKG_CHECK_MODULES(LIBGCONF, gconf-2.0 >= $GCONF_REQUIRED)
PKG_CHECK_MODULES(LIBDBUS_GLIB, dbus-glib-1 >= $DBUS_GLIB_REQUIRED)
+# Vala compiler
+# This is more to get the path of the compiler since the pkg-config check
+# should covers check for compiler as well.
+AC_PATH_PROG(VALAC, valac, no)
+if test "x$VALAC" = "xno"; then
+ AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
+fi
+
+VAPIDIR=`pkg-config --variable=vapidir vala-1.0`
+AC_SUBST(VAPIDIR)
+
+# FIXME: Whats the proper way for checking for particular Vala bindings
+AC_CHECK_FILE("${VAPIDIR}/gupnp-1.0.vapi",
+ true,
+ [AC_MSG_ERROR("Unable to find Vala bindings for gupnp-1.0")])
+
# glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]