Sebastian Lackner sebastian@fds-team.de writes:
On Archlinux the libncurses library is just an ASCII text file containing "INPUT(-lncursesw)" to force the linker to use libncursesw instead. AC_LINK_IFELSE succeeds, but afterwards, when WINE_CHECK_SONAME tries to figure out the name it fails because it doesn't recognize libncursesw.so as the same library. Using a regexp as pattern is the easiest solution to fix this.
That doesn't do the right thing on Mac OS:
#define SONAME_LIBNCURSES " /sw/lib/ncurses/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)"