summarylogtreecommitdiffstats
path: root/cpupower.patch
blob: cc9da4405bff3ae82e5a20de304dccaa4a227819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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], [cpufreq_get_freq_kernel],
+		[ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -lcpupower" ],
+		[ AC_MSG_ERROR([You need libcpupower from cpupower to build cpufreqd]) ])
 AC_SUBST(CPUFREQD_LDFLAGS)
 
 DISABLED_PLUGINS=""