[farsight2/master] Conditionally compile the rawudp transmitter against our upnp lib

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:59 PST 2008


---
 transmitters/rawudp/Makefile.am |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/transmitters/rawudp/Makefile.am b/transmitters/rawudp/Makefile.am
index a77472f..dd4aa4a 100644
--- a/transmitters/rawudp/Makefile.am
+++ b/transmitters/rawudp/Makefile.am
@@ -11,6 +11,12 @@ librawudp_transmitter_la_SOURCES = \
 	fs-rawudp-marshal.c \
 	stun.c
 
+if HAVE_GUPNP
+UPNP_LIBS = $(top_builddir)/gst-libs/ext/fsupnp/libfsupnp.la
+else
+UPNP_LIBS =
+endif
+
 # flags used to compile this plugin
 librawudp_transmitter_la_CFLAGS = \
 	$(FS2_INTERNAL_CFLAGS) \
@@ -23,7 +29,8 @@ librawudp_transmitter_la_LIBADD = \
 	$(FS2_LIBS) \
 	-lgstnetbuffer- at GST_MAJORMINOR@ \
 	$(GST_BASE_LIBS) \
-	$(GST_LIBS)
+	$(GST_LIBS) \
+	$(UPNP_LIBS)
 
 EXTRA_librawudp_transmitter_la_SOURCES = fs-rawudp-marshal.list
 
-- 
1.5.6.5




More information about the farsight-commits mailing list