Thanks for the testing data. As soon as I can verify or get
confirmation for this patch on Suse and Fedora at a minimum i will
merge.
That chunk of auto config has been a historical pain, so I want to
make sure it works on several distros.
-C
On Fri, Nov 2, 2012 at 5:30 AM, <zhang.austin(a)gmail.com> wrote:
From: Austin Zhang <zhang.austin(a)gmail.com>
So that we can configure in system with libnl2 or/and libnl3.
Without/With this patch, the './configure' result as:
--------------------------------------------------------------------------------
| ubuntu 11-10 || ubuntu 12.04
--------------------------------------------------------------------------------
| libnl-1 | libnl-2 | libnl-3 || libnl-1 | libnl-2 | libnl-3
--------------------------------------------------------------------------------
without this patch | Pass | Fail | Fail || Pass | Fail | Pass
with this patch | Pass | Pass | Pass || Pass | Pass | Pass
--------------------------------------------------------------------------------
Signed-off-by: Austin Zhang <zhang.austin(a)gmail.com>
---
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b8c183f..ccc0ec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,11 +54,11 @@ PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[
has_libnl_ver=0
-PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [
+PKG_CHECK_MODULES([LIBNL], [libnl-3.0], [
has_libnl_ver=3], [
AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [
has_libnl_ver=3], [
- AC_SEARCH_LIBS([nl_socket_alloc], [nl], [
+ PKG_CHECK_MODULES([LIBNL], [libnl-2.0], [
has_libnl_ver=2], [
PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1],
[])])])])
if (test "$has_libnl_ver" -eq 0); then
--
1.7.5.4
_______________________________________________
PowerTop mailing list
PowerTop(a)lists.01.org
https://lists.01.org/mailman/listinfo/powertop