[grilo-plugins] tmdb: Fix build when grlnet is missing



commit 539c92a1e7761ff35cd6ef7dc392cdd7079c76e8
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 9 17:37:20 2014 +0200

    tmdb: Fix build when grlnet is missing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727901

 configure.ac |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bd4ee14..f2f0cf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1216,12 +1216,12 @@ AC_ARG_ENABLE([tmdb],
                        [enable TMDb metadata plugin (default: auto)]),
         [
          AS_IF([test "x$enableval" = "xyes"],
-               [AS_IF([test "x$HAVE_JSON_GLIB" = "xno"],
-                      [AC_MSG_ERROR([json-glib-1.0 not found, install it or use --disable-tmdb])
+               [AS_IF([test "x$HAVE_JSON_GLIB" = "xno" -o "x$HAVE_GRLNET" = "xno"],
+                      [AC_MSG_ERROR([json-glib-1.0 or ${GRLNET_NAME} not found, install it or use 
--disable-tmdb])
                       ])
                ])],
         [
-         AS_IF([test "x$HAVE_JSON_GLIB" = "xyes"],
+         AS_IF([test "x$HAVE_JSON_GLIB" = "xyes" -a "x$HAVE_GRLNET" = "xyes"],
                [enable_tmdb=yes],
                [enable_tmdb=no])
         ]


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