From 3e7c7683d900be44f7e7a03ee689f9b2b7c09dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 11 Sep 2013 20:35:16 +0200 Subject: Find boost_python depending on the Python version --- kig/configure.in.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kig/configure.in.in') 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 ], [ 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 -- cgit v1.2.1