[libdmapsharing] Handle ./configure --with-mdns=dns_sd properly Signed-off-by: W. Michael Petullo <mike flyn org>



commit 031f244c317a0e2aec322fbd50905676d166143c
Author: W. Michael Petullo <mike flyn org>
Date:   Wed Jul 6 20:56:11 2011 -0500

    Handle ./configure --with-mdns=dns_sd properly
    Signed-off-by: W. Michael Petullo <mike flyn org>

 configure.ac                               |    4 +++-
 libdmapsharing/dmap-mdns-publisher-dnssd.c |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b6fb8c5..39b1d4b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -166,10 +166,12 @@ PKG_CHECK_MODULES(HOWL,
    HAVE_HOWL=no)
 
 AC_CHECK_HEADERS(dns_sd.h, HAVE_DNS_SD=yes)
+if test x"$HAVE_DNS_SD" = xyes; then
+  AC_CHECK_LIB(dns_sd, DNSServiceRegister, DNS_SD_LIBS="-ldns_sd",)
+fi
 
 if test x"$WITH_MDNS" = xauto; then
   if test x"$HAVE_DNS_SD" = xyes; then
-    AC_CHECK_LIB(dns_sd, DNSServiceRegister, DNS_SD_LIBS="-ldns_sd",)
     MDNS_CFLAGS=""
     MDNS_LIBS="$DNS_SD_LIBS"
     AC_DEFINE(WITH_DNS_SD, 1, [Define if mDNS/DNS-SD implementation uses Apple's DNSSD])
diff --git a/libdmapsharing/dmap-mdns-publisher-dnssd.c b/libdmapsharing/dmap-mdns-publisher-dnssd.c
index a820203..9edb93d 100644
--- a/libdmapsharing/dmap-mdns-publisher-dnssd.c
+++ b/libdmapsharing/dmap-mdns-publisher-dnssd.c
@@ -78,7 +78,7 @@ dmap_mdns_publisher_publish (DMAPMdnsPublisher *publisher,
 
 	/* FIXME: does not do anything with txt_records yet */
 	if (txt_records != NULL)
-		g_error ("dmap_mdns_publisher_publish() can not handle txt_records yet");
+		g_warning ("dmap_mdns_publisher_publish() can not handle txt_records yet");
 
 	g_warning ("%s %s %d", name, type_of_service, port);
 	if ((dns_err = DNSServiceRegister (&publisher->priv->sdref,



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