From a2996926e303e84436a89dc42fe65d32b5ab8eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sat, 14 Apr 2012 19:18:03 +0200 Subject: [PATCH] Fix macvtap detection by also checking for IFLA_VF_MAX since this isn't available on older kernels such as Debian Squeeze's 2.6.32. This make --with-macvtap=check work as expected. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3f5b3ffecb..53c9b34ee6 100644 --- a/configure.ac +++ b/configure.ac @@ -2534,7 +2534,8 @@ AC_MSG_CHECKING([whether to compile with macvtap support]) if test "$with_macvtap" != "no" ; then AC_TRY_COMPILE([ #include #include ], - [ int x = MACVLAN_MODE_BRIDGE; ], + [ int x = MACVLAN_MODE_BRIDGE; + int y = IFLA_VF_MAX; ], [ with_macvtap=yes ], [ if test "$with_macvtap" = "yes" ; then AC_MSG_ERROR([Installed linux headers don't show support for macvtap device.])