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.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/kig/configure.in.in b/kig/configure.in.in
index 33986af8..b9884199 100644
--- a/kig/configure.in.in
+++ b/kig/configure.in.in
@@ -121,6 +121,12 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
"$prefix/include/$pyver" "$prefix/$pyver/include"; do
CXXFLAGS="$__regina_py_save_cxxflags -I$incdir"
LDFLAGS="$__regina_py_save_ldflags -shared"
+ if test -z "$qt_libraries"; then
+ LDFLAGS="$LDFLAGS"
+ else
+ LDFLAGS="$LDFLAGS -L$qt_libraries"
+ fi
+ LDFLAGS="$LDFLAGS -ltqt"
# Check for python includes.
AC_TRY_COMPILE([
@@ -146,6 +152,12 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
for extralibs in "" "-lpthread -lm -lutil -ldl"; do
AC_MSG_CHECKING([for $pylibdir/lib$pylib and $extralibs with $incdir/Python.h])
LDFLAGS="$__regina_py_save_ldflags -L$pylibdir"
+ if test -z "$qt_libraries"; then
+ LDFLAGS="$LDFLAGS"
+ else
+ LDFLAGS="$LDFLAGS -L$qt_libraries"
+ fi
+ LDFLAGS="$LDFLAGS -ltqt"
LIBS="-l$pylib $extralibs"
AC_TRY_LINK([
#include <Python.h>
@@ -156,6 +168,12 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
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
AC_MSG_CHECKING([compilation of a boost.python program with $bplib])
LDFLAGS="$__regina_py_save_ldflags -L$pylibdir"
+ if test -z "$qt_libraries"; then
+ LDFLAGS="$LDFLAGS"
+ else
+ LDFLAGS="$LDFLAGS -L$qt_libraries"
+ fi
+ LDFLAGS="$LDFLAGS -ltqt"
LIBS="-l$pylib $bplib $extralibs"
AC_TRY_LINK([
#include <boost/python.hpp>