Updates to reflect changes in the rest of the telnet code.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@228 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1996-02-04 15:10:30 +00:00
parent c92fc8f075
commit 3cf668db9a
5 changed files with 459 additions and 207 deletions

View File

@@ -8,11 +8,11 @@ Solaris 2.4 X X
DEC OSF/1 2&3 X X
Ultrix 4.4 X (not tested)
AIX 3.2 X X
AIX 4.1 X (doesn't work well)
AIX 4.1 X X
HPUX ? X X
NetBSD X X
Linux X X
IRIX 5 X (not tested)
IRIX 5 X X
See README.ORIG for further details. Some of the options aren't

View File

@@ -63,8 +63,10 @@
/* Define if you have setupterm() */
#undef HAVE_SETUPTERM
/* Define if you have tgetent() */
#undef HAVE_TGETENT
/* */
/* Define if there are working stream ptys */
#undef STREAMSPTY
@BOTTOM@
@@ -81,38 +83,7 @@
#endif
#ifdef HAVE_TGETENT
#define TERMCAP 1
#endif
#if defined(HAVE_TERMIOS_H) || defined(HAVE_TERMIO_H)
#define USE_TERMIO 1
/* If this is not a POSIX boxen use SYSV, this may not work on CRAY
* se telnetd/desf.h */
#ifndef HAVE_TERMIOS_H
#define SYSV_TERMIO
#endif
#endif /* defined(HAVE_TERMIOS_H) || defined(HAVE_TERMIO_H) */
#ifndef HAVE_VFORK
#define vfork fork
#endif
/* os specific tests ahead */
#ifdef sun
#define FILIO_H 1
#define STREAMS 1
#if defined(__svr4__) || defined(__SVR4)
#define SOLARIS
#endif
#endif /* sun */
/* this is left for hysteric reasons :-) */
#ifdef _AIX
#define unix /* well, ok... */
#endif

View File

@@ -11,6 +11,9 @@
#define T_CONFIG_H
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* define this if you want authentication */
#undef AUTHENTICATION
@@ -32,9 +35,6 @@
/* define this if you want diagnostics in telnetd */
#undef DIAGNOSTICS
/* define this if you want support for broken ENV_{VALUE,VAR} systems */
#undef ENV_HACK
/* define this if you want support for 4.3BSD kludged line mode */
#undef KLUDGELINEMODE
@@ -44,22 +44,39 @@
/* Define if you have setupterm() */
#undef HAVE_SETUPTERM
/* */
#undef STREAMSPTY
/* Define if you have tgetent() */
#undef HAVE_TGETENT
#ifdef HAVE_TGETENT
#define TERMCAP 1
#endif
/* Define if there are working stream ptys */
#undef STREAMSPTY
/* Define if you have the cgetent function. */
#undef HAVE_CGETENT
/* Define if you have the cgetstr function. */
#undef HAVE_CGETSTR
/* Define if you have the frevoke function. */
#undef HAVE_FREVOKE
/* Define if you have the gethostbyname function. */
#undef HAVE_GETHOSTBYNAME
/* Define if you have the getmsg function. */
#undef HAVE_GETMSG
/* Define if you have the getstr function. */
#undef HAVE_GETSTR
/* Define if you have the grantpt function. */
#undef HAVE_GRANTPT
/* Define if you have the mktime function. */
#undef HAVE_MKTIME
/* Define if you have the ptsname function. */
#undef HAVE_PTSNAME
/* Define if you have the revoke function. */
#undef HAVE_REVOKE
@@ -78,21 +95,39 @@
/* Define if you have the tgetent function. */
#undef HAVE_TGETENT
/* Define if you have the ttyname function. */
#undef HAVE_TTYNAME
/* Define if you have the uname function. */
#undef HAVE_UNAME
/* Define if you have the vfork function. */
#undef HAVE_VFORK
/* Define if you have the unlockpt function. */
#undef HAVE_UNLOCKPT
/* Define if you have the vhangup function. */
#undef HAVE_VHANGUP
/* Define if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
/* Define if you have the <sys/ptyvar.h> header file. */
#undef HAVE_SYS_PTYVAR_H
/* Define if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define if you have the <sys/stream.h> header file. */
#undef HAVE_SYS_STREAM_H
/* Define if you have the <sys/strtty.h> header file. */
#undef HAVE_SYS_STRTTY_H
/* Define if you have the <sys/tty.h> header file. */
#undef HAVE_SYS_TTY_H
@@ -126,38 +161,7 @@
#endif
#ifdef HAVE_TGETENT
#define TERMCAP 1
#endif
#if defined(HAVE_TERMIOS_H) || defined(HAVE_TERMIO_H)
#define USE_TERMIO 1
/* If this is not a POSIX boxen use SYSV, this may not work on CRAY
* se telnetd/desf.h */
#ifndef HAVE_TERMIOS_H
#define SYSV_TERMIO
#endif
#endif /* defined(HAVE_TERMIOS_H) || defined(HAVE_TERMIO_H) */
#ifndef HAVE_VFORK
#define vfork fork
#endif
/* os specific tests ahead */
#ifdef sun
#define FILIO_H 1
#define STREAMS 1
#if defined(__svr4__) || defined(__SVR4)
#define SOLARIS
#endif
#endif /* sun */
/* this is left for hysteric reasons :-) */
#ifdef _AIX
#define unix /* well, ok... */
#endif

505
appl/telnet/configure vendored
View File

@@ -1,7 +1,7 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.4
# Generated automatically using autoconf version 2.6
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
@@ -42,9 +42,22 @@ target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
ac_prev=
for ac_option
@@ -66,9 +79,14 @@ do
case "$ac_option" in
-build | --build | --buil | --bui | --bu | --b)
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
@@ -78,6 +96,12 @@ do
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir="$ac_optarg" ;;
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
@@ -128,12 +152,29 @@ Configuration:
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=PREFIX install architecture-dependent files in PREFIX
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
EOF
cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
@@ -145,8 +186,10 @@ Features and packages:
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
--enable and --with options recognized:$ac_help
EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
fi
exit 0 ;;
-host | --host | --hos | --ho)
@@ -154,6 +197,44 @@ EOF
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir="$ac_optarg" ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir="$ac_optarg" ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir="$ac_optarg" ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir="$ac_optarg" ;;
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir="$ac_optarg" ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir="$ac_optarg" ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
@@ -166,6 +247,15 @@ EOF
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir="$ac_optarg" ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
@@ -206,6 +296,23 @@ EOF
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir="$ac_optarg" ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir="$ac_optarg" ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
@@ -216,6 +323,13 @@ EOF
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir="$ac_optarg" ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
@@ -225,7 +339,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.4"
echo "configure generated by autoconf version 2.6"
exit 0 ;;
-with-* | --with-*)
@@ -271,7 +385,7 @@ EOF
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
*)
*)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
@@ -390,9 +504,12 @@ fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
$CPP $CPPFLAGS'
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
@@ -460,6 +577,7 @@ else
ac_cv_prog_gcc=no
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
@@ -477,7 +595,8 @@ fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
if test $ac_cv_prog_gcc_g = yes; then
CFLAGS="-g -O"
else
@@ -532,7 +651,7 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 536 "configure"
#line 655 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
@@ -546,7 +665,7 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 550 "configure"
#line 669 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
@@ -634,10 +753,17 @@ else
esac
done
IFS="$ac_save_ifs"
# As a last resort, use the slow shell script.
test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
fi
INSTALL="$ac_cv_path_install"
if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install"
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL="$ac_install_sh"
fi
fi
echo "$ac_t""$INSTALL" 1>&6
@@ -648,12 +774,51 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 783 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if eval $ac_compile; then
rm -rf conftest*
ac_cv_type_signal=void
else
rm -rf conftest*
ac_cv_type_signal=int
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
echo $ac_n "checking for NEXTSTEP""... $ac_c" 1>&6
if eval "test \"`echo '$''{'krb_cv_sys_nextstep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 657 "configure"
#line 822 "configure"
#include "confdefs.h"
#ifdef NeXT
yes
@@ -683,8 +848,8 @@ echo "$ac_t""$krb_cv_sys_nextstep" 1>&6
echo $ac_n "checking for authentication""... $ac_c" 1>&6
# Check whether --enable-authentication or --disable-authentication was given.
enableval="$enable_authentication"
if test -n "$enableval"; then
if test "${enable_authentication+set}" = set; then
enableval="$enable_authentication"
if test "$enableval" = no; then
do_authentication=no
@@ -731,8 +896,8 @@ echo "$ac_t""$telnet_cv_opt_authentication" 1>&6
echo $ac_n "checking for encryption""... $ac_c" 1>&6
# Check whether --enable-encryption or --disable-encryption was given.
enableval="$enable_encryption"
if test -n "$enableval"; then
if test "${enable_encryption+set}" = set; then
enableval="$enable_encryption"
if test "$enableval" = no; then
do_encryption=no
@@ -779,8 +944,8 @@ echo "$ac_t""$telnet_cv_opt_encryption" 1>&6
echo $ac_n "checking for kerberos tree""... $ac_c" 1>&6
telnet_athena_default=yes
# Check whether --with-athena or --without-athena was given.
withval="$with_athena"
if test -n "$withval"; then
if test "${with_athena+set}" = set; then
withval="$with_athena"
case "$withval" in
yes)
@@ -847,8 +1012,8 @@ echo "$ac_t""$telnet_msg" 1>&6
echo $ac_n "checking for default im""... $ac_c" 1>&6
# Check whether --enable-default-im or --disable-default-im was given.
enableval="$enable_default_im"
if test -n "$enableval"; then
if test "${enable_default_im+set}" = set; then
enableval="$enable_default_im"
if test "$enableval" != yes; then
@@ -908,32 +1073,31 @@ EOF
cat >> confdefs.h <<\EOF
#define ENV_HACK 1
EOF
cat >> confdefs.h <<\EOF
#define OLD_ENVIRON 1
EOF
for ac_func in getent herror memmove setenv strdup strerror
#
# AIX needs /lib/pse.exp for getmsg
#
if test -f /lib/pse.exp ; then LIBS="$LIBS -bI:/lib/pse.exp"; fi
for ac_func in getent herror memmove setenv strdup strerror strftime
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 931 "configure"
#line 1095 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
char $ac_func();
int main() { return 0; }
int t() {
@@ -969,21 +1133,20 @@ fi
done
for ac_func in cgetent uname vfork vhangup frevoke revoke setsid setpgid
for ac_func in cgetent getstr cgetstr uname vhangup
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 981 "configure"
#line 1144 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
char $ac_func();
int main() { return 0; }
int t() {
@@ -1011,7 +1174,7 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
@@ -1021,21 +1184,20 @@ else
fi
done
for ac_func in tgetent setupterm
for ac_func in frevoke revoke setsid setpgid getmsg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1033 "configure"
#line 1195 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
char $ac_func();
int main() { return 0; }
int t() {
@@ -1063,7 +1225,58 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_func in tgetent setupterm mktime ptsname ttyname unlockpt grantpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1246 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
int main() { return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
; return 0; }
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
@@ -1078,13 +1291,14 @@ if test $ac_cv_func_tgetent = no; then
# tgetent is not in the default libraries. See if it's in some other.
for lib in termcap; do
echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
ac_lib_var=`echo $lib | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-l$lib $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1088 "configure"
#line 1302 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1094,16 +1308,16 @@ tgetent()
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_lib_$lib=yes"
eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
eval "ac_cv_lib_$lib=no"
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_TGETENT 1
@@ -1121,13 +1335,14 @@ if test $ac_cv_func_setupterm = no; then
# setupterm is not in the default libraries. See if it's in some other.
for lib in curses; do
echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
ac_lib_var=`echo $lib | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-l$lib $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1131 "configure"
#line 1346 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1137,16 +1352,16 @@ setupterm()
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_lib_$lib=yes"
eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
eval "ac_cv_lib_$lib=no"
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SETUPTERM 1
@@ -1169,13 +1384,13 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1173 "configure"
#line 1388 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
char $ac_func();
int main() { return 0; }
int t() {
@@ -1203,7 +1418,7 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
@@ -1215,13 +1430,14 @@ done
if test "$ac_cv_func_socket" = no; then
echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
ac_lib_var=`echo socket | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1225 "configure"
#line 1441 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1231,18 +1447,18 @@ socket()
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_lib_socket=yes"
eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
eval "ac_cv_lib_socket=no"
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | tr '[a-z]' '[A-Z]'`
ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
@@ -1261,13 +1477,13 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1265 "configure"
#line 1481 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
char $ac_func();
int main() { return 0; }
int t() {
@@ -1295,7 +1511,7 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
@@ -1307,13 +1523,14 @@ done
if test "$ac_cv_func_gethostbyname" = no; then
echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
ac_lib_var=`echo nsl | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1317 "configure"
#line 1534 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1323,18 +1540,18 @@ gethostbyname()
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_lib_nsl=yes"
eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
eval "ac_cv_lib_nsl=no"
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'`
ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
@@ -1348,13 +1565,14 @@ fi
fi
echo $ac_n "checking for -lutil""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_util'+set}'`\" = set"; then
ac_lib_var=`echo util | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lutil $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1358 "configure"
#line 1576 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1364,18 +1582,18 @@ logout()
EOF
if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_lib_util=yes"
eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
eval "ac_cv_lib_util=no"
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'util`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo util | tr '[a-z]' '[A-Z]'`
ac_tr_lib=HAVE_LIB`echo util | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
@@ -1389,7 +1607,7 @@ fi
for ac_hdr in termios.h termio.h sys/select.h sys/resource.h sys/tty.h utmpx.h
for ac_hdr in sys/filio.h sys/ioctl.h sys/ptyvar.h sys/resource.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -1397,7 +1615,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1401 "configure"
#line 1619 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
@@ -1415,7 +1633,79 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in sys/select.h sys/stream.h sys/strtty.h sys/tty.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1655 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in termio.h termios.h utmpx.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1691 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
@@ -1426,38 +1716,14 @@ fi
done
#
# Simple test for streamspty, based on the existance of <sys/sac.h>
# Simple test for streamspty, based on the existance of getmsg()
#
echo $ac_n "checking for streamspty""... $ac_c" 1>&6
if eval "test \"`echo '$''{'krb_cv_sys_streamspty'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1441 "configure"
#include "confdefs.h"
#include <sac.h>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
krb_cv_sys_streamspty=yes
else
echo "$ac_err" >&5
rm -rf conftest*
krb_cv_sys_streamspty=no
fi
rm -f conftest*
fi
krb_cv_sys_streamspty="$ac_cv_func_getmsg"
if test "$krb_cv_sys_streamspty" = yes; then
cat >> confdefs.h <<\EOF
@@ -1547,7 +1813,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.4"
echo "$CONFIG_STATUS generated by autoconf version 2.6"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@@ -1560,8 +1826,8 @@ ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "Makefile libtelnet/Makefile telnet/Makefile telnetd/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
$ac_vpsub
$extrasub
@@ -1574,6 +1840,18 @@ s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@CC@%$CC%g
s%@RANLIB@%$RANLIB%g
s%@CPP@%$CPP%g
@@ -1593,7 +1871,6 @@ s%@LIBCOM_ERR@%$LIBCOM_ERR%g
s%@USE_IM@%$USE_IM%g
s%@DIAGNOSTICS@%$DIAGNOSTICS%g
s%@KLUDGELINEMODE@%$KLUDGELINEMODE%g
s%@ENV_HACK@%$ENV_HACK%g
s%@OLD_ENVIRON@%$OLD_ENVIRON%g
s%@LIBOBJS@%$LIBOBJS%g
s%@HAVE_LIBTERMCAP@%$HAVE_LIBTERMCAP%g
@@ -1696,7 +1973,7 @@ EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF

View File

@@ -28,6 +28,8 @@ AC_SUBST(LDFLAGS)dnl
AC_PROG_INSTALL
AC_TYPE_SIGNAL
dnl
dnl NEXTSTEP is not posix compliant by default,
dnl you need a switch -posix to the compiler
@@ -219,17 +221,18 @@ AC_SUBST(DIAGNOSTICS)
AC_DEFINE(KLUDGELINEMODE)
AC_SUBST(KLUDGELINEMODE)
AC_DEFINE(ENV_HACK)
AC_SUBST(ENV_HACK)
AC_DEFINE(OLD_ENVIRON)
AC_SUBST(OLD_ENVIRON)
AC_REPLACE_FUNCS(getent herror memmove setenv strdup strerror)
#
# AIX needs /lib/pse.exp for getmsg
#
if test -f /lib/pse.exp ; then LIBS="$LIBS -bI:/lib/pse.exp"; fi
AC_CHECK_FUNCS(cgetent uname vfork vhangup frevoke revoke setsid setpgid)
AC_CHECK_FUNCS(tgetent setupterm)
AC_REPLACE_FUNCS(getent herror memmove setenv strdup strerror strftime)
AC_CHECK_FUNCS(cgetent getstr cgetstr uname vhangup)
AC_CHECK_FUNCS(frevoke revoke setsid setpgid getmsg)
AC_CHECK_FUNCS(tgetent setupterm mktime ptsname ttyname unlockpt grantpt)
if test $ac_cv_func_tgetent = no; then
# tgetent is not in the default libraries. See if it's in some other.
@@ -262,21 +265,18 @@ AC_CHECK_LIB(util, logout)
AC_SUBST(HAVE_LIBTERMCAP)
AC_CHECK_HEADERS(termios.h termio.h sys/select.h sys/resource.h sys/tty.h utmpx.h)
AC_CHECK_HEADERS(sys/filio.h sys/ioctl.h sys/ptyvar.h sys/resource.h)
AC_CHECK_HEADERS(sys/select.h sys/stream.h sys/strtty.h sys/tty.h)
AC_CHECK_HEADERS(termio.h termios.h utmpx.h)
#
# Simple test for streamspty, based on the existance of <sys/sac.h>
# Simple test for streamspty, based on the existance of getmsg()
#
AC_MSG_CHECKING(for streamspty)
AC_CACHE_VAL(krb_cv_sys_streamspty,
AC_TRY_CPP([#include <sac.h>],[
krb_cv_sys_streamspty=yes
],[
krb_cv_sys_streamspty=no
]))
krb_cv_sys_streamspty="$ac_cv_func_getmsg"
if test "$krb_cv_sys_streamspty" = yes; then
AC_DEFINE(STREAMSPTY)