228
# Orginal from bash-2.0 aclocal.m4, Changed to use termcap last by monty.
230
AC_DEFUN([DRIZZLE_CHECK_LIB_TERMCAP],
232
AC_CACHE_VAL(mysql_cv_termcap_lib,
233
[AC_CHECK_LIB(ncurses, tgetent, mysql_cv_termcap_lib=libncurses,
234
[AC_CHECK_LIB(curses, tgetent, mysql_cv_termcap_lib=libcurses,
235
[AC_CHECK_LIB(termcap, tgetent, mysql_cv_termcap_lib=libtermcap,
236
[AC_CHECK_LIB(tinfo, tgetent, mysql_cv_termcap_lib=libtinfo,
237
mysql_cv_termcap_lib=NOT_FOUND)])])])])
238
AC_MSG_CHECKING(for termcap functions library)
239
if test "$mysql_cv_termcap_lib" = "NOT_FOUND"; then
240
AC_MSG_ERROR([No curses/termcap library found])
241
elif test "$mysql_cv_termcap_lib" = "libtermcap"; then
242
TERMCAP_LIB=-ltermcap
243
elif test "$mysql_cv_termcap_lib" = "libncurses"; then
244
TERMCAP_LIB=-lncurses
245
elif test "$mysql_cv_termcap_lib" = "libtinfo"; then
250
AC_MSG_RESULT($TERMCAP_LIB)
253
229
dnl Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
254
230
AC_DEFUN([DRIZZLE_SIGNAL_CHECK],