]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: avoid RHEL 5 build failure on LXC
authorEric Blake <eblake@redhat.com>
Wed, 26 Oct 2011 16:11:50 +0000 (10:11 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 26 Oct 2011 16:11:50 +0000 (10:11 -0600)
Per the discussion here, LXC on RHEL 5 makes no sense.
https://www.redhat.com/archives/libvir-list/2011-September/msg01169.html

* configure.ac (with_lxc): Reject RHEL 5.x LXC as too old.

configure.ac

index 6a0936a9ba24f5ce2812a42311c44f2acf37e8f0..5753c085774bec6c3687d25bb4e2c236d1f8da3c 100644 (file)
@@ -687,8 +687,9 @@ fi
 if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
     AC_TRY_LINK([
         #include <sched.h>
+        #include <linux/loop.h>
     ], [
-        unshare (1);
+        unshare (!LO_FLAGS_AUTOCLEAR);
     ], [
         with_lxc=yes
     ], [