From 4ecb3164f3932a303485ede355ec91ab6bfb0d1b Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 22 Oct 2002 18:53:10 +0000 Subject: [PATCH] * configure.in: Autoconf 2.55 will not simply use cpp to test for header file existance - the header file must be compilable. This will mean that if one header depends on another, it must be included. Test for term.h using the optional fourth argument to AC_CHECK_HEADERS to specify include files to test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14933 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnet/ChangeLog | 8 ++++++++ src/appl/telnet/telnet/configure.in | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index 65875fa5d..72a0e273d 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -1,3 +1,11 @@ +2002-10-22 Ezra Peisach + + * configure.in: Autoconf 2.55 will not simply use cpp to test for + header file existance - the header file must be compilable. This + will mean that if one header depends on another, it must be + included. Test for term.h using the optional fourth argument to + AC_CHECK_HEADERS to specify include files to test. + 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in index f1f96fa33..c2fbd6342 100644 --- a/src/appl/telnet/telnet/configure.in +++ b/src/appl/telnet/telnet/configure.in @@ -11,7 +11,15 @@ case $krb5_cv_host in fi ;; esac -AC_CHECK_HEADERS(string.h arpa/nameser.h unistd.h sys/select.h stdlib.h arpa/inet.h sys/filio.h curses.h term.h) +AC_CHECK_HEADERS(string.h arpa/nameser.h unistd.h sys/select.h stdlib.h arpa/inet.h sys/filio.h curses.h) +dnl +dnl On some systems, term.h requires curses.h inclusion +AC_CHECK_HEADERS(term.h,,,dnl +[#ifdef HAVE_CURSES_H +#include +#endif +]) +dnl AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP) LIBS="$LIBS -ltermcap", AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses", -- 2.26.2