+Fri Nov 18 01:23:13 1994 Mark Eichin <eichin@cygnus.com>
+
+ * Makefile.in (install): install telnetd manpage
+ (from Ted Lemon <mellon@ipd.wellsfargo.com>).
+
+Fri Nov 18 00:44:05 1994 Mark Eichin <eichin@cygnus.com>
+
+ * configure.in: use WITH_KRB4, cache cc_t in termio check, cache
+ SETPGRP_TWOARG check.
+ * Makefile.in (K4LIB): use @K4LIB@.
+ (telnetd): use $(K4LIB). (from epeisach)
+
Mon Nov 7 22:16:51 1994 Theodore Y. Ts'o (tytso@dcl)
* configure.in:
CFLAGS = $(CCOPTS) $(AUTH_DEF) $(OTHERDEFS) $(DEFS) $(LOCALINCLUDES)
ARPA_TELNET= $(srcdir)/../arpa/telnet.h
COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-K4LIB = $(KRB4)/lib/libkrb.a
+K4LIB = @K4LIB@
KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB)
all:: telnetd
telnetd: $(OBJS) $(DEPKLIB)
- $(CC) -o $@ $(CFLAGS) $(OBJS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
+ $(CC) -o $@ $(CFLAGS) $(OBJS) ../libtelnet/libtelnet.a $(KLIB) $(K4LIB) $(LIBS)
clean::
$(RM) telnetd
install::
$(INSTALL_PROGRAM) telnetd $(DESTDIR)$(SERVER_BINDIR)/telnetd
+ $(INSTALL_DATA) telnetd.8 ${DESTDIR}$(SERVER_MANDIR)/telnetd.8
authenc.o: telnetd.h
global.o: defs.h ext.h $(ARPA_TELNET)
AC_SET_BUILDTOP
AC_PROG_INSTALL
KRB_INCLUDE
+WITH_KRB4
+AC_ARG_WITH([krb4],,
+K4LIB="$(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes.a",
+K4LIB=)
+AC_SUBST(K4LIB)
ISODE_INCLUDE
AC_CHECK_LIB(ndbm,main)
AC_CHECK_LIB(socket,main)
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))
+ AC_MSG_CHECKING([for cc_t in termio.h])
+ AC_CACHE_VAL(krb_cv_type_cc_t,
+ [AC_TRY_LINK([cc_t],[#include <termio.h>],
+ [cc_t foo;],krb_cv_type_cc_t=yes,krb_cv_type_cc_t=no)])
+ AC_MSG_RESULT($krb_cv_type_cc_t)
+ if test $krb_cv_type_cc_t = no; then
+ AC_DEFINE(NO_CC_T)
+ fi
fi
fi
AC_HEADER_TIME
AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
AC_HEADER_CHECK(utmpx.h,AC_DEFINE(UTMPX))
AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
-AC_COMPILE_CHECK([number of arguments to setpgrp],
+AC_MSG_CHECKING([if setpgrp takes two arguments])
+dnl
+AC_CACHE_VAL(krb5_cv_sys_setpgrp_two,
+[AC_TRY_LINK(
[#include <unistd.h>],[setpgrp(0,0)],
-AC_DEFINE(SETPGRP_TWOARG))
+krb5_cv_sys_setpgrp_two=yes,krb5_cv_sys_setpgrp_two=no)])
+AC_MSG_RESULT($krb5_cv_sys_setpgrp_two)
+if test $krb5_cv_sys_setpgrp_two = yes; then
+ AC_DEFINE(SETPGRP_TWOARG)
+fi
V5_AC_OUTPUT_MAKEFILE