From: Marc Fournier Date: Mon, 15 Jun 2015 09:01:42 +0000 (+0200) Subject: configure: turbostat: check for MSR_PKG_C10_RESIDENCY symbol X-Git-Tag: collectd-5.5.1~118 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=550ff5da10244d6e4e97cb0719e133007012d08d;p=collectd.git configure: turbostat: check for MSR_PKG_C10_RESIDENCY symbol Older versions of `asm/msr-index.h` don't have all the symbol needed to build the turbostat plugin. Checking for MSR_PKG_C10_RESIDENCY seems to guarantee we have a recent enough `asm/msr-index.h`. Fixes #1075 --- diff --git a/configure.ac b/configure.ac index 64609651..2f3b38d7 100644 --- a/configure.ac +++ b/configure.ac @@ -614,14 +614,14 @@ AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"]) if test "x$have_asm_msrindex_h" = "xyes" then - AC_CACHE_CHECK([whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY], + AC_CACHE_CHECK([whether asm/msr-index.h has MSR_PKG_C10_RESIDENCY], [c_cv_have_usable_asm_msrindex_h], AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[[ #include ]]], [[[ -int y = MSR_CORE_C3_RESIDENCY; +int y = MSR_PKG_C10_RESIDENCY; return(y); ]]] )],