Index: files/patch-configure =================================================================== --- files/patch-configure (revision 443620) +++ files/patch-configure (working copy) @@ -1,5 +1,5 @@ ---- configure.orig 2016-01-31 11:55:44 UTC -+++ configure +--- configure.orig 2017-06-16 03:32:58.526149000 +0900 ++++ configure 2017-06-16 05:56:26.599942000 +0900 @@ -1805,10 +1805,8 @@ if test "$vi_cv_canna" = "yes"; then case "$host_os" in bsdi2.1) @@ -13,7 +13,26 @@ *) vi_cannapath="/usr/local/canna";; esac -@@ -2155,13 +2153,13 @@ fi +@@ -2062,6 +2060,10 @@ if test "$vi_cv_tclinterp" = yes || test + LIBOBJS="api.o $LIBOBJS" + fi + ++case "$host_os" in ++freebsd*) ++;; ++*) + echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6 + echo "configure:2067: checking for tgetent in -ltermlib" >&5 + ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'` +@@ -2149,19 +2151,20 @@ fi + if test "$vi_cv_termlib" != no; then + LIBS="$vi_cv_termlib $LIBS" + fi +- ++;; ++esac + #AC_MSG_CHECKING(if --disable-curses option specified) + #AC_ARG_ENABLE(curses, # [ --disable-curses DON'T use the nvi-provided curses routines.], # [vi_cv_curses="other curses"], [vi_cv_curses="bundled curses"]) #AC_MSG_RESULT($vi_cv_curses) @@ -25,7 +44,7 @@ cobjs="\$(COBJS)";; "other curses") - LIBS="-lcurses $LIBS";; -+ LIBS="-lncurses $LIBS";; ++ LIBS="-lncursesw $LIBS";; esac echo $ac_n "checking for sys/mman.h""... $ac_c" 1>&6