From: Daniel Veillard Date: Tue, 20 Jan 2009 17:27:34 +0000 (+0000) Subject: Activate RHEL5 specific flags when needed X-Git-Tag: LIBVIRT_0_6_0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fc5b2fbc91abc00d560794fa5e1ea8c2536f77b;p=thirdparty%2Flibvirt.git Activate RHEL5 specific flags when needed * libvirt.spec.in: try to autodetect when rhel5 option should be passed to configure Daniel --- diff --git a/ChangeLog b/ChangeLog index f094333b14..2f69ca160e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 20 18:26:24 CET 2009 Daniel Veillard + + * libvirt.spec.in: try to autodetect when rhel5 option should be + passed to configure + Tue Jan 20 17:15:53 GMT 2009 Daniel P. Berrange * src/xen_inotify.c, src/xen_unified.h, src/xs_internal.c: diff --git a/libvirt.spec.in b/libvirt.spec.in index 4fb81dcb56..2306d478bd 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -32,6 +32,17 @@ %define with_xen_proxy 0 %endif +# +# If building on RHEL switch on the specific support +# for the specific Xen version +# +%if 0%{?fedora} +%define with_rhel5 0 +%else +%define with_rhel5 1 +%endif + + Summary: Library providing a simple API virtualization Name: libvirt Version: @VERSION@ @@ -207,6 +218,10 @@ of recent versions of Linux (and other OSes). %define _without_uml --without-uml %endif +%if %{with_rhel5} +%define _with_rhel5_api --with-rhel5-api +%endif + %configure %{?_without_xen} \ %{?_without_qemu} \ %{?_without_openvz} \ @@ -217,6 +232,7 @@ of recent versions of Linux (and other OSes). %{?_without_python} \ %{?_without_libvirtd} \ %{?_without_uml} \ + %{?_with_rhel5_api} \ --with-init-script=redhat \ --with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \ --with-remote-file=%{_localstatedir}/run/libvirtd.pid