From e512c1c1e9a00baad1226c5f1ed3c1e853343cf3 Mon Sep 17 00:00:00 2001 From: jblum Date: Thu, 13 Nov 2008 19:15:33 +0000 Subject: grc check python version git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9986 221aa14e-8319-0410-a670-987f0aec2ac5 --- config/grc_grc.m4 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/config/grc_grc.m4 b/config/grc_grc.m4 index 8dfbe2399..140068c1b 100644 --- a/config/grc_grc.m4 +++ b/config/grc_grc.m4 @@ -25,13 +25,24 @@ AC_DEFUN([GRC_GRC],[ AC_CHECK_PROG(XDG_UTILS, xdg-mime, true, false) AM_CONDITIONAL(XDG_UTILS, $XDG_UTILS) + dnl ######################################## + dnl # test python version + dnl ######################################## + AC_MSG_CHECKING([for Python version 2.5]) + if test `${PYTHON} -c "import sys; print sys.version.split()[[0]] >= '2.5'"` = 'True'; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + passed=no + fi + dnl ######################################## dnl # test python dependencies dnl ######################################## if test $passed = yes; then - PYTHON_CHECK_MODULE([Cheetah],[Python Cheetah templates],[],[passed=no]) - PYTHON_CHECK_MODULE([pygtk],[Python GTK wrappers],[],[passed=no]) - PYTHON_CHECK_MODULE([lxml],[Python XML wrappers],[],[passed=no]) + PYTHON_CHECK_MODULE([Cheetah],[Python Cheetah templates],[],[passed=no]) + PYTHON_CHECK_MODULE([pygtk],[Python GTK wrappers],[],[passed=no]) + PYTHON_CHECK_MODULE([lxml],[Python XML wrappers],[],[passed=no]) fi dnl ######################################## -- cgit