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 <u...@redhat.com> --- configure.ac.shared | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/configure.ac.shared b/configure.ac.shared index 52b7167..c55a466 100644 --- a/configure.ac.shared +++ b/configure.ac.shared @@ -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 -- 1.6.5.2 ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Spice-space-devel mailing list Spice-space-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spice-space-devel