[gnome-applets] add --with-cpufreq-lib configure option



commit ec4da5d83d810eb19087956da26ba93329a4d267
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Nov 5 18:11:30 2014 +0200

    add --with-cpufreq-lib configure option
    
    Use --with-cpufreq-lib=[cpufreq/cpupower] to set library that is
    available on your system. Default still is cpufreq.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698222

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fe2d4b3..172fb14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -452,11 +452,15 @@ if test "x$HAVE_POLKIT" = "xyes"; then
    suid=no
 fi
 
+AC_ARG_WITH([cpufreq-lib],
+       AS_HELP_STRING([--with-cpufreq-lib=lib], [library to use for cpufreq applet @<:@default=cpufreq@:>@]),
+       [with_cpufreq_lib=$withval], [with_cpufreq_lib="cpufreq"])
+
 AC_CHECK_HEADER(cpufreq.h, have_libcpufreq=yes, have_libcpufreq=no)
 LIBCPUFREQ_LIBS=
 if test "x$have_libcpufreq" = "xyes"; then
    AC_DEFINE([HAVE_LIBCPUFREQ], [1], [Have libcpufreq.])
-   LIBCPUFREQ_LIBS=-lcpufreq
+   LIBCPUFREQ_LIBS="-l$with_cpufreq_lib"
 fi
 AM_CONDITIONAL(HAVE_LIBCPUFREQ, test x$have_libcpufreq = xyes)
 AC_SUBST(LIBCPUFREQ_LIBS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]