configure.ac (79e0a548) configure.ac (d1c42586)
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

--- 4072 unchanged lines hidden (view full) ---

4081AC_SUBST(LIBXML_LIBS)
4082
4083dnl ===================================================================
4084dnl Check for system python
4085dnl ===================================================================
4086AC_MSG_CHECKING([which python to use])
4087if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
4088 with_system_python=yes
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

--- 4072 unchanged lines hidden (view full) ---

4081AC_SUBST(LIBXML_LIBS)
4082
4083dnl ===================================================================
4084dnl Check for system python
4085dnl ===================================================================
4086AC_MSG_CHECKING([which python to use])
4087if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
4088 with_system_python=yes
4089 AC_MSG_RESULT([compiling against MacOSX10.4u.sdk (python version 2.3)])
4090 PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3"
4089
4090 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python"
4091 _python_version=`$_python -c "import platform; print platform.python_version();"`
4092
4093 if test "$_python_version" = "2.7.4" ; then
4094 AC_MSG_RESULT([compiling against system python (version $_python_version)])
4095
4096 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
4097
4098 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
4099 else
4100 AC_MSG_ERROR([Python 2.7.4 is required])
4101 fi
4102
4091 PYTHON_LIBS="-framework Python"
4092elif test -n "$with_system_python" -o -n "$with_system_libs" && \
4093 test "$with_system_python" != "no"; then
4094 with_system_python=yes
4095 AC_MSG_RESULT([external])
4096 AM_PATH_PYTHON([2.3])
4097
4098 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`

--- 3595 unchanged lines hidden ---
4103 PYTHON_LIBS="-framework Python"
4104elif test -n "$with_system_python" -o -n "$with_system_libs" && \
4105 test "$with_system_python" != "no"; then
4106 with_system_python=yes
4107 AC_MSG_RESULT([external])
4108 AM_PATH_PYTHON([2.3])
4109
4110 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`

--- 3595 unchanged lines hidden ---