]> granicus.if.org Git - graphviz/commitdiff
try again with the python version check
authorellson <devnull@localhost>
Sun, 27 Mar 2005 23:47:23 +0000 (23:47 +0000)
committerellson <devnull@localhost>
Sun, 27 Mar 2005 23:47:23 +0000 (23:47 +0000)
configure.ac

index f346ffcbef128c97a9fa37efc5e2475225bc8d0f..e5c4942b90b16d9b10737d7ff21d198f0301bff3 100644 (file)
@@ -354,7 +354,7 @@ dnl INCLUDES and LIBS for PYTHON
 AC_CHECK_PROG(PYTHON,python,python)
 HAVE_PYTHON=1
 if test "x$PYTHON" != "x"; then
-  PYTHON_VERSION=`swig -version 2>&1 | grep Version | cut -d ' ' -f 3`
+  PYTHON_VERSION=`python -V 2>&1 | grep Version | cut -d ' ' -f 3`
   PYTHON_VERSION_MAJOR=`echo $PYTHON_VERSION | cut -d '.' -f 1`
   PYTHON_VERSION_MINOR=`echo $PYTHON_VERSION | cut -d '.' -f 2`
   if test $PYTHON_VERSION_MAJOR -lt 3; then