bug-gtypist
[Top][All Lists]
Advanced

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

Re: [bug-gtypist] gtypist fails to build with ncurses[tinfo]


From: Felix Natter
Subject: Re: [bug-gtypist] gtypist fails to build with ncurses[tinfo]
Date: Sun, 05 Jan 2014 16:30:18 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux)

Tim Marston <address@hidden> writes:

> Hi,

hi Tim,

> On Wed, Oct 30, 2013 at 09:55:17PM +0100, Felix Natter wrote:
>> I coded a very simple solution (PKG_CHECK_MODULES, if that fails use
>> AC_CHECK_HEADER/LIB), which works both with "ncursesw.pc" and without:
>
> But does it work without pkg-config?  I suspect that it will throw an
> error message complaining that pkg-config is not available.

I _think_ I tried it and PKG_CHECK_MODULES catches that.

> There is another problem as well... If I install my own, local copy of
> libncursesw in to, say, ~/mylibs/myncursesw and then try to go like
> this:
>
>   $ ./configure "LDFLAGS=-l$HOME/mylibs/myncursesw"
>
> it will not work.  pkg-config will use the library that the system
> knows about instead.  There is an interesting post about it here[1].

Ok, good point.

> The same post also suggests a way to use PKG_CHECK_MODULES, which we
> discussed before, that is "correct":
>
>   1. invoke AC_CHECK_LIBS *first*, so that the "usual" mechanisms are
>   given a chance to work.
>
>   2. if that fails, invoke PKG_CHECK_MODULES
>
>   3. if that succeeds, invoke AC_CHECK_LIBS again, in case pkg-config
>   returned something invalid.
>
> I agree with you, though -- step 3 probably isn't too important.  But
> would you mind changing your fix to run AC_CHECK_LIBS first, and then
> PKG_CHECK_MODULES on failure?  I think that would be a better solution.

OK, I'll do it sometime next week.

Best Regards,
-- 
Felix Natter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]