From 1a68a69e67e72842f815bcc4a2af466118cde382 Mon Sep 17 00:00:00 2001 From: jblum Date: Thu, 8 Jan 2009 01:53:08 +0000 Subject: fixed syntax error cases git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10199 221aa14e-8319-0410-a670-987f0aec2ac5 --- config/grc_grc.m4 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/grc_grc.m4 b/config/grc_grc.m4 index 0db5334fa..d1e343988 100644 --- a/config/grc_grc.m4 +++ b/config/grc_grc.m4 @@ -28,8 +28,9 @@ AC_DEFUN([GRC_GRC],[ 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_CHECKING([for Python version >= 2.5]) + result=`${PYTHON} -c "import sys; print sys.version.split()[[0]] >= '2.5'"` + if test "$result" = "True"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) @@ -41,16 +42,17 @@ AC_DEFUN([GRC_GRC],[ 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([pygtk],[Python GTK wrappers],[],[passed=no]) fi dnl ######################################## dnl # test gtk version dnl ######################################## if test $passed = yes; then - AC_MSG_CHECKING([for GTK version >= 2.10.0]) - if test `${PYTHON} -c "import gtk; print gtk.pygtk_version >= (2, 10, 0)" 2> /dev/null` = 'True'; then + AC_MSG_CHECKING([for Python GTK version >= 2.10.0]) + result=`${PYTHON} -c "import gtk; print gtk.pygtk_version >= (2, 10, 0)" 2> /dev/null` + if test "$result" = "True"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) -- cgit