summaryrefslogtreecommitdiffstats
path: root/kig/configure.in.in
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2019-06-27 16:35:25 +0200
committerSlávek Banko <[email protected]>2019-06-27 16:35:25 +0200
commitd4a1613e9f119ae68c695ab60f8d9856d1a54a52 (patch)
tree6de888ef76667e28c81832dc104c19b158859b9b /kig/configure.in.in
parent9fb4e1ccde0b89b413bfdc8ae62f8178ecad5483 (diff)
downloadtdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.tar.gz
tdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.zip
Conversion to the cmake building system.
Add includes to UI files to resolve FTBFS. Signed-off-by: gregory guy <[email protected]> Signed-off-by: Slávek Banko <[email protected]>
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=