diff options
| author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-18 00:31:06 +0000 |
|---|---|---|
| committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-18 00:31:06 +0000 |
| commit | 130ae15183df44746463cc9d4dd1d7fadb540e75 (patch) | |
| tree | 6e1fa474e0eb5accbdfa9a8e3509066042437652 /configure.in | |
| parent | 2ccefe14300b832b60af4b8d4afdf9f7c9896a82 (diff) | |
| download | cpython-git-130ae15183df44746463cc9d4dd1d7fadb540e75.tar.gz | |
Add a check to ensure the correct autoconf version is used
for generating the configure script.
Original idea by Martin von Löwis.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 2add9920d6..77bf364862 100644 --- a/configure.in +++ b/configure.in @@ -6,8 +6,16 @@ dnl NOTE: autoconf 2.64 doesn't seem to work (use 2.61). # Set VERSION so we only need to edit in one place (i.e., here) m4_define(PYTHON_VERSION, 2.7) +dnl Some m4 magic to ensure that the configure script is generated +dnl by the correct autoconf version. +m4_define([version_required], +[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [$1]), 0, + [], + [m4_fatal([Autoconf version $1 is required for Python], 63)]) +]) +version_required(2.61) + AC_REVISION($Revision$) -AC_PREREQ(2.61) AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_HEADER(pyconfig.h) |
