All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] [PATCH] configure: First try to use libnl-3, then libnl-2, then libnl-1
@ 2012-07-30 13:55 Igor Zhbanov
  0 siblings, 0 replies; 2+ messages in thread
From: Igor Zhbanov @ 2012-07-30 13:55 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

Change search order for libnl in configure.ac:
first try to use libnl-3, then libnl-2, then libnl-1.
---
 configure.ac |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3f5775f..552626c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,12 +53,13 @@ PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[
  
 
 has_libnl_ver=0
-PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [
-	AC_SEARCH_LIBS([nl_socket_alloc], [nl], [has_libnl_ver=2], [
-		     PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [has_libnl_ver=3],
-				       [AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [has_libnl_ver=3], [], [])])
-	], [])
-])
+PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-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], [
+			has_libnl_ver=2], [
+			PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [])])])])
 if (test "$has_libnl_ver" -eq 0); then
 	AC_MSG_ERROR(libnl is required but not found)
 fi
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Powertop] [PATCH] configure: First try to use libnl-3, then libnl-2, then libnl-1
@ 2012-07-30 16:08 Chris Ferron
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Ferron @ 2012-07-30 16:08 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

On 07/30/2012 06:55 AM, Igor Zhbanov wrote:
> Change search order for libnl in configure.ac:
> first try to use libnl-3, then libnl-2, then libnl-1.
> ---
>   configure.ac |   13 +++++++------
>   1 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 3f5775f..552626c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -53,12 +53,13 @@ PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[
>    
>   
>   has_libnl_ver=0
> -PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [
> -	AC_SEARCH_LIBS([nl_socket_alloc], [nl], [has_libnl_ver=2], [
> -		     PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [has_libnl_ver=3],
> -				       [AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [has_libnl_ver=3], [], [])])
> -	], [])
> -])
> +PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-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], [
> +			has_libnl_ver=2], [
> +			PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [])])])])
>   if (test "$has_libnl_ver" -eq 0); then
>   	AC_MSG_ERROR(libnl is required but not found)
>   fi
Patch merged
Thank You

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-30 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 16:08 [Powertop] [PATCH] configure: First try to use libnl-3, then libnl-2, then libnl-1 Chris Ferron
  -- strict thread matches above, loose matches on Subject: below --
2012-07-30 13:55 Igor Zhbanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.