summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/check_python.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/check_python.m4 b/m4/check_python.m4
index 15f04afb4b..8ca0ead189 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(), \