]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't try to build qemu and lxc on non-Linux platforms
authorDaniel Veillard <veillard@redhat.com>
Tue, 27 Apr 2010 08:11:21 +0000 (10:11 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 27 Apr 2010 08:11:21 +0000 (10:11 +0200)
as their drivers requires linux only headers

configure.ac

index 955a9e9e310bda0938f9739e4f56ed2ef43151d1..e8c71cf7ccd52a60cc35878a672e5d52ad4e32a1 100644 (file)
@@ -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],