[vlc-devel] [PATCH 4/5] add support for libmicrodns support in the Chromecast module

Steve Lhomme robux4 at videolabs.io
Thu Sep 24 14:42:52 CEST 2015


---
 configure.ac                   | 6 ++++++
 modules/stream_out/Makefile.am | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/configure.ac b/configure.ac
index 55513bd..b414c47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3657,6 +3657,12 @@ AM_CONDITIONAL([BUILD_CHROMECAST], [test "${build_chromecast}" = "yes"])
 m4_popdef([protobuf_lite_version])
 
 dnl
+dnl microdns for Chromecast
+dnl
+PKG_WITH_MODULES([MICRODNS], [microdns], [have_microdns="yes" AC_DEFINE([HAVE_MICRODNS], [1], [The microdns library is present])])
+AM_CONDITIONAL(HAVE_MICRODNS, [test "${have_microdns}" = "yes"])
+
+dnl
 dnl  Interface plugins
 dnl
 
diff --git a/modules/stream_out/Makefile.am b/modules/stream_out/Makefile.am
index ee3ed3c..392746e 100644
--- a/modules/stream_out/Makefile.am
+++ b/modules/stream_out/Makefile.am
@@ -85,6 +85,10 @@ libstream_out_chromecast_plugin_la_SOURCES = stream_out/chromecast/cast_channel.
 nodist_libstream_out_chromecast_plugin_la_SOURCES = stream_out/chromecast/cast_channel.pb.cc
 libstream_out_chromecast_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -Istream_out/chromecast $(CHROMECAST_CFLAGS)
 libstream_out_chromecast_plugin_la_LIBADD = $(CHROMECAST_LIBS) $(SOCKET_LIBS)
+if HAVE_MICRODNS
+libstream_out_chromecast_plugin_la_CPPFLAGS += $(MICRODNS_CFLAGS)
+libstream_out_chromecast_plugin_la_LIBADD += $(MICRODNS_LIBS)
+endif
 CLEANFILES += $(nodist_libstream_out_chromecast_plugin_la_SOURCES)
 
 if BUILD_CHROMECAST
-- 
2.5.1



More information about the vlc-devel mailing list