Find boost_python depending on the Python version

pull/1/head
Slávek Banko 11 years ago
parent efaf922de8
commit 3e7c7683d9

@ -159,13 +159,15 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
fi
LDFLAGS="$LDFLAGS -ltqt"
LIBS="-l$pylib $extralibs"
PYVERSHORT=${pyver#python}
PYVERSUFFIX=py${PYVERSHORT%.*}${PYVERSHORT#*.}
AC_TRY_LINK([
#include <Python.h>
], [
Py_Initialize(); Py_Finalize();
], [
AC_MSG_RESULT([yes])
for bplib in "-lboost_python-mt" "-lboost_python-gcc-mt-1_32" "-lboost_python-gcc-mt-1_31" "-lboost_python-gcc-mt" "-lboost_python"; do
for bplib in "-lboost_python-mt-$PYVERSUFFIX" "-lboost_python-mt" "-lboost_python-gcc-mt-1_32" "-lboost_python-gcc-mt-1_31" "-lboost_python-gcc-mt" "-lboost_python-$PYVERSUFFIX" "-lboost_python"; do
AC_MSG_CHECKING([compilation of a boost.python program with $bplib])
LDFLAGS="$__regina_py_save_ldflags -L$pylibdir"
if test -z "$qt_libraries"; then

Loading…
Cancel
Save