summaryrefslogtreecommitdiff
blob: 511a21c41ac08b5897cefdfa7c909f81fad3ebf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 bindings/python/setup.py |  2 +-
 configure.ac             | 10 +---------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index 961395f..c38ef52 100644
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -36,7 +36,7 @@ def target_specific():
 
 try:
 	with open('compile_flags') as _file:
-		extra_cmd = _file.read()
+		extra_cmd = _file.read()  + '-lboost_python-%s-mt' % (platform.python_version()[:3])
 
 except:
 	extra_cmd = None
diff --git a/configure.ac b/configure.ac
index ebb1f7e..dddc403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -539,15 +539,7 @@ AS_CASE(["$ARG_ENABLE_PYTHON_BINDING"],
       AC_MSG_RESULT([yes])
 
       AM_PATH_PYTHON([2.4], [], AC_MSG_ERROR([Python interpreter not found.]))
-      AX_PYTHON_DEVEL([>= '2.4'])
-      AX_BOOST_PYTHON()
-
-      AS_IF([test -z "$BOOST_PYTHON_LIB"],
-            [AC_MSG_ERROR([Boost.Python library not found. Try using --with-boost-python=lib.])])
-    ],
-  ["no"], [
-      AC_MSG_RESULT([no])
-    ],
+      AX_PYTHON_DEVEL([>= '2.4'])],
   [AC_MSG_RESULT([$ARG_ENABLE_PYTHON_BINDING])
    AC_MSG_ERROR([Unknown option "$ARG_ENABLE_PYTHON_BINDING". Use either "yes" or "no".])]
 )