diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-06-01 01:52:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-06-01 01:52:17 (GMT) |
commit | 8c6f88efa2371addacc2acf5cc4634974160406c (patch) | |
tree | f0bd5af1eb106bab7fdb893fcd9039ac42ed5a74 /configure.in | |
parent | 9e3e1c6e4e98b7568fcb29708aeac88bc677c62c (diff) | |
download | cpython-8c6f88efa2371addacc2acf5cc4634974160406c.zip cpython-8c6f88efa2371addacc2acf5cc4634974160406c.tar.gz cpython-8c6f88efa2371addacc2acf5cc4634974160406c.tar.bz2 |
remove __version__s dependent on subversion keyword expansion (closes #12221)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/configure.in b/configure.in index 49932de..71f488d 100644 --- a/configure.in +++ b/configure.in @@ -7,8 +7,30 @@ m4_define(PYTHON_VERSION, 3.3) AC_PREREQ(2.65) -AC_REVISION($Revision$) AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) + +AC_SUBST(HGVERSION) +AC_SUBST(HGTAG) +AC_SUBST(HGBRANCH) + +if test -e $srcdir/.hg/00changelog.i +then +AC_CHECK_PROG(HAS_HG, hg, found, not-found) +else +HAS_HG=no-repository +fi +if test $HAS_HG = found +then + HGVERSION="hg id -i \$(srcdir)" + HGTAG="hg id -t \$(srcdir)" + HGBRANCH="hg id -b \$(srcdir)" +else + HGVERSION="" + HGTAG="" + HGBRANCH="" +fi + +AC_REVISION(HGVERSION) AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_HEADER(pyconfig.h) @@ -808,27 +830,6 @@ then ARFLAGS="rc" fi -AC_SUBST(HGVERSION) -AC_SUBST(HGTAG) -AC_SUBST(HGBRANCH) - -if test -e $srcdir/.hg/00changelog.i -then -AC_CHECK_PROG(HAS_HG, hg, found, not-found) -else -HAS_HG=no-repository -fi -if test $HAS_HG = found -then - HGVERSION="hg id -i \$(srcdir)" - HGTAG="hg id -t \$(srcdir)" - HGBRANCH="hg id -b \$(srcdir)" -else - HGVERSION="" - HGTAG="" - HGBRANCH="" -fi - AC_SUBST(DISABLE_ASDLGEN) DISABLE_ASDLGEN="" AC_CHECK_PROG(HAS_PYTHON, python, found, not-found) |