]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: Add explict --with-python option.
authorCole Robinson <crobinso@redhat.com>
Fri, 2 Oct 2009 15:19:47 +0000 (11:19 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 5 Oct 2009 17:31:37 +0000 (13:31 -0400)
--with-python currently already works for enabling/disabling the python
bindings, but doesn't show up in the help output.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
configure.in

index cb5ce550bac344549180cfdf8248c51af91baaf7..1d122378469735297473636186abde736aa9ec1a 100644 (file)
@@ -1316,6 +1316,9 @@ dnl
 dnl check for python
 dnl
 
+AC_ARG_WITH([python],
+[  --with-python              Build python bindings (on)],[],[with_python=yes])
+
 PYTHON_VERSION=
 PYTHON_INCLUDES=
 PYTHON_SITE_PACKAGES=
@@ -1373,7 +1376,7 @@ if test "$with_python" != "no" ; then
            fi
        fi
     fi
-    if test "$with_python" != ""
+    if test "$with_python" != "yes"
     then
         pythondir='$(PYTHON_SITE_PACKAGES)'
     else
@@ -1836,6 +1839,7 @@ AC_MSG_NOTICE([])
 AC_MSG_NOTICE([     Debug: $enable_debug])
 AC_MSG_NOTICE([  Warnings: $enable_compile_warnings])
 AC_MSG_NOTICE([  Readline: $lv_use_readline])
+AC_MSG_NOTICE([    Python: $with_python])
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([Privileges])
 AC_MSG_NOTICE([])