> Ah. Do you perhaps have a /usr/include/ncurses.h?
Yes, but ...
> I guess we should be
> trying that before curses.h, I've commited it, please test svn or next
> night tarball.
when I tried out your change, <ncurses.h> was found and linking was still
done with libncurses (and therefore failed). I think what's needed is some
uglier, more complex code here
AC_CHECK_HEADERS([ncurses.h curses.h], [
AC_SEARCH_LIBS([tparm], [termcap ncursesw ncurses curses], [
[Define to 1 if you have a library providing the termcap interface])
], , [[#include <curses.h>]])
that would generate the correct header file to library pairing. In my
case, the attached patch on top of your previous change did the trick.