We need to append to the $curses_ldflags variable rather than
overwriting it. Without this fix, --with-curses-libs is effectively
ignored.
HAVE_CURSES=yes
AC_CHECK_HEADER(curses.h, [], [HAVE_CURSES=no])
AC_SEARCH_LIBS([initscr], [ncursesw curses], [], [HAVE_CURSES=no])
-curses_ldflags="$LIBS"
+curses_ldflags="$curses_ldflags $LIBS"
LIB_SUBST_FLAGS(curses)
UNSTASH_FLAGS
########################################################################### ip_mreqn