-dnl Use: Attempts to find an implementation of `curses'. A `curses'
-dnl library (`ncurses' by preference) will be added to `LIBS'.
-dnl If a library could be found, the preprocessor symbol
-dnl HAVE_CURSES is defined, along with one of HAVE_NCURSES_H,
-dnl HAVE_NCURSES_NCURSES_H or HAVE_CURSES_H, suggesting which
-dnl header to include (in the obvious way).
+dnl Use: Searches for a `curses' library (one of `ncurses' or
+dnl `curses') using mdw_CHECK_MANYLIBS. If one is found, the
+dnl preprocessor macro HAVE_CURSES is defined, and a search is
+dnl made for a `curses' header file (one of <ncurses.h>,
+dnl <ncurses/ncurses.h> or <curses.h>) using AC_CHECK_HEADERS
+dnl and the appropriate preprocessor symbol is defined.
+dnl Finally, a check is made for the function `wresize' using
+dnl AC_CHECK_FUNCS.