summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-03-20 22:48:27 +0100
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commitb37a2ff6a986bb5b68da43022958fc4408150d7d (patch)
tree2f15b61ae451cbae3461fc7656a124d719af815b
parent0b09c07095304ecea34ac785ace791530a42492c (diff)
downloadlibimobiledevice-b37a2ff6a986bb5b68da43022958fc4408150d7d.tar.gz
libimobiledevice-b37a2ff6a986bb5b68da43022958fc4408150d7d.tar.bz2
Fix detection of cython version
-rw-r--r--m4/ac_pkg_cython.m414
1 files changed, 10 insertions, 4 deletions
diff --git a/m4/ac_pkg_cython.m4 b/m4/ac_pkg_cython.m4
index aeae6a0..1b640e7 100644
--- a/m4/ac_pkg_cython.m4
+++ b/m4/ac_pkg_cython.m4
@@ -41,11 +41,17 @@ AC_DEFUN([AC_PROG_CYTHON],[
if test -z "$available_patch" ; then
[available_patch=0]
fi
- if test $available_major -ne $required_major \
- -o $available_minor -ne $required_minor \
- -o $available_patch -lt $required_patch ; then
+ if test $available_major -gt $required_major || \
+ ( test $available_major -eq $required_major && \
+ test $available_minor -gt $required_minor ) || \
+ ( test $available_major -eq $required_major && \
+ test $available_minor -eq $required_minor && \
+ test $available_patch -ge $required_patch ) ; then
+
+ AC_MSG_NOTICE([Cython executable is '$CYTHON'])
+ else
AC_MSG_WARN([Cython version >= $1 is required. You have $cython_version. You should look at http://www.cython.org])
- CYTHON=false
+ CYTHON='echo "Error: Cython version >= $1 is required. You have '"$cython_version"'. You should look at http://www.cython.org" ; false'
fi
else
AC_MSG_WARN([cannot determine Cython version])