[Libvirt-cim] [PATCH 2 of 3] [RFC] Add configure support for migration check settings

Dan Smith danms at us.ibm.com
Wed Mar 12 16:03:36 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1205337336 25200
# Node ID 79615aba657b1860f17573d1cac1729a63eb835e
# Parent  b2355adc325da20f0a613341fa2877a939b1afd5
[RFC] Add configure support for migration check settings

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r b2355adc325d -r 79615aba657b configure.ac
--- a/configure.ac	Wed Mar 12 08:55:35 2008 -0700
+++ b/configure.ac	Wed Mar 12 08:55:36 2008 -0700
@@ -72,6 +72,20 @@ AC_ARG_WITH(html-dir,
             [test "x$withval" != "x" && HTML_DIR="$withval"],
 	    [HTML_DIR='$(datadir)/doc/$(PACKAGE)-$(VERSION)/html'])
 AC_SUBST(HTML_DIR)
+
+AC_ARG_WITH([migrate_check_timeout],
+	    [  --with-migrate_check_timeout=SECS  Max runtime allowed for external migration checks],
+	    [test "x$withval" != "x" && MIG_CHECKS_TIMEOUT="$withval"],
+	    [MIG_CHECKS_TIMEOUT=10])
+AC_SUBST(MIG_CHECKS_TIMEOUT)
+AC_DEFINE_UNQUOTED(MIG_CHECKS_TIMEOUT, $MIG_CHECKS_TIMEOUT, [External migration check timeout])
+
+AC_ARG_WITH([migrate_check_dir],
+	    [  --with-migrate_check_dir=dir  Location of external migration checks],
+	    [test "x$withval" != "x" && MIG_CHECKS_DIR="$withval"],
+	    [MIG_CHECKS_DIR=/usr/libexec/extchecks])
+AC_SUBST(MIG_CHECKS_DIR)
+AC_DEFINE_UNQUOTED(MIG_CHECKS_DIR, "$MIG_CHECKS_DIR", [External migration check timeout])
 
 # Autogenerate the autoconf header file to store build settings
 AC_CONFIG_HEADER([config.h])




More information about the Libvirt-cim mailing list