[grilo-plugins] [youtube] libgdata: Autotools magic.
- From: Iago Toral Quiroga <itoral src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] [youtube] libgdata: Autotools magic.
- Date: Thu, 15 Apr 2010 09:15:37 +0000 (UTC)
commit 1e1d4fbf58803b5af61708c8591e1c15a8d59fee
Author: Iago Toral Quiroga <itoral igalia com>
Date: Tue Apr 13 15:42:04 2010 +0200
[youtube] libgdata: Autotools magic.
configure.ac | 14 ++++++++++++++
src/youtube/Makefile.am | 6 ++++--
2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7a1fd95..fd4634c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,12 @@ AC_SUBST(SQLITE_LIBS)
AC_SUBST(HAVE_SQLITE)
AM_CONDITIONAL(HAVE_SQLITE, test "x$HAVE_SQLITE" = "xyes")
+PKG_CHECK_MODULES(GDATA, libgdata, HAVE_GDATA=yes, HAVE_GDATA=no)
+AC_SUBST(GDATA_CFLAGS)
+AC_SUBST(GDATA_LIBS)
+AC_SUBST(HAVE_GDATA)
+AM_CONDITIONAL(HAVE_GDATA, test "x$HAVE_GDATA" = "xyes")
+
# ----------------------------------------------------------
# GUPNP-AV VERSION
# ----------------------------------------------------------
@@ -300,11 +306,19 @@ AC_ARG_ENABLE(youtube,
if test "x$HAVE_XML" = "xno"; then
AC_MSG_ERROR([xml2 not found, install it or use --disable-youtube])
fi
+ if test "x$HAVE_GDATA" = "xno"; then
+ AC_MSG_ERROR([libgdata not found, install it or use --disable-youtube])
+ fi
;;
esac
],
[
if test "x$HAVE_GIO" = "xyes" -a "x$HAVE_XML" = "xyes"; then
+ if test "x$HAVE_GDATA" = "xyes"; then
+ enable_youtube=yes
+ else
+ enable_youtube=no
+ fi
enable_youtube=yes
else
enable_youtube=no
diff --git a/src/youtube/Makefile.am b/src/youtube/Makefile.am
index 45e1fc4..da1cd3e 100644
--- a/src/youtube/Makefile.am
+++ b/src/youtube/Makefile.am
@@ -10,12 +10,14 @@ lib_LTLIBRARIES = libgrlyoutube.la
libgrlyoutube_la_CFLAGS = \
$(DEPS_CFLAGS) \
$(GIO_CFLAGS) \
- $(XML_CFLAGS)
+ $(XML_CFLAGS) \
+ $(GDATA_CFLAGS)
libgrlyoutube_la_LIBADD = \
$(DEPS_LIBS) \
$(GIO_LIBS) \
- $(XML_LIBS)
+ $(XML_LIBS) \
+ $(GDATA_LIBS)
libgrlyoutube_la_SOURCES = grl-youtube.c grl-youtube.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]