diff options
Diffstat (limited to 'net-wireless/libbtctl/files/libbtctl-0.4.1-enable_python.patch')
-rw-r--r-- | net-wireless/libbtctl/files/libbtctl-0.4.1-enable_python.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net-wireless/libbtctl/files/libbtctl-0.4.1-enable_python.patch b/net-wireless/libbtctl/files/libbtctl-0.4.1-enable_python.patch new file mode 100644 index 000000000000..c89c9db53857 --- /dev/null +++ b/net-wireless/libbtctl/files/libbtctl-0.4.1-enable_python.patch @@ -0,0 +1,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]) |