02_set_minimum_python_version_to_2.4 by Thomas Viehmann <tv@beamnet.de>

Make Python 2.4 the minimum required one

---
 configure    |   12 ++++++------
 configure.ac |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

Index: pythonmagick-0.9.1/configure
===================================================================
--- pythonmagick-0.9.1.orig/configure	2010-02-28 14:33:49.000000000 +0100
+++ pythonmagick-0.9.1/configure	2010-02-28 14:33:50.000000000 +0100
@@ -15331,12 +15331,12 @@
 
         if test -n "$PYTHON"; then
       # If the user set $PYTHON, use it and don't search something else.
-      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.6" >&5
-$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
+      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.4" >&5
+$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
       prog="import sys, string
 # split strings by '.' and convert to numeric.  Append some zeros
 # because we need at least 4 digits for the hex conversion.
-minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
+minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
 minverhex = 0
 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 sys.exit(sys.hexversion < minverhex)"
@@ -15357,8 +15357,8 @@
     else
       # Otherwise, try each interpreter until we find one that satisfies
       # VERSION.
-      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.6" >&5
-$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
+      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.4" >&5
+$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
 if test "${am_cv_pathless_PYTHON+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
@@ -15368,7 +15368,7 @@
 	  prog="import sys, string
 # split strings by '.' and convert to numeric.  Append some zeros
 # because we need at least 4 digits for the hex conversion.
-minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
+minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
 minverhex = 0
 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 sys.exit(sys.hexversion < minverhex)"
Index: pythonmagick-0.9.1/configure.ac
===================================================================
--- pythonmagick-0.9.1.orig/configure.ac	2010-02-28 14:29:58.000000000 +0100
+++ pythonmagick-0.9.1/configure.ac	2010-02-28 14:33:50.000000000 +0100
@@ -24,7 +24,7 @@
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_LIBTOOL
-AM_PATH_PYTHON(2.6)
+AM_PATH_PYTHON(2.4)
 PKG_PROG_PKG_CONFIG
 
 # Add configure option --enable-maintainer-mode which enables dependency
