[Libvir] PATCH 5/5: Don't check bridge headers without QEMU

Daniel P. Berrange berrange at redhat.com
Tue Sep 18 01:42:14 UTC 2007


The configure script checks for 

  linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h

Even if compiling without the QEMU enabled. These are only used by the network
driver, which is part of the QEMU driver, so checking for them when configure
is given --disable-qemu is bogus

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  -=| 
-------------- next part --------------
diff -r a42cfe78c6d1 configure.in
--- a/configure.in	Mon Sep 17 04:24:25 2007 -0400
+++ b/configure.in	Mon Sep 17 04:24:57 2007 -0400
@@ -233,9 +233,10 @@ dnl check for kernel headers required by
 dnl check for kernel headers required by qemud/bridge.c
 dnl
 
+if test "$with_qemu" = "yes" ; then
 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]))
-
+fi
 
 PKG_PROG_PKG_CONFIG()
 


More information about the libvir-list mailing list