Author: jsc
Date: Thu May 23 11:53:52 2013
New Revision: 1485654
URL: http://svn.apache.org/r1485654
Log:
#122010# prepare configur to support Python 2.7.5 and newer on MacOS, 2.7.1 is
now still supported
Modified:
openoffice/trunk/main/configure.in
Modified: openoffice/trunk/main/configure.in
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/configure.in?rev=1485654&r1=1485653&r2=1485654&view=diff
==============================================================================
--- openoffice/trunk/main/configure.in (original)
+++ openoffice/trunk/main/configure.in Thu May 23 11:53:52 2013
@@ -4090,16 +4090,17 @@ if test "$_os" = "Darwin" && test "$with
with_system_python=yes
_python="/Library/Frameworks/Python.framework/Versions/Current/bin/python"
- _python_version=`$_python -c "import platform; print
platform.python_version();"`
+ _python_hexversion=`$_python -c "import sys; print sys.hexversion;"`
- if test "$_python_version" = "2.7.4" ; then
+ dnl hex version of Python 2.7.1 = 34013680
+ if test "$_python_hexversion" >= "34013680" ; then
AC_MSG_RESULT([compiling against system python (version
$_python_version)])
_python_ver=`$_python -c "import distutils.sysconfig;
print(distutils.sysconfig.get_config_var('VERSION'));"`
PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
else
- AC_MSG_ERROR([Python 2.7.4 is required])
+ AC_MSG_ERROR([Python 2.7.1 or higher is required])
fi
PYTHON_LIBS="-framework Python"