diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-02-09 17:48:44 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-02-09 17:53:10 +0100 |
commit | 45cbf49477b963bd39a57bac0682f36acbc9f6b3 (patch) | |
tree | f02508cd76ce9b487e80123bc8f0b4a9a9135cac /m4 | |
parent | 04cf9b81eb37898f8251daf302341f1b639ab827 (diff) | |
download | samba-45cbf49477b963bd39a57bac0682f36acbc9f6b3.tar.gz samba-45cbf49477b963bd39a57bac0682f36acbc9f6b3.tar.xz samba-45cbf49477b963bd39a57bac0682f36acbc9f6b3.zip |
check_python.m4 - Raise the minimum python version up to 2.4
This is needed since we at the s4 side have some code which requires this. I
think everybody should be fine since we got no complaints on the mailing list
about this change.
Patch template: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check_python.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/check_python.m4 b/m4/check_python.m4 index 15f04afb4bd..8ca0ead1898 100644 --- a/m4/check_python.m4 +++ b/m4/check_python.m4 @@ -76,6 +76,11 @@ AC_DEFUN([AC_SAMBA_PYTHON_DEVEL], if test x$PYTHON != x then + if `$PYTHON -c "import sys; sys.exit(sys.version_info.__getslice__(0, 2) >= (2, 4))"` + then + AC_MSG_ERROR([Python ($PYTHON) is too old. At least version 2.4 is required]) + fi + DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \ print '-I%s -I%s %s' % ( \ sysconfig.get_python_inc(), \ |