]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Convert HAVE_NUMACTL to WITH_NUMACTL
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Sep 2012 12:41:15 +0000 (13:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Jan 2013 13:25:06 +0000 (13:25 +0000)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
docs/hacking.html.in
src/lxc/lxc_controller.c
src/nodeinfo.c
src/qemu/qemu_process.c

index fa3bfc0913aa09184692e1da8b1cb4acb33bc835..a02694b5056ba1f15953731270d6ca928da75fc3 100644 (file)
@@ -1398,10 +1398,10 @@ if test "$with_numad" = "yes"; then
 fi
 if test "$with_numactl" = "yes" || test "$with_numad" = "yes"; then
   NUMACTL_LIBS="-lnuma"
-  AC_DEFINE_UNQUOTED([HAVE_NUMACTL], 1, [whether numactl-devel is available])
+  AC_DEFINE_UNQUOTED([WITH_NUMACTL], 1, [whether numactl-devel is available])
 fi
 AM_CONDITIONAL([HAVE_NUMAD], [test "$with_numad" != "no"])
-AM_CONDITIONAL([HAVE_NUMACTL], [test "$with_numad" != "no" || test "$with_numactl" != "no"])
+AM_CONDITIONAL([WITH_NUMACTL], [test "$with_numad" != "no" || test "$with_numactl" != "no"])
 AC_SUBST([NUMACTL_CFLAGS])
 AC_SUBST([NUMACTL_LIBS])
 
index 6485676b237db77d666e36b553cf7a849532e5d9..caec01a42dd7d8b8f53891f53944989c12edde7e 100644 (file)
   #include &lt;string.h&gt;
   #include &lt;limits.h&gt;
 
-  #if HAVE_NUMACTL                Some system includes aren't supported
+  #if WITH_NUMACTL                Some system includes aren't supported
   # include &lt;numa.h&gt;              everywhere so need these #if guards.
   #endif
 
index 3190d8a2721b34b2e3983ffc5c5dbde03a9ab180..5c7be8d4e354bcf4b1266c172b730c68dabe6cfa 100644 (file)
@@ -46,7 +46,7 @@
 # include <cap-ng.h>
 #endif
 
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 # define NUMA_VERSION1_COMPATIBILITY 1
 # include <numa.h>
 #endif
@@ -408,7 +408,7 @@ cleanup:
     return ret;
 }
 
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 static int virLXCControllerSetupNUMAPolicy(virLXCControllerPtr ctrl)
 {
     nodemask_t mask;
index 57a931b0597036cc15985dd23e53147d041554a0..477104f7841a56f64c22028a7bfb035f790cf7df 100644 (file)
@@ -33,7 +33,7 @@
 #include <sched.h>
 #include "conf/domain_conf.h"
 
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 # define NUMA_VERSION1_COMPATIBILITY 1
 # include <numa.h>
 #endif
@@ -986,17 +986,17 @@ int nodeGetMemoryStats(virConnectPtr conn ATTRIBUTE_UNUSED,
                 return -1;
             }
         } else {
-# if HAVE_NUMACTL
+# if WITH_NUMACTL
             if (numa_available() < 0) {
 # endif
                 virReportError(VIR_ERR_INTERNAL_ERROR,
                                "%s", _("NUMA not supported on this host"));
                 return -1;
-# if HAVE_NUMACTL
+# if WITH_NUMACTL
             }
 # endif
 
-# if HAVE_NUMACTL
+# if WITH_NUMACTL
             if (cellNum > numa_max_node()) {
                 virReportInvalidArg(cellNum,
                                     _("cellNum in %s must be less than or equal to %d"),
@@ -1459,7 +1459,7 @@ cleanup:
     return ret;
 }
 
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 # if LIBNUMA_API_VERSION <= 1
 #  define NUMA_MAX_N_CPUS 4096
 # else
index 320c0c694bd76819fdb5c4345038632af6a122b0..713670e11782c16827a6b7aeccbb16b205b5dd15 100644 (file)
@@ -45,7 +45,7 @@
 #include "qemu_bridge_filter.h"
 #include "qemu_migration.h"
 
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 # define NUMA_VERSION1_COMPATIBILITY 1
 # include <numa.h>
 #endif
@@ -1839,7 +1839,7 @@ qemuProcessDetectVcpuPIDs(virQEMUDriverPtr driver,
  * Set NUMA memory policy for qemu process, to be run between
  * fork/exec of QEMU only.
  */
-#if HAVE_NUMACTL
+#if WITH_NUMACTL
 static int
 qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm,
                                 virBitmapPtr nodemask)