diff -up ./configure.ac.orig ./configure.ac --- ./configure.ac.orig 2018-12-01 12:51:46.656217980 +0200 +++ ./configure.ac 2018-12-01 12:51:55.793274817 +0200 @@ -35,8 +35,8 @@ AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. -AC_CHECK_LIB(curses, initscr, LIBS="$LIBS -lcurses", - [AC_CHECK_LIB(ncurses, initscr, LIBS="$LIBS -lncurses", +AC_CHECK_LIB(cursesw, initscr, LIBS="$LIBS -lcursesw", + [AC_CHECK_LIB(ncursesw, initscr, LIBS="$LIBS -lncursesw", AC_MSG_ERROR([libcurses/libncurses not found.]))] ) AC_CHECK_LIB(tinfo, keypad, LIBS="$LIBS -ltinfo")