spice: configure.ac.shared: add PATCHID and DISTRIBUTION variables (subdir config)

Define them with ./configure PATCHID=id DISTRIBUTION=dist
They appear in config.h
Add them to your version-printing function.

Signed-off-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
Uri Lublin 2010-01-03 19:31:29 +02:00 committed by Yaniv Kamay
parent f0eb948b5c
commit 82a73df97f

View File

@ -181,6 +181,18 @@ if test "x$use_spice_common" != "xno"; then
SPICE_COMMON_SRCDIR=$(pkg-config --variable=common_src_dir spice-common)
fi
#
# patchid and distribution -- better identify the release
#
AC_ARG_VAR(PATCHID, [identify release by last patch id])
AH_TEMPLATE(PATCHID, [identify release by last patch id])
AC_DEFINE_UNQUOTED(PATCHID, ["$ac_env_PATCHID_value"])
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"])
dnl ===========================================================================
dnl check compiler flags