This conditionally enables compilation of the config driver based on if we are 
building libvirtd or not. Since this is only needed for hypervisor modules 
during libvirtd startup, we don't need to bother compiling the config driver 
when only building the client.

Signed-off-by: Adam Walters <[email protected]>
---
 configure.ac | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure.ac b/configure.ac
index ddbcc8e..4834c51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1606,6 +1606,16 @@ if test "$with_secrets" = "yes" ; then
 fi
 AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"])
 
+if test "$with_libvirtd" = "no" ; then
+  with_config=no
+else
+  with_config=yes
+fi
+if test "$with_config" = "yes" ; then
+    AC_DEFINE_UNQUOTED([WITH_CONFIG], 1, [whether local config driver is 
enabled])
+fi
+AM_CONDITIONAL([WITH_CONFIG], [test "$with_config" = "yes"])
+
 
 AC_ARG_WITH([storage-dir],
   [AS_HELP_STRING([--with-storage-dir],
-- 
1.8.5.2

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to