configure.ac (434ea190) configure.ac (1fb03631)
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_hexversion=`$_python -c "import sys; print sys.hexversion;"`
4093 _python_hexversion=`$_python -c "import sys; print(sys.hexversion);"`
4094
4095 dnl hex version of Python 2.7.1 = 34013680
4096 if test $_python_hexversion -ge 34013680 ; then
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"

--- 3607 unchanged lines hidden ---
4094
4095 dnl hex version of Python 2.7.1 = 34013680
4096 if test $_python_hexversion -ge 34013680 ; then
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"

--- 3607 unchanged lines hidden ---