[svn] commit: r1499 - /trunk/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Mar 17 23:40:59 UTC 2010


Author: jelte
Date: Wed Mar 17 23:40:59 2010
New Revision: 1499

Log:
ask for version and platform, and check version of given python binary
(rest of ticket 103)

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Mar 17 23:40:59 2010
@@ -18,7 +18,7 @@
 m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
 AC_ARG_WITH([pythonpath],
 AC_HELP_STRING([--with-pythonpath=PATH],
-  [specify an absolute path to python executable when automatic version check (incorreclty) fails]),
+  [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
   [python_path="$withval"], [python_path="auto"])
 if test "$python_path" = auto; then
 	AM_PATH_PYTHON([3.1])
@@ -29,7 +29,10 @@
 	AC_SUBST(PYTHON_PREFIX)
 	PYTHON_EXEC_PREFIX='$(exec_prefix)'
 	AC_SUBST(PYTHON_EXEC_PREFIX)
-	PYTHON_PLATFORM="todo"
+	PYTHON_VERSION=[`$PYTHON -c "import sys; print(sys.version[:3])"`]
+	AC_SUBST(PYTHON_VERSION)
+	AM_PYTHON_CHECK_VERSION([$PYTHON], [3.1], [], [AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])])
+	PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
 	AC_SUBST(PYTHON_PLATFORM)
 	pythondir='${prefix}/lib/python3.1/site-packages'
 	AC_SUBST(pythondir)




More information about the bind10-changes mailing list