1AC_DEFUN([AX_CHECK_PYTHON_VERSION],
2[AC_MSG_CHECKING([for python version >= $1.$2 ])
3`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < ($1, $2)"))'`
4if test "$?" != "0"
5then
6    python_version=`$PYTHON -V 2>&1`
7    AC_MSG_RESULT([no])
8    AC_MSG_ERROR(
9        [$python_version is too old, minimum required version is $1.$2])
10else
11    AC_MSG_RESULT([yes])
12fi])
13