]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Convert HAVE_DBUS to WITH_DBUS
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Sep 2012 14:05:39 +0000 (15:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Jan 2013 13:25:47 +0000 (13:25 +0000)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
src/nwfilter/nwfilter_driver.c
src/util/virdbus.c
src/util/virdbus.h

index 074e64d18331920f8faac42465088cd4d328292d..2893c7b390f543e08ee0d668eb5583dd49119032 100644 (file)
@@ -1112,7 +1112,7 @@ if test "$with_dbus" = "yes" || test "$with_dbus" = "check" ; then
 fi
 
 if test "$with_dbus" = "yes" ; then
-  AC_DEFINE_UNQUOTED([HAVE_DBUS], 1, [enable communication with DBus])
+  AC_DEFINE_UNQUOTED([WITH_DBUS], 1, [enable communication with DBus])
 
   save_LIBS="$LIBS"
   save_CFLAGS="$CFLAGS"
@@ -1122,7 +1122,7 @@ if test "$with_dbus" = "yes" ; then
   LIBS="$save_LIBS"
   CFLAGS="$save_CFLAGS"
 fi
-AM_CONDITIONAL([HAVE_DBUS], [test "$with_dbus" = "yes"])
+AM_CONDITIONAL([WITH_DBUS], [test "$with_dbus" = "yes"])
 
 
 dnl PolicyKit library
index 815f588c779795afd86286dc2e7cd4bbf16e2484..b67b70424dad99a3a8da5d21e17527265c91b1d9 100644 (file)
@@ -172,9 +172,9 @@ nwfilterDriverStartup(bool privileged ATTRIBUTE_UNUSED,
     char *base = NULL;
     DBusConnection *sysbus = NULL;
 
-#if HAVE_DBUS
+#if WITH_DBUS
     sysbus = virDBusGetSystemBus();
-#endif /* HAVE_DBUS */
+#endif /* WITH_DBUS */
 
     if (VIR_ALLOC(driverState) < 0) {
         virReportOOMError();
index 127e57f2514184549bf19f644512bdf8006526ab..52b6ca9d1650f0655fbecadb190b7d6fcdebe549 100644 (file)
@@ -29,7 +29,7 @@
 
 #define VIR_FROM_THIS VIR_FROM_DBUS
 
-#ifdef HAVE_DBUS
+#ifdef WITH_DBUS
 
 static DBusConnection *systembus = NULL;
 static DBusConnection *sessionbus = NULL;
@@ -223,7 +223,7 @@ static void virDBusToggleWatch(DBusWatch *watch,
     (void)virEventUpdateHandle(info->watch, flags);
 }
 
-#else /* ! HAVE_DBUS */
+#else /* ! WITH_DBUS */
 DBusConnection *virDBusGetSystemBus(void)
 {
     virReportError(VIR_ERR_INTERNAL_ERROR,
@@ -237,5 +237,4 @@ DBusConnection *virDBusGetSessionBus(void)
                    "%s", _("DBus support not compiled into this binary"));
     return NULL;
 }
-
-#endif /* ! HAVE_DBUS */
+#endif /* ! WITH_DBUS */
index e443fbe3fab5e770f31df8120dbae09bd469147d..a51dba7c499a6e2248cf972086368732bc8a8c52 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __VIR_DBUS_H__
 # define __VIR_DBUS_H__
 
-# ifdef HAVE_DBUS
+# ifdef WITH_DBUS
 #  include <dbus/dbus.h>
 # else
 #  define DBusConnection void