diff options
author | Slávek Banko <[email protected]> | 2013-09-11 20:35:16 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-09-11 20:41:15 +0200 |
commit | 3e7c7683d900be44f7e7a03ee689f9b2b7c09dfe (patch) | |
tree | 7f4691d0728c59d3c6389b33365400deba9988f3 | |
parent | efaf922de86715600306cb97cc13b044f815d6b6 (diff) | |
download | tdeedu-3e7c7683d900be44f7e7a03ee689f9b2b7c09dfe.tar.gz tdeedu-3e7c7683d900be44f7e7a03ee689f9b2b7c09dfe.zip |
Find boost_python depending on the Python version
-rw-r--r-- | kig/configure.in.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kig/configure.in.in b/kig/configure.in.in index 7fa197aa..99d11b95 100644 --- a/kig/configure.in.in +++ b/kig/configure.in.in @@ -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 |