| configure.ac (e3bd0393) | configure.ac (64ada325) |
|---|---|
| 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 4034 unchanged lines hidden (view full) --- 4043dnl =================================================================== 4044dnl Check for system python 4045dnl =================================================================== 4046AC_MSG_CHECKING([which python to use]) 4047if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then 4048 with_system_python=yes 4049 4050 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python" | 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 4034 unchanged lines hidden (view full) --- 4043dnl =================================================================== 4044dnl Check for system python 4045dnl =================================================================== 4046AC_MSG_CHECKING([which python to use]) 4047if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then 4048 with_system_python=yes 4049 4050 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python" |
| 4051 if test ! -f $_python; then 4052 _python="/usr/bin/python" 4053 fi 4054 AC_MSG_RESULT([compiling against system python ($_python)]) 4055 |
|
| 4051 _python_hexversion=`$_python -c "import sys; print(sys.hexversion);"` | 4056 _python_hexversion=`$_python -c "import sys; print(sys.hexversion);"` |
| 4052 | 4057 |
| 4053 dnl hex version of Python 2.7.1 = 34013680 4054 if test $_python_hexversion -ge 34013680 ; then | 4058 dnl hex version of Python 2.7.1 = 34013680 4059 if test $_python_hexversion -ge 34013680 ; then |
| 4060 _python_version=`$_python -c "import sys; print sys.version;" | head -n 1` |
|
| 4055 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 4056 4057 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 4058 | 4061 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 4062 4063 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 4064 |
| 4059 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" | 4065 if test -d "/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then 4066 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 4067 elif test -d "/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then 4068 PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 4069 else 4070 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 4071 fi |
| 4060 else 4061 AC_MSG_ERROR([Python 2.7.1 or higher is required]) 4062 fi 4063 4064 PYTHON_LIBS="-framework Python" 4065elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4066 test "$with_system_python" != "no"; then 4067 with_system_python=yes --- 3352 unchanged lines hidden --- | 4072 else 4073 AC_MSG_ERROR([Python 2.7.1 or higher is required]) 4074 fi 4075 4076 PYTHON_LIBS="-framework Python" 4077elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4078 test "$with_system_python" != "no"; then 4079 with_system_python=yes --- 3352 unchanged lines hidden --- |