[banshee] build: Make mono-upnp dependency optional



commit 0e25142e533007b518773dcc7936f7711decc2a9
Author: Alexander Kojevnikov <alexk gnome org>
Date:   Tue Feb 14 10:42:16 2012 +0800

    build: Make mono-upnp dependency optional

 build/m4/banshee/mono-upnp.m4 |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/build/m4/banshee/mono-upnp.m4 b/build/m4/banshee/mono-upnp.m4
index 2ae7f93..8e1e033 100644
--- a/build/m4/banshee/mono-upnp.m4
+++ b/build/m4/banshee/mono-upnp.m4
@@ -5,11 +5,11 @@ AC_DEFUN([BANSHEE_CHECK_MONO_UPNP],
 	AC_ARG_ENABLE(upnp, AC_HELP_STRING([--disable-upnp], [Disable UPnP support]), , enable_upnp="yes")
 
 	if test "x$enable_upnp" = "xyes"; then
-		has_mono-upnp=no
 		PKG_CHECK_MODULES(MONO_UPNP,
 			mono.ssdp >= $MONOUPNP_REQUIRED
 			mono.upnp >= $MONOUPNP_REQUIRED
-			mono.upnp.dcp.mediaserver1 >= $MONOUPNP_REQUIRED)
+			mono.upnp.dcp.mediaserver1 >= $MONOUPNP_REQUIRED,
+			enable_upnp=yes, enable_upnp=no)
 
 		AC_SUBST(MONO_UPNP_LIBS)
 
@@ -25,10 +25,9 @@ AC_DEFUN([BANSHEE_CHECK_MONO_UPNP],
 		done
 		AC_SUBST(MONOUPNP_ASSEMBLIES)
 
-		AM_CONDITIONAL(UPNP_ENABLED, true)
+		AM_CONDITIONAL(UPNP_ENABLED, test "x$enable_upnp" = "xyes")
 	else
 		AM_CONDITIONAL(UPNP_ENABLED, false)
 	fi
 
 ])
-



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