]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
macvtap build detection fix
authorStefan Berger <stefanb@us.ibm.com>
Tue, 9 Mar 2010 13:14:48 +0000 (14:14 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 9 Mar 2010 13:14:48 +0000 (14:14 +0100)
* configure.ac: fix the header test used for macvtap availability
  detection

configure.ac

index 6f4d7e4126b1b4f005a3de77bda933ad5cdf521a..ab69e5228b30938bc5302faae44c9cc0892b6191 100644 (file)
@@ -1849,7 +1849,8 @@ AC_ARG_WITH([macvtap],
   [with_macvtap=check])
 
 if test "$with_macvtap" != "no" ; then
-    AC_TRY_COMPILE([ #include <linux/if_link.h> ],
+    AC_TRY_COMPILE([ #include <sys/socket.h>
+                     #include <linux/rtnetlink.h> ],
                    [ int x = MACVLAN_MODE_BRIDGE; ],
                    [ with_macvtap=yes ],
                    [ if test "$with_macvtap" = "yes" ; then