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
|
--- configure.in 2004-06-12 08:47:29.000000000 -0400
+++ /liquidx/configure.in 2004-06-26 23:20:12.785893120 -0400
@@ -70,15 +70,24 @@
AC_SUBST(ADDSDPLIB)
dnl Python bindings
-PKG_CHECK_MODULES(BTCTLPY, pygtk-2.0, HAVE_PYTHON=yes, HAVE_PYTHON=no)
-AC_MSG_CHECKING(for python support)
-if test "x$HAVE_PYTHON" = "xyes"; then
- AM_PATH_PYTHON(2.2)
- AC_MSG_RESULT(yes)
- DEFSDIR=`pkg-config --variable=defsdir pygtk-2.0`
- AC_SUBST(DEFSDIR)
- AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
-else
+dnl Mono bindings
+AC_ARG_ENABLE(python, [ --enable-python Build Python bindings [default=yes]], enable_python="$enableval", enable_python=yes)
+
+if test "x$enable_python" = "xyes"; then
+ PKG_CHECK_MODULES(BTCTLPY, pygtk-2.0, HAVE_PYTHON=yes, HAVE_PYTHON=no)
+ AC_MSG_CHECKING(for python support)
+ if test "x$HAVE_PYTHON" = "xyes"; then
+ AM_PATH_PYTHON(2.2)
+ AC_MSG_RESULT(yes)
+ DEFSDIR=`pkg-config --variable=defsdir pygtk-2.0`
+ AC_SUBST(DEFSDIR)
+ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
+ else
+ AC_MSG_RESULT(no)
+ fi
+else
+ AC_MSG_CHECKING(for python support)
+ HAVE_PYTHON=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_PYTHON, [test $HAVE_PYTHON = yes])
|