configure.ac (3187fb04) configure.ac (0038efe0)
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

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

3982elif test -n "$with_system_python" -o -n "$with_system_libs" && \
3983 test "$with_system_python" != "no"; then
3984 with_system_python=yes
3985 AC_MSG_RESULT([external])
3986 AM_PATH_PYTHON([2.7])
3987
3988 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
3989 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
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

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

3982elif test -n "$with_system_python" -o -n "$with_system_libs" && \
3983 test "$with_system_python" != "no"; then
3984 with_system_python=yes
3985 AC_MSG_RESULT([external])
3986 AM_PATH_PYTHON([2.7])
3987
3988 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
3989 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
3990 PKG_CHECK_MODULES(PYTHON, python-$python_version, PYTHON_PC="TRUE", PYTHON_PC="" )
3990 # Python 3.8 and later distinguish building Python modules from linking to the libpython:
3991 # (https://bugs.python.org/issue36721)
3992 if test "$python_version" -lt "3.8"; then
3993 PKG_CHECK_MODULES(PYTHON, python-$python_version, PYTHON_PC="TRUE", PYTHON_PC="" )
3994 else
3995 PKG_CHECK_MODULES(PYTHON, python-$python_version-embed, PYTHON_PC="TRUE", PYTHON_PC="" )
3996 fi
3991 if test "$PYTHON_PC" != "TRUE"; then
3992 PYTHON_CFLAGS="-I$python_include"
3993 PYTHON_LIBS="-lpython$python_version"
3994 fi
3995fi
3996if test "$with_system_python" = "yes" ; then
3997 SYSTEM_PYTHON=YES
3998 dnl check if the headers really work:

--- 3494 unchanged lines hidden ---
3997 if test "$PYTHON_PC" != "TRUE"; then
3998 PYTHON_CFLAGS="-I$python_include"
3999 PYTHON_LIBS="-lpython$python_version"
4000 fi
4001fi
4002if test "$with_system_python" = "yes" ; then
4003 SYSTEM_PYTHON=YES
4004 dnl check if the headers really work:

--- 3494 unchanged lines hidden ---