summaryrefslogtreecommitdiffstats
path: root/kig/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'kig/configure.in.in')
-rw-r--r--kig/configure.in.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/kig/configure.in.in b/kig/configure.in.in
index 99d11b95..05d5934d 100644
--- a/kig/configure.in.in
+++ b/kig/configure.in.in
@@ -161,6 +161,12 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
LIBS="-l$pylib $extralibs"
PYVERSHORT=${pyver#python}
PYVERSUFFIX=py${PYVERSHORT%.*}${PYVERSHORT#*.}
+ PYVERMAJOR=${PYVERSHORT%.*}
+ if test $PYVERMAJOR -lt 3; then
+ KIG_Python_init=initkig
+ else
+ KIG_Python_init=PyInit_kig
+ fi
AC_TRY_LINK([
#include <Python.h>
], [
@@ -221,6 +227,8 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
if test "$__regina_py_ok" = "1"; then
AC_DEFINE(HAVE_BOOST_PYTHON, 1,
[Define to 1 if you have a usable boost.python installation.])
+ AC_DEFINE_UNQUOTED(KIG_Python_init, $KIG_Python_init,
+ [KIG: Init function for python-boost])
else
BOOST_PYTHON_INCLUDES=
BOOST_PYTHON_LIBS=