| configure.ac (7734da27) | configure.ac (b9b58fda) |
|---|---|
| 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 --- 4076 unchanged lines hidden (view full) --- 4085dnl =================================================================== 4086dnl Check for system python 4087dnl =================================================================== 4088AC_MSG_CHECKING([which python to use]) 4089if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then 4090 with_system_python=yes 4091 4092 _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 --- 4076 unchanged lines hidden (view full) --- 4085dnl =================================================================== 4086dnl Check for system python 4087dnl =================================================================== 4088AC_MSG_CHECKING([which python to use]) 4089if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then 4090 with_system_python=yes 4091 4092 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python" |
| 4093 _python_version=`$_python -c "import platform; print platform.python_version();"` | 4093 _python_hexversion=`$_python -c "import sys; print sys.hexversion;"` |
| 4094 | 4094 |
| 4095 if test "$_python_version" = "2.7.4" ; then | 4095 dnl hex version of Python 2.7.1 = 34013680 4096 if test "$_python_hexversion" >= "34013680" ; then |
| 4096 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 4097 4098 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 4099 4100 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 4101 else | 4097 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 4098 4099 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 4100 4101 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 4102 else |
| 4102 AC_MSG_ERROR([Python 2.7.4 is required]) | 4103 AC_MSG_ERROR([Python 2.7.1 or higher is required]) |
| 4103 fi 4104 4105 PYTHON_LIBS="-framework Python" 4106elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4107 test "$with_system_python" != "no"; then 4108 with_system_python=yes 4109 AC_MSG_RESULT([external]) 4110 AM_PATH_PYTHON([2.3]) --- 3597 unchanged lines hidden --- | 4104 fi 4105 4106 PYTHON_LIBS="-framework Python" 4107elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4108 test "$with_system_python" != "no"; then 4109 with_system_python=yes 4110 AC_MSG_RESULT([external]) 4111 AM_PATH_PYTHON([2.3]) --- 3597 unchanged lines hidden --- |