Re: [Powertop] [PATCH] Optionally check for ncurses pkgconfig file.

Kok, Auke-jan H <auke-jan.h.kok at intel.com>
Newsgroups dev.linux.lists.powertop
Message-ID <CABsxX9LV5E9w6eNKtAmoD4kUm1rryCgwDiQKiCN17MDeqxByyA@mail.gmail.com>
On Tue, May 6, 2014 at 12:53 AM, Sergey Senozhatsky
<sergey.senozhatsky(a)gmail.com> wrote:
> On (05/05/14 23:42), Auke Kok wrote:
>> ---
>>  configure.ac | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index baa5faa..5a90fe3 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -46,7 +46,8 @@ AC_FUNC_REALLOC
>>  AC_FUNC_STRTOD
>>  AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir munmap pow realpath regcomp select setlocale socket sqrt strcasecmp strchr strdup strerror strncasecmp strstr strtoul strtoull])
>>
>> -AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses is required but was not found]), [])
>> +PKG_CHECK_MODULES([NCURSES], [ncurses], [LIBS="$LIBS $ncurses_LIBS"],
>                                 ^^^^^^^^^
>                                 [ncursesw ncurses]?

Good question, I actually do not know, and I don't have an ncurses
pkgconfig around to see if that works.

Alexandra, can you see if this works with:

+PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"],

That needs to be tested by someone with a new ncurses.

Auke
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.