From 45b4be2259ac6f5f5fc7773226456d2d9077554d Mon Sep 17 00:00:00 2001 From: Martyn Russell Date: Wed, 3 Aug 2011 09:41:06 +0100 Subject: build: Bump tracker_api_version to 0.12 but keep major/miner as 0.11 Add AX_DOTS_TO_UNDERSCORES macro to allow independent TRACKER_API_VERSION_UNDERSCORES value (which is used to convert "0.12" to "0_12". We need this because for 0.11.x releases, we want the files to be named *0.12* which requires changing only tracker_api_version in configure. This breaks Makefiles which build introspection files because they use $TRACKER_MAJOR_VERSION_$TRACKER_MINER_VERSION and that's not updated. Additionally, $TRACKER_API_VERSION can't be used because it contains a dot not an underscore. The only way to fix this was to do it in configure. --- acinclude.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 82bc493dd..9a29d210d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,3 +1,9 @@ +dnl ######################################################################### +AC_DEFUN([AX_DOTS_TO_UNDERSCORES], [ + $1[]_UNDERSCORES=`echo "$$1" | sed -e 's/\./_/g'` + AC_SUBST($1[]_UNDERSCORES) +]) dnl AX_DOTS_TO_UNDERSCORES + dnl ######################################################################### AC_DEFUN([AX_COMPARE_VERSION], [ # Used to indicate true or false condition -- cgit v1.2.1