diff options
author | jblum | 2008-11-13 19:15:33 +0000 |
---|---|---|
committer | jblum | 2008-11-13 19:15:33 +0000 |
commit | e512c1c1e9a00baad1226c5f1ed3c1e853343cf3 (patch) | |
tree | f7d3ad6b717b41bc15cf9d87c9f08dbac12e048a | |
parent | d2b06e6769d7500aa06239f693de8d6cb43eff29 (diff) | |
download | gnuradio-e512c1c1e9a00baad1226c5f1ed3c1e853343cf3.tar.gz gnuradio-e512c1c1e9a00baad1226c5f1ed3c1e853343cf3.tar.bz2 gnuradio-e512c1c1e9a00baad1226c5f1ed3c1e853343cf3.zip |
grc check python version
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9986 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | config/grc_grc.m4 | 17 |
1 files 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 @@ -26,12 +26,23 @@ AC_DEFUN([GRC_GRC],[ 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 ######################################## |