diff options
author | Tom Yu <tlyu@mit.edu> | 1994-07-23 12:27:40 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1994-07-23 12:27:40 +0000 |
commit | a037c858f1030e82d8e6ece7f4e1b0162cfd24bb (patch) | |
tree | 7a8538e4e4cfb2f96b5e7e1e5d6f1d55138a4560 /src/appl/telnet/telnet | |
parent | a07b05d796a73462ca8a9a706965bbe3fdccf7f6 (diff) | |
download | krb5-a037c858f1030e82d8e6ece7f4e1b0162cfd24bb.tar.gz krb5-a037c858f1030e82d8e6ece7f4e1b0162cfd24bb.tar.xz krb5-a037c858f1030e82d8e6ece7f4e1b0162cfd24bb.zip |
autoconf'ing telnet
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4008 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet/telnet')
-rw-r--r-- | src/appl/telnet/telnet/Makefile.in | 63 | ||||
-rw-r--r-- | src/appl/telnet/telnet/configure.in | 24 |
2 files changed, 87 insertions, 0 deletions
diff --git a/src/appl/telnet/telnet/Makefile.in b/src/appl/telnet/telnet/Makefile.in new file mode 100644 index 000000000..bc151ad2a --- /dev/null +++ b/src/appl/telnet/telnet/Makefile.in @@ -0,0 +1,63 @@ +# derived from the original Makefile.generic +# +# Copyright (c) 1991 The Regents of the University of California. +# All rights reserved. +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91 +# + +AUTH_DEF=-DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN +OTHERDEFS=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON +LOCALINCLUDES=-I.. +CFLAGS = $(CCOPTS) $(AUTH_DEF) $(OTHERDEFS) $(DEFS) $(LOCALINCLUDES) +ARPA_TELNET= ../arpa/telnet.h +COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a +K4LIB = $(KRB4)/lib/libkrb.a +KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB) + +SRCS= commands.c main.c network.c ring.c \ + sys_bsd.c telnet.c terminal.c \ + utilities.c $(GETOPT_SRC) +ALLHC= $(SRCS) \ + defines.h externs.h fdset.h general.h \ + ring.h types.h + +OBJS= authenc.o commands.o main.o network.o ring.o sys_bsd.o \ + telnet.o terminal.o utilities.o $(GETOPT_OBJ) + +all:: telnet + +telnet: $(OBJS) + $(CC) -o $@ $(CFLAGS) $(OBJS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS) + +clean:: + $(RM) telnet + +install: $(MAN) FRC + install -s -o bin -g bin -m 755 telnet $(DEST) + install -c -o bin -g bin -m 444 telnet.0 $(DESTDIR)/usr/man/cat1 + +authenc.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET) +commands.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET) +main.o: defines.h externs.h ring.h +network.o: defines.h externs.h fdset.h ring.h $(ARPA_TELNET) +ring.o: general.h ring.h +sys_bsd.o: defines.h externs.h fdset.h ring.h types.h $(ARPA_TELNET) +telnet.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET) +terminal.o: externs.h ring.h types.h $(ARPA_TELNET) +tn3270.o: defines.h externs.h fdset.h general.h ring.h $(ARPA_TELNET) +utilities.o: defines.h externs.h fdset.h general.h ring.h $(ARPA_TELNET) diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in new file mode 100644 index 000000000..61301d6de --- /dev/null +++ b/src/appl/telnet/telnet/configure.in @@ -0,0 +1,24 @@ +AC_INIT(telnet.c) +WITH_CCOPTS +ISODE_DEFS +ISODE_INCLUDE +CONFIG_RULES +AC_SET_BUILDTOP +AC_PROG_INSTALL +KRB_INCLUDE +ISODE_INCLUDE +AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP) +LIBS="$LIBS -ltermcap") +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) +if test -z "$ac_sysv_termio"; then +AC_COMPILE_CHECK([cc_t],[#include <termio.h>], +[cc_t foo;],,AC_DEFINE(NO_CC_T)) +fi +fi +AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS)) +AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H)) +AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS)) +AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT)) +AC_OUTPUT(Makefile,[EXTRA_RULES]) |