summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70e1e4c)
raw | patch | inline | side by side (parent: 70e1e4c)
author | Vincent Brillault <git@lerya.net> | |
Wed, 22 Apr 2015 19:45:05 +0000 (21:45 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Wed, 22 Apr 2015 19:47:06 +0000 (21:47 +0200) |
Olds versions of asm/msr-index.h don't contain the required macros.
Test at least if it contains MSR_CORE_C3_RESIDENCY
Test at least if it contains MSR_CORE_C3_RESIDENCY
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 35ce32ba12bc954ee423ce3eba7612210c4e1a51..2ef82ee13606ddf50b7a3d39516eb8888ec79afe 100644 (file)
--- a/configure.ac
+++ b/configure.ac
have_asm_msrindex_h="no"
AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"])
+have_usable_asm_msrindex_h="no"
+if test "x$have_asm_msrindex_h" = "xyes"
+then
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include<asm/msr-index.h>]],[[int y = MSR_CORE_C3_RESIDENCY;]])], [have_usable_asm_msrindex_h="yes"])
+fi
+
have_cpuid_h="no"
AC_CHECK_HEADERS(cpuid.h, [have_cpuid_h="yes"])
then
plugin_ipvs="yes"
fi
- if test "x$have_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
+ if test "x$have_usable_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
then
plugin_turbostat="yes"
fi