From: Eric Blake Date: Wed, 26 Oct 2011 16:11:50 +0000 (-0600) Subject: build: avoid RHEL 5 build failure on LXC X-Git-Tag: v0.9.7-rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dee8965933db824084672e3d012f58ebe2e07c6;p=thirdparty%2Flibvirt.git build: avoid RHEL 5 build failure on LXC 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. --- diff --git a/configure.ac b/configure.ac index 6a0936a9ba..5753c08577 100644 --- a/configure.ac +++ b/configure.ac @@ -687,8 +687,9 @@ fi if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then AC_TRY_LINK([ #include + #include ], [ - unshare (1); + unshare (!LO_FLAGS_AUTOCLEAR); ], [ with_lxc=yes ], [