Re: PATCH 3/5: Print configuration summary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Watching the hundreds of lines of configure output to see if it detected 
a package correctly is painful. This patch adds a summary output at the
end of the configure script....

configure: 
configure: Configuration summary
configure: =====================
configure: 
configure: Drivers
configure: 
configure:      Xen: yes
configure:     QEMU: yes
configure:   OpenVZ: no
configure:     Test: yes
configure:   Remote: yes
configure: 
configure: Libraries
configure: 
configure:   libxml: -I/usr/include/libxml2   -lxml2  
configure:   gnutls: -I/home/berrange/usr/include   -L/home/berrange/usr/lib -lgnutls  
configure: 
configure: Miscellaneous
configure: 
configure:   Debug: no
configure: 


If you use --quiet to configure, it is omitted.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
diff -r f42c56308cb0 configure.in
--- a/configure.in	Mon Sep 17 04:02:58 2007 -0400
+++ b/configure.in	Mon Sep 17 04:15:33 2007 -0400
@@ -75,15 +75,15 @@ AC_SUBST(HTML_DIR)
 
 dnl Allow to build without Xen, QEMU/KVM, test or remote driver
 AC_ARG_WITH(xen,
-[  --with-xen              add XEN support (on)])
+[  --with-xen              add XEN support (on)],[],[with_xen=yes])
 AC_ARG_WITH(qemu,
-[  --with-qemu             add QEMU/KVM support (on)])
+[  --with-qemu             add QEMU/KVM support (on)],[],[with_qemu=yes])
 AC_ARG_WITH(openvz,
-[  --with-openvz           add OpenVZ support (off)])
+[  --with-openvz           add OpenVZ support (off)],[],[with_openvz=no])
 AC_ARG_WITH(test,
-[  --with-test             add test driver support (on)])
+[  --with-test             add test driver support (on)],[],[with_test=yes])
 AC_ARG_WITH(remote,
-[  --with-remote           add remote driver support (on)])
+[  --with-remote           add remote driver support (on)],[],[with_remote=yes])
 
 dnl
 dnl specific tests to setup DV devel environments with debug etc ...
@@ -98,7 +98,7 @@ dnl --enable-debug=(yes|no)
 dnl --enable-debug=(yes|no)
 AC_ARG_ENABLE(debug,
               AC_HELP_STRING([--enable-debug=no/yes],
-                             [enable debugging output]))
+                             [enable debugging output]),[],[enable_debug=no])
 if test x"$enable_debug" = x"yes"; then
    AC_DEFINE(ENABLE_DEBUG, [], [whether debugging is enabled])
 fi
@@ -190,35 +190,24 @@ WITH_XEN=0
 WITH_XEN=0
 
 if test "$with_openvz" = "yes" ; then
-    echo "Enabling OpenVZ support"
     LIBVIRT_FEATURES="$LIBVIRT_FEATURES -DWITH_OPENVZ"
-else
-    echo "Disabling OpenVZ support"
-fi
-if test "$with_qemu" = "no" ; then
-    echo "Disabling QEMU/KVM support"
-else
+fi
+if test "$with_qemu" = "yes" ; then
     LIBVIRT_FEATURES="$LIBVIRT_FEATURES -DWITH_QEMU"
 fi
 
-if test "$with_test" = "no" ; then
-    echo "Disabling test driver support"
-else
+if test "$with_test" = "yes" ; then
     LIBVIRT_FEATURES="$LIBVIRT_FEATURES -DWITH_TEST"
 fi
 
-if test "$with_remote" = "no" ; then
-    echo "Disabling remote driver support"
-else
+if test "$with_remote" = "yes" ; then
     LIBVIRT_FEATURES="$LIBVIRT_FEATURES -DWITH_REMOTE"
 fi
 
 if test "$with_depends" != "no"
 then
 
-if test "$with_xen" = "no" ; then
-    echo Disabling XEN support
-else
+if test "$with_xen" = "yes" ; then
     dnl search for the Xen store library
     AC_SEARCH_LIBS(xs_read, [xenstore],
                    [WITH_XEN=1],
@@ -253,6 +242,7 @@ dnl
 dnl
 dnl check for kernel headers required by qemud/bridge.c
 dnl
+
 AC_CHECK_HEADERS(linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h,,
                  AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt]))
 
@@ -464,3 +454,25 @@ AC_OUTPUT(Makefile src/Makefile include/
           tests/xmconfigdata/Makefile \
           tests/xencapsdata/Makefile \
           tests/virshdata/Makefile tests/confdata/Makefile)
+
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([Configuration summary])
+AC_MSG_NOTICE([=====================])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([Drivers])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([     Xen: $with_xen])
+AC_MSG_NOTICE([    QEMU: $with_qemu])
+AC_MSG_NOTICE([  OpenVZ: $with_openvz])
+AC_MSG_NOTICE([    Test: $with_test])
+AC_MSG_NOTICE([  Remote: $with_remote])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([Libraries])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([  libxml: $LIBXML_CFLAGS $LIBXML_LIBS])
+AC_MSG_NOTICE([  gnutls: $GNUTLS_CFLAGS $GNUTLS_LIBS])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([Miscellaneous])
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([  Debug: $enable_debug])
+AC_MSG_NOTICE([])
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]