From 3f43d8e40871a50f389d4c966bd5cf35da8c9e40 Mon Sep 17 00:00:00 2001
From: Theodore Tso <tytso@mit.edu>
Date: Wed, 14 Apr 1999 16:01:02 +0000
Subject: [PATCH] configure.in: Check for setupterm() in libncurses in addition
 to 	libcurses.  (Will be needed for Linux/Redhat 6.0)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11358 dc483132-0cff-0310-8789-dd5450dbe970
---
 src/appl/telnet/telnet/ChangeLog    | 5 +++++
 src/appl/telnet/telnet/configure.in | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog
index a843a7f05..f8a986b60 100644
--- a/src/appl/telnet/telnet/ChangeLog
+++ b/src/appl/telnet/telnet/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-13    <tytso@rsts-11.mit.edu>
+
+	* configure.in: Check for setupterm() in libncurses in addition to
+		libcurses.  (Will be needed for Linux/Redhat 6.0)
+
 1998-11-13  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Set the myfulldir and mydir variables (which are
diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in
index 2edefa2c7..f7edb158b 100644
--- a/src/appl/telnet/telnet/configure.in
+++ b/src/appl/telnet/telnet/configure.in
@@ -5,8 +5,9 @@ AC_VFORK
 AC_CHECK_HEADERS(string.h arpa/nameser.h unistd.h sys/select.h stdlib.h arpa/inet.h sys/filio.h)
 AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
 LIBS="$LIBS -ltermcap",
-  AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses")
-)
+  AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
+  AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
+))
 AC_CHECK_FUNCS(gettosbyname setupterm)
 AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
 if test -z "$ac_termio"; then
-- 
2.26.2