From ea8fce17e28809ec393ca2a5b566692a725069d9 Mon Sep 17 00:00:00 2001 From: Uri Lublin Date: Sun, 10 Jan 2010 23:11:46 +0200 Subject: [PATCH] spice: config: Add DISTRIBUTION and PATCHID to configure summary Signed-off-by: Uri Lublin --- client/configure.ac | 2 +- configure.ac.shared | 8 ++++++++ server/configure.ac | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/configure.ac b/client/configure.ac index f6e91168..32657dd3 100644 --- a/client/configure.ac +++ b/client/configure.ac @@ -63,7 +63,7 @@ AC_OUTPUT dnl ========================================================================== echo " - Spice Client $VERSION + Spice Client $full_version ============== prefix: ${prefix} diff --git a/configure.ac.shared b/configure.ac.shared index c55a4660..8c686c1b 100644 --- a/configure.ac.shared +++ b/configure.ac.shared @@ -193,6 +193,14 @@ AC_ARG_VAR(DISTRIBUTION, [identify release by last distribution]) AH_TEMPLATE(DISTRIBUTION, [identify release by last distribution]) AC_DEFINE_UNQUOTED(DISTRIBUTION, ["$ac_env_DISTRIBUTION_value"]) +if test -n "${DISTRIBUTION}"; then + dist=".${DISTRIBUTION}" +fi +if test -n "${PATCHID}"; then + patchid="-${PATCHID}" +fi +full_version="${VERSION}${patchid}${dist}" + dnl =========================================================================== dnl check compiler flags diff --git a/server/configure.ac b/server/configure.ac index e078816e..b7eeffb5 100644 --- a/server/configure.ac +++ b/server/configure.ac @@ -38,7 +38,7 @@ AC_OUTPUT dnl ========================================================================== echo " - Spice Server $VERSION + Spice Server $full_version ============== prefix: ${prefix}