summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-09-18 16:18:37 +0000
committerElijah Newren <newren@src.gnome.org>2006-09-18 16:18:37 +0000
commitdef5a12ff0d2c6c3aa6c28b2fea2220c6edb9dc6 (patch)
tree8a8c4e672a93d2f989290b79f2894c4932bd7c79
parent31f0853ca8f45b3752515358a5ac588277156c4d (diff)
downloadmetacity-def5a12ff0d2c6c3aa6c28b2fea2220c6edb9dc6.tar.gz
Make detection of stable vs. unstable automatic and based upon the version
2006-09-18 Elijah Newren <newren gmail com> * configure.in: Make detection of stable vs. unstable automatic and based upon the version number. Partially based on patch from Christian Hamar in #356122. Fixes #356122.
-rw-r--r--ChangeLog6
-rw-r--r--configure.in20
2 files changed, 23 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ad22aef6..c088564a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-18 Elijah Newren <newren gmail com>
+
+ * configure.in: Make detection of stable vs. unstable automatic
+ and based upon the version number. Partially based on patch from
+ Christian Hamar in #356122. Fixes #356122.
+
2006-09-13 Elijah Newren <newren gmail com>
* HACKING: update -- we depend on gtk+ >= 2.10 since Vincent's
diff --git a/configure.in b/configure.in
index 9a8a9131..cf195601 100644
--- a/configure.in
+++ b/configure.in
@@ -1,8 +1,14 @@
AC_PREREQ(2.50)
+m4_define([metacity_major_version], [2])
+m4_define([metacity_minor_version], [16])
# Fibonacci sequence for micro version numbering:
# 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987
-AC_INIT([metacity], [2.16.2],
+m4_define([metacity_micro_version], [2])
+
+m4_define([metacity_version],
+ [metacity_major_version.metacity_minor_version.metacity_micro_version])
+AC_INIT([metacity], [metacity_version],
[http://bugzilla.gnome.org/enter_bug.cgi?product=metacity])
AC_CONFIG_SRCDIR(src/display.c)
@@ -516,5 +522,13 @@ metacity-$VERSION:
Render: ${have_xrender}
Xcursor: ${have_xcursor}
"
-echo "This is the UNSTABLE branch of metacity"
-echo "Use 2.14.x for stable (gnome-2-14 branch in CVS)"
+
+METACITY_MINOR_VERSION=metacity_minor_version
+if test $(( $(echo $METACITY_MINOR_VERSION) %2)) == "1"; then
+ stable_version=$(( ($METACITY_MINOR_VERSION / 2) * 2))
+ echo "This is the UNSTABLE branch of metacity"
+ echo -n "Use 2.$stable_version.x for stable "
+ echo "(gnome-2-$stable_version branch in CVS)"
+else
+ echo "This is the stable branch of metacity"
+fi