might get into nasty loops if tcgetent is defined in terms of
setup_term.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8902
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Jul 27 21:34:22 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * telnet.c(setupterm): Only compile if setupterm not present in
+ library; for Debian Linux and others, you get an endless loop
+ because tcgetent is defined in terms of setupterm, and setupterm
+ in telnet calls tcgetent.
+
+ * configure.in : Check for setupterm
+
Mon Jun 3 21:31:37 1996 Tom Yu <tlyu@mit.edu>
* configure.in: Ezra's patches to allow compilation w/o krb4
LIBS="$LIBS -ltermcap",
AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses")
)
+AC_CHECK_FUNCS(setupterm) dnl If we have it, use it so we don't get
+dnl endless loop with tcgetent
AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
if test -z "$ac_termio"; then
AC_HEADER_CHECK(termio.h,AC_DEFINE(SYSV_TERMIO),ac_sysv_termio=1)
return (1);
}
-#ifndef HAS_SETUPTERM
+#ifndef HAVE_SETUPTERM
char termbuf[1024];
/*ARGSUSED*/