Skip to content

Instantly share code, notes, and snippets.

@kekh kekh/cpupower.patch
Created Oct 23, 2016

Embed
What would you like to do?
CPUfreqd w/ CPUpower compatibility
--- configure.in 2010-04-18 17:57:30.000000000 +0400
+++ configure.in 2013-01-04 14:37:44.687427237 +0400
@@ -4,7 +4,7 @@
AM_INIT_AUTOMAKE(1.8 dist-bzip2 foreign)
AC_CONFIG_SRCDIR([config.h.in])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
# libtool
AC_LIBTOOL_DLOPEN
@@ -38,9 +38,9 @@
AC_CHECK_LIB([dl], [dlopen],
[ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -ldl" ],
[ AC_MSG_ERROR([You need a working dlopen to build cpufreqd]) ])
-AC_CHECK_LIB([cpufreq], [cpufreq_cpu_exists],
- [ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -lcpufreq" ],
- [ AC_MSG_ERROR([You need libcpufreq from cpufrequtils to build cpufreqd]) ])
+AC_CHECK_LIB([cpupower], [cpupower_is_cpu_online],
+ [ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -lcpupower" ],
+ [ AC_MSG_ERROR([You need libcpupower from cpupower to build cpufreqd]) ])
AC_SUBST(CPUFREQD_LDFLAGS)
DISABLED_PLUGINS=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.