[libvirt] [PATCH] Disallow building Python bindings if shared libraries are disabled.
Diego Elio Pettenò
flameeyes at gmail.com
Fri Jan 8 11:00:00 UTC 2010
Patch concept by Jim Meyering <jim at meyering.net>, moved before the Python
testing, and changed the message a bit to explain the problem.
---
configure.in | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index 3f2f8ff..5275412 100644
--- a/configure.in
+++ b/configure.in
@@ -1466,6 +1466,11 @@ dnl
AC_ARG_WITH([python],
[ --with-python Build python bindings (on)],[],[with_python=yes])
+if test "$enable_shared:$with_python" = no:yes; then
+ AC_MSG_WARN([Disabling shared libraries is incompatible with building Python extensions.])
+ with_python=no
+fi
+
PYTHON_VERSION=
PYTHON_INCLUDES=
if test "$with_python" != "no" ; then
--
1.6.6
More information about the libvir-list
mailing list