Re: [tin 2.0.0] snaphsots

Dennis Preiser <[email protected]> Mon, 2 May 2011 21:32:56 +0200
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Sun, May 01, 2011 at 07:41:15PM -0400, Thomas Dickey wrote:
> On Sun, May 01, 2011 at 12:43:45PM +0200, Dennis Preiser wrote:
>> With these changes HAVE_NCURSESW_NCURSES_H remains undefined in
>> autoconf.h here (MacOSX).
 
>> $HOME/sw/include/ncursesw/ncurses.h exists.
> 
> yes, but the configure script is finding ncursesw/curses.h first (now).
> Either would be correct.
> 
> Looks like when I added the check for ncurses*-config, then I noticed
> that I needed to add a check to keep #defines such as HAVE_NCURSESW_NCURSES_H
> intact.  I implemented that using CF_CURSES_HEADER, which can derive more
> variations than CF_NCURSES_HEADER - noting that all of the symbols in
> the former are generated, while the latter provides just a few special
> cases.
> 
> We can address this in different ways:
> 
> a) modify CF_CURSES_HEADER to check for ncurses.h before curses.h
>    That's less intrusive to tin, of course.  Also, arguably the
>    <ncursesw/ncurses.h> makes it plainly one of the ncurses variations.
> 
>    I'm attaching a patch for this.

A version with this patch works fine. Thanks.

Dennis