From 7311161340dd4f3d6f8ec3bc7f7f994cf58ea863 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 28 Jul 2009 17:35:32 +0100 Subject: [PATCH] Build with --without-capng if capng is disabled * libvirt.spec: pass --without-capng if appropriate --- libvirt.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index 8f118f7722..2cc1639383 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -318,6 +318,10 @@ of recent versions of Linux (and other OSes). %define _without_numactl --without-numactl %endif +%if ! %{with_capng} +%define _without_capng --without-capng +%endif + %configure %{?_without_xen} \ %{?_without_qemu} \ %{?_without_openvz} \ @@ -337,6 +341,7 @@ of recent versions of Linux (and other OSes). %{?_without_storage_iscsi} \ %{?_without_storage_disk} \ %{?_without_numactl} \ + %{?_without_capng} \ --with-qemu-user=%{qemu_user} \ --with-qemu-group=%{qemu_group} \ --with-init-script=redhat \