spot/m4/pypath.m4
Alexandre Duret-Lutz 31b3862f48 python 2 is no longer supported
* m4/pypath.m4: Check for Python 3.2+.
* README, NEWS, HACKING: Reflect this change.
2015-04-01 14:01:26 +02:00

11 lines
470 B
Text

AC_DEFUN([adl_CHECK_PYTHON],
[AM_PATH_PYTHON([3.2])
case $PYTHON in
[[\\/$]]* | ?:[[\\/]]* );;
*) AC_MSG_ERROR([The PYTHON variable must be set to an absolute filename.]);;
esac
AC_CACHE_CHECK([for $am_display_PYTHON includes directory],
[adl_cv_python_inc],
[adl_cv_python_inc=`$PYTHON -c "import sys; from distutils import sysconfig;]
[sys.stdout.write(sysconfig.get_python_inc())" 2>/dev/null`])
AC_SUBST([PYTHONINC], [$adl_cv_python_inc])])