From 6b3ce82d98e0dadbc1b70eeb1bebfc7be7fe1d01 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 27 Apr 2010 10:11:21 +0200 Subject: [PATCH] Don't try to build qemu and lxc on non-Linux platforms as their drivers requires linux only headers --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 955a9e9e3..e8c71cf7c 100644 --- a/configure.ac +++ b/configure.ac @@ -209,6 +209,18 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then sysconfdir='/etc' fi +dnl lxc and qemu drivers require linux headers +if test `uname -s` != "Linux" +then + if test "x$with_lxc" != "xyes" + then + with_lxc=no + fi + if test "x$with_qemu" != "xyes" + then + with_qemu=no + fi +fi dnl Allow to build without Xen, QEMU/KVM, test or remote driver AC_ARG_WITH([xen], -- 2.39.5