From 84bb9d4ef8c10d7a0ae312599c001f1b29d92644 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 3 May 2009 17:29:08 +0300 Subject: [PATCH] Read kvm version from KVM_VERSION file This allows the packager to add a KVM_VERSION file to the tarball instead of modifying the source. Signed-off-by: Avi Kivity --- configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a9a6756720..f16daea22d 100755 --- a/configure +++ b/configure @@ -152,6 +152,17 @@ case "$cpu" in cpu="unknown" ;; esac + +kvm_version() { + local fname="$(dirname "$0")/KVM_VERSION" + + if test -f "$fname"; then + cat "$fname" + else + echo "kvm-devel" + fi +} + gprof="no" debug_tcg="no" sparse="no" @@ -194,7 +205,7 @@ blobs="yes" fdt="yes" sdl_x11="no" xen="yes" -pkgversion=" (kvm-devel)" +pkgversion=" ($(kvm_version))" signalfd="no" eventfd="no" cpu_emulation="yes" -- 2.11.4.GIT