]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Convert HAVE_AVAHI to WITH_AVAHI
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Sep 2012 14:21:13 +0000 (15:21 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Jan 2013 13:26:34 +0000 (13:26 +0000)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
src/rpc/virnetservermdns.c

index 8a5a5131ba2e3d02268566c4cd75235e754554ad..448163a134d94b9cfc0715eed787c999e1a94c8d 100644 (file)
@@ -1190,7 +1190,7 @@ if test "x$with_avahi" = "xyes" || test "x$with_avahi" = "xcheck"; then
     fi
   ])
   if test "x$with_avahi" = "xyes" ; then
-    AC_DEFINE_UNQUOTED([HAVE_AVAHI], 1,
+    AC_DEFINE_UNQUOTED([WITH_AVAHI], 1,
       [whether Avahi is used to broadcast server presence])
   fi
 fi
index b6f8e8e6c06062779a3572dc03fb4234d647fb61..26e24d584e77b47e5db01e4888146db3e365b370 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if HAVE_AVAHI
+#if WITH_AVAHI
 # include <avahi-client/client.h>
 # include <avahi-client/publish.h>
 
@@ -56,7 +56,7 @@ struct _virNetServerMDNSEntry {
 
 struct _virNetServerMDNSGroup {
     virNetServerMDNSPtr mdns;
-#if HAVE_AVAHI
+#if WITH_AVAHI
     AvahiEntryGroup *handle;
 #endif
     char *name;
@@ -65,14 +65,14 @@ struct _virNetServerMDNSGroup {
 };
 
 struct _virNetServerMDNS {
-#if HAVE_AVAHI
+#if WITH_AVAHI
     AvahiClient *client;
     AvahiPoll *poller;
 #endif
     virNetServerMDNSGroupPtr group;
 };
 
-#if HAVE_AVAHI
+#if WITH_AVAHI
 /* Avahi API requires this struct name in the app :-( */
 struct AvahiWatch {
     int watch;
@@ -619,7 +619,7 @@ void virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr entry)
     VIR_FREE(entry);
 }
 
-#else /* ! HAVE_AVAHI */
+#else /* ! WITH_AVAHI */
 
 static const char *unsupported = N_("avahi not available at build time");
 
@@ -692,4 +692,4 @@ virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr entry ATTRIBUTE_UNUSED)
     VIR_DEBUG("%s", _(unsupported));
 }
 
-#endif /* ! HAVE_AVAHI */
+#endif /* ! WITH_AVAHI */