Mercurial > libpst
comparison configure.ac @ 388:292ad0f71fd4
Add operator and quotes to the AX_PYTHON_DEVEL parameter
The operator is required and the quotes are needed to protect PYTHON_VERSION.
See-also: https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
Fixes:
checking whether to build the libpst python interface... yes
checking for python build information...
checking for python3.7... python3.7
checking for main in -lpython3.7... no
checking for main in -lpython3.7m... yes
results of the Python check:
Binary: python3.7
Library: python3.7m
Include Dir: /usr/include/python3.7m
checking for python3.7... /usr/bin/python3.7
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python 3.7... File "<string>", line 1
import sys; ver = sys.version.split ()[0]; print (ver 3.7)
^
SyntaxError: invalid syntax
no
configure: error: this package requires Python 3.7.
If you have it installed, but it isn't the default Python
interpreter in your system path, please pass the PYTHON_VERSION
variable to configure. See ``configure --help'' for reference.
author | Paul Wise <pabs3@bonedaddy.net> |
---|---|
date | Sat, 21 Dec 2019 21:25:45 +0800 |
parents | f1f9920cc7b1 |
children | 5c0ce43c7532 |
comparison
equal
deleted
inserted
replaced
387:f03ee7e0ccc3 | 388:292ad0f71fd4 |
---|---|
330 AC_MSG_ERROR(python binary not found) | 330 AC_MSG_ERROR(python binary not found) |
331 fi | 331 fi |
332 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-` | 332 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-` |
333 | 333 |
334 # find the flags for that version | 334 # find the flags for that version |
335 AX_PYTHON_DEVEL([$PYTHON_VERSION]) | 335 AX_PYTHON_DEVEL([>= '$PYTHON_VERSION']) |
336 | 336 |
337 # do we have boost python? | 337 # do we have boost python? |
338 AX_BOOST_PYTHON | 338 AX_BOOST_PYTHON |
339 if test "$ac_cv_boost_python" = "no"; then | 339 if test "$ac_cv_boost_python" = "no"; then |
340 AC_MSG_ERROR(boost python not found) | 340 AC_MSG_ERROR(boost python not found) |