dnl CF_CURSES_TYPE version: 2 updated: 1998/02/15 16:37:44
dnl --------------
dnl The main distinction between bsd- and sysv-curses is that the latter has a
dnl keypad function.
AC_DEFUN([CF_CURSES_TYPE],
[
AC_CACHE_CHECK(BSD vs SYSV curses,cf_cv_curses_type,[
	cf_cv_curses_type=unknown
	if test .$ac_cv_lib_curses_initscr = .yes; then
		AC_TRY_LINK([#include <curses.h>],
			[keypad(curscr,1)],
			[cf_cv_curses_type=sysv],
			[cf_cv_curses_type=bsd])
	fi
])
])dnl
