ncurses has many ways to split libraries, better to use pkg-config for the task.
please review the attached patch.
Thanks for the patch. Added to v0.13.
Is there any chance that you could take a look at bug 3604008 please? It seems that on some systems (not mine) that the new pkgconfig check for PANEL does not include the ncurses libraries. Any idea why? Thanks.