Index: unnethack-3.5.3/configure
===================================================================
--- unnethack-3.5.3.orig/configure	(revision 872)
+++ unnethack-3.5.3/configure	(working copy)
@@ -4854,7 +4854,7 @@
     else
 	# For TTY, determine the termlib
 	# Check for termlib before termcap because Solaris termcap needs libucb.
-	TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
+	TERMLIB_VARIANTS="ncursesw ncurses curses termlib termcap terminfo"
 	for termlib in ${TERMLIB_VARIANTS}; do
 	    as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${termlib}" >&5
@@ -5336,7 +5336,7 @@
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcurses  $LIBS"
+LIBS="-lncursesw  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -5387,7 +5387,7 @@
 WINCURSESLIB=
 if test "$enable_curses_graphics" != "no"; then
 	# For curses, determine the curses lib
-	CURSES_VARIANTS="ncurses curses"
+	CURSES_VARIANTS="ncursesw ncurses curses"
 	for curseslib in ${CURSES_VARIANTS}; do
 	    as_ac_Lib=`$as_echo "ac_cv_lib_${curseslib}''_tgetent" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${curseslib}" >&5
