2 dnl *** PLEASE NOTE ***
3 dnl *** PLEASE NOTE ***
4 dnl *** PLEASE NOTE ***
6 dnl Update $VERSION before making a new release
9 dnl Process this file with autoconf to produce a configure script.
11 AC_REVISION($Revision: 1.432.2.2 $)
12 AC_INIT(lib/krb/getrealm.c)
13 AC_CONFIG_HEADER(include/config.h)
23 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])dnl
24 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])dnl
26 # This may be overridden using --prefix=/usr to configure
27 AC_PREFIX_DEFAULT(/usr/athena)
31 AC_SUBST(CANONICAL_HOST)
33 dnl OS specific defines
47 if test "$sunos" != no; then
48 AC_DEFINE_UNQUOTED(SunOS, $sunos,
49 [Define to what version of SunOS you are running.])
55 # We want these before the checks, so the checks can modify their values.
56 test -z "$LDFLAGS" && LDFLAGS=-g
59 dnl check for programs
71 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, :)
73 dnl Use make Wall or make WFLAGS=".."
76 WFLAGS_NOIMPLICITINT=""
78 AC_SUBST(WFLAGS_NOUNUSED) dnl
79 AC_SUBST(WFLAGS_NOIMPLICITINT) dnl
82 dnl check for build options
85 AC_TEST_PACKAGE_NEW(socks,[#include <socks.h>],-lsocks5)
86 CFLAGS="$INCLUDE_socks $CFLAGS"
87 LIBS="$LIB_socks $LIBS"
89 AC_ARG_ENABLE(legacy-kdestroy,
90 [ --enable-legacy-kdestroy kdestroy doesn't destroy tokens by default],[
91 if test "$enableval" = "yes"; then
92 AC_DEFINE(LEGACY_KDESTROY,1, [Define to enable old kdestroy behavior.])
96 AC_ARG_ENABLE(match-subdomains,
97 [ --enable-match-subdomains match realm in subdomains],
98 [if test "$enableval" = "yes"; then
99 AC_DEFINE(MATCH_SUBDOMAINS,1, [Define if you want to match subdomains.])
103 AC_ARG_WITH(ld-flags,
104 [ --with-ld-flags=flags what flags use when linking])
106 AC_ARG_WITH(cracklib,
107 [ --with-cracklib=dir use the cracklib.a in dir],
110 AC_ARG_WITH(dictpath,
111 [ --with-dictpath=path use this dictionary with cracklib]
114 (test -z "$with_cracklib" && test -n "$with_dictpath") ||
115 (test -n "$with_cracklib" && test -z "$with_dictpath") &&
116 AC_MSG_ERROR(--with-cracklib requires --with-dictpath and vice versa)
117 test -n "$with_cracklib" &&
118 CRACKLIB="-L$with_cracklib -lcrack" &&
119 AC_MSG_RESULT(Using cracklib in $with_cracklib)
120 AC_SUBST(CRACKLIB)dnl
121 test -n "$with_dictpath" &&
122 AC_MSG_RESULT(Using dictpath=$with_dictpath) &&
123 AC_DEFINE_UNQUOTED(DICTPATH,"$with_dictpath", [Define this to be the directory where the
124 dictionary for cracklib resides.])
126 AC_ARG_WITH(mailspool,
127 [ --with-mailspool=dir this is the mail spool directory]
130 test -n "$with_mailspool" &&
131 AC_DEFINE_UNQUOTED(KRB4_MAILDIR, "$with_mailspool", [Define this to the path of the mail spool directory.])
134 [ --with-db-dir=dir this is the database directory (default /var/kerberos)])
136 test -n "$with_db_dir" &&
137 AC_DEFINE_UNQUOTED(DB_DIR, "$with_db_dir", [Define this to the kerberos database directory.])
139 AC_ARG_ENABLE(random-mkey,
140 [ --enable-random-mkey use new code for master keys],[
141 if test "$enableval" = "yes"; then
142 AC_DEFINE(RANDOM_MKEY,1, [Define to enable new master key code.])
147 [ --with-mkey=file where to put the master key],[
148 if test -n "$withval"; then
149 AC_DEFINE_UNQUOTED(MKEYFILE,"$withval", [Define this to the location of the master key.])
155 [ --disable-otp if you don't want OTP support],
157 if test "$enableval" = "no"; then
162 if test "$otp" = "yes"; then
164 LIB_otp='-L$(top_builddir)/lib/otp -lotp'
166 LIB_SUBDIRS="$LIB_SUBDIRS otp"
175 [ --disable-mmap disable use of mmap],
177 if test "$enableval" = "no"; then
181 if test "$mmap" = "no"; then
182 AC_DEFINE(NO_MMAP, 1, [Define if you don't want to use mmap.])
186 AC_ARG_ENABLE(dynamic-afs,
187 [ --disable-dynamic-afs don't use loaded AFS library with AIX],[
188 if test "$enableval" = "no"; then
194 AC_ARG_WITH(berkeley-db,
195 [ --without-berkeley-db if you don't want berkeley db],[
196 if test "$withval" = no; then
202 AC_ARG_WITH(afs-support,
203 [ --without-afs-support if you don't want support for afs],[
204 if test "$withval" = no; then
205 AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.])
211 AC_ARG_WITH(des-quad-checksum,
212 [ --with-des-quad-checksum=kind
213 default checksum to use (new, old, or guess)],[
216 if test "$des_quad" = "new"; then
218 elif test "$des_quad" = "old"; then
223 AC_DEFINE_UNQUOTED(DES_QUAD_DEFAULT,$ac_x,
224 [Set this to the type of des-quad-cheksum to use.])
227 [ --with-afsws=dir use AFS includes and libraries from dir=/usr/afsws],
231 test "$AFSWS" = "yes" && AFSWS=/usr/afsws
235 [ --enable-rxkad build rxkad library],,[
236 test -f $AFSWS/include/rx/rx.h && enable_rxkad=yes
239 if test "$afs_support" = yes -a "$enable_rxkad" = yes; then
240 LIB_SUBDIRS="$LIB_SUBDIRS rxkad"
242 AC_SUBST(LIB_SUBDIRS)
244 AC_ARG_ENABLE(cat-manpages,
245 [ --disable-cat-manpages don't install any preformatted manpages],
247 if test "$enableval" = "no"; then
248 disable_cat_manpages=yes
252 AC_SUBST(disable_cat_manpages)dnl
254 AC_TEST_PACKAGE_NEW(readline,[
256 #include <readline.h>
261 AC_TEST_PACKAGE_NEW(hesiod,[#include <hesiod.h>],-lhesiod)
266 dnl Check for endian-ness, this breaks cross compilation
271 dnl Check for constness
276 dnl Check for inline keyword
281 dnl Check for __attribute__
286 dnl Check for strange operating systems that you need to handle differently
292 if test "$krb_cv_sys_aix" = yes ;then
293 if test "$aix_dynamic_afs" = yes; then
295 AFS_EXTRA_LIBS=afslib.so
296 # this works differently in AIX <=3 and 4
297 if test `uname -v` = 4 ; then
298 AFS_EXTRA_LD="-bnoentry"
300 AFS_EXTRA_LD="-e _nostart"
303 AC_FIND_FUNC_NO_LIBS(dlopen, dl)
304 if test "$ac_cv_funclib_dlopen" = yes; then
306 elif test "$ac_cv_funclib_dlopen" != no; then
307 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
309 AFS_EXTRA_OBJS="$AFS_EXTRA_OBJS dlfcn.o"
313 AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
315 AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
318 AC_SUBST(AFS_EXTRA_OBJS)dnl
319 AC_SUBST(AFS_EXTRA_LIBS)dnl
320 AC_SUBST(AFS_EXTRA_LD)dnl
321 AC_SUBST(AFS_EXTRA_DEFS)dnl
322 AC_SUBST(AIX_EXTRA_KAFS)dnl
326 # AIX needs /lib/pse.exp for getmsg, but alas that file is broken in
332 if test -f /lib/pse.exp ;then
333 LIBS="$LIBS -Wl,-bnolibpath -Wl,-bI:/lib/pse.exp"
339 dnl Various checks for headers and their contents
344 AC_CHECK_HEADERS([arpa/ftp.h \
374 netinet/in6_machtypes.h \
383 security/pam_modules.h \
443 CHECK_NETINET_IP_AND_TCP
447 if test "$ac_cv_header_err_h" != yes; then
448 EXTRA_HEADERS="$EXTRA_HEADERS err.h"
450 if test "$ac_cv_header_fnmatch_h" != yes; then
451 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS fnmatch.h"
453 AC_SUBST(EXTRA_HEADERS)
454 AC_SUBST(EXTRA_LOCL_HEADERS)
456 AC_GROK_TYPES(int8_t int16_t int32_t int64_t)
457 AC_GROK_TYPES(u_int8_t u_int16_t u_int32_t u_int64_t)
459 AC_MSG_CHECKING(for strange sys/bitypes.h)
460 AC_CACHE_VAL(krb_cv_int8_t_ifdef, [
462 #ifdef HAVE_SYS_TYPES_H
463 #include <sys/types.h>
465 #ifdef HAVE_SYS_BITYPES_H
466 #include <sys/bitypes.h>
468 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
469 #include <netinet/in6_machtypes.h>
474 krb_cv_int8_t_ifdef=no,
475 krb_cv_int8_t_ifdef=yes)])
476 AC_MSG_RESULT($krb_cv_int8_t_ifdef)
477 if test "$krb_cv_int8_t_ifdef" = "yes"; then
478 AC_DEFINE(HAVE_STRANGE_INT8_T, 1, [Huh?])dnl
482 dnl Various checks for libraries and their contents
485 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
488 dnl System V is have misplaced the socket routines, should really be in libc
491 AC_FIND_FUNC(socket, socket,
492 [#ifdef HAVE_SYS_TYPES_H
493 #include <sys/types.h>
495 #ifdef HAVE_SYS_SOCKET_H
496 #include <sys/socket.h>
499 AC_FIND_FUNC(gethostbyname, nsl,
500 [#ifdef HAVE_SYS_TYPES_H
501 #include <sys/types.h>
503 #ifdef HAVE_SYS_SOCKET_H
504 #include <sys/socket.h>
509 dnl Horror AIX needs -lodm -lcfg to link login
512 AC_FIND_FUNC(odm_initialize, odm)
513 AC_FIND_FUNC(getattr, cfg)
514 AC_FIND_FUNC(setpcred, s)
515 AC_FIND_FUNC(logwtmp, util)
517 AC_FIND_FUNC(logout, util)
518 AC_FIND_FUNC_NO_LIBS(tgetent, termcap ncurses curses)
521 dnl See if there is any X11 present
524 if test "$no_x" = "yes" ; then
526 MAKE_X_PROGS_LIBEXEC=""
528 MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
529 MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
531 AC_SUBST(MAKE_X_PROGS_BIN)dnl
532 AC_SUBST(MAKE_X_PROGS_LIBEXEC)dnl
537 dnl Look for berkeley db, gdbm, and ndbm in that order.
540 KRB_FIND_DB("" $berkeley_db gdbm ndbm)
542 AC_FIND_FUNC(syslog, syslog)
547 if test "$ac_cv_func_glob_working" != yes; then
548 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS glob.h"
549 LIBOBJS="$LIBOBJS glob.o"
604 yp_get_default_domain \
609 AC_CHECK_GETPWNAM_R_POSIX
611 AC_FIND_FUNC_NO_LIBS(getsockopt,,
612 [#ifdef HAVE_SYS_TYPES_H
613 #include <sys/types.h>
615 #ifdef HAVE_SYS_SOCKET_H
616 #include <sys/socket.h>
619 AC_FIND_FUNC_NO_LIBS(setsockopt,,
620 [#ifdef HAVE_SYS_TYPES_H
621 #include <sys/types.h>
623 #ifdef HAVE_SYS_SOCKET_H
624 #include <sys/socket.h>
629 AC_CHECK_FUNCS(getudbnam setlim)
631 AC_FIND_FUNC(res_search, resolv,
634 #ifdef HAVE_SYS_TYPES_H
635 #include <sys/types.h>
637 #ifdef HAVE_NETINET_IN_H
638 #include <netinet/in.h>
640 #ifdef HAVE_ARPA_NAMESER_H
641 #include <arpa/nameser.h>
649 AC_FIND_FUNC(dn_expand, resolv,
652 #ifdef HAVE_SYS_TYPES_H
653 #include <sys/types.h>
655 #ifdef HAVE_NETINET_IN_H
656 #include <netinet/in.h>
658 #ifdef HAVE_ARPA_NAMESER_H
659 #include <arpa/nameser.h>
667 AC_SUBST(LIB_res_search)dnl
668 AC_SUBST(LIB_dn_expand)dnl
675 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
680 if test "$ac_cv_func_hstrerror" = yes; then
688 AC_BROKEN(chown copyhostent daemon err errx fchown flock fnmatch freehostent)
689 AC_BROKEN(getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname)
690 AC_BROKEN(geteuid getgid getegid)
691 AC_BROKEN(getopt getusershell)
692 AC_BROKEN(inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat)
694 AC_BROKEN(mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid)
695 AC_BROKEN(strcasecmp strncasecmp strdup strerror strftime)
696 AC_BROKEN(strlcat strlcpy strlwr)
697 AC_BROKEN(strndup strnlen strptime strsep strtok_r strupr)
698 AC_BROKEN(swab unsetenv verr verrx vsyslog)
699 AC_BROKEN(vwarn vwarnx warn warnx writev)
701 if test "$ac_cv_func_gethostname" = "yes"; then
703 #include <unistd.h>],
707 if test "$ac_cv_func_mkstemp" = "yes"; then
709 #include <unistd.h>],
713 if test "$ac_cv_func_inet_aton" = "yes"; then
715 #ifdef HAVE_SYS_TYPES_H
716 #include <sys/types.h>
718 #ifdef HAVE_SYS_SOCKET_H
719 #include <sys/socket.h>
721 #ifdef HAVE_NETINET_IN_H
722 #include <netinet/in.h>
724 #ifdef HAVE_ARPA_INET_H
725 #include <arpa/inet.h>
730 AC_CACHE_CHECK(if realloc is broken, ac_cv_func_realloc_broken, [
731 ac_cv_func_realloc_broken=no
738 return realloc(NULL, 17) == NULL;
740 ],:, ac_cv_func_realloc_broken=yes, :)
742 if test "$ac_cv_func_realloc_broken" = yes ; then
743 AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL, X) doesn't work.])
746 AC_KRB_FUNC_GETCWD_BROKEN
749 dnl Figure what authentication modules should be built
752 AC_MSG_CHECKING(which authentication modules should be built)
756 if test "$ac_cv_header_siad_h" = yes; then
757 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
760 if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
761 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
766 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
770 AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
772 AC_SUBST(LIB_AUTH_SUBDIRS)dnl
775 dnl Figure out if we have tunnels
778 AC_MSG_CHECKING(for tunnel devices)
782 if test "$ac_cv_header_net_if_tun_h" = "yes"; then
786 AC_MSG_RESULT($ac_cv_header_net_if_tun_h)
788 AC_SUBST(APPL_KIP_DIR)dnl
791 dnl Checks for prototypes and declarations
795 #ifdef HAVE_SYS_TYPES_H
796 #include <sys/types.h>
798 #ifdef HAVE_SYS_SOCKET_H
799 #include <sys/socket.h>
801 #ifdef HAVE_NETINET_IN_H
802 #include <netinet/in.h>
804 #ifdef HAVE_ARPA_INET_H
805 #include <arpa/inet.h>
811 gethostbyname, struct hostent *gethostbyname(const char *))
814 #ifdef HAVE_SYS_TYPES_H
815 #include <sys/types.h>
817 #ifdef HAVE_SYS_SOCKET_H
818 #include <sys/socket.h>
820 #ifdef HAVE_NETINET_IN_H
821 #include <netinet/in.h>
823 #ifdef HAVE_ARPA_INET_H
824 #include <arpa/inet.h>
830 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
833 #ifdef HAVE_SYS_TYPES_H
834 #include <sys/types.h>
836 #ifdef HAVE_SYS_SOCKET_H
837 #include <sys/socket.h>
839 #ifdef HAVE_NETINET_IN_H
840 #include <netinet/in.h>
842 #ifdef HAVE_ARPA_INET_H
843 #include <arpa/inet.h>
849 getservbyname, struct servent *getservbyname(const char *, const char *))
856 openlog, void openlog(const char *, int, int))
895 AC_CHECK_VAR([#ifdef HAVE_SYS_TYPES_H
896 #include <sys/types.h>
903 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
908 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
913 AC_CHECK_VAR([#ifdef HAVE_ERR_H
915 #endif],[__progname])
917 AC_CHECK_DECLARATION([#include <stdlib.h>
921 AC_CHECK_DECLARATION([#include <stdlib.h>
925 AC_CHECK_DECLARATION([#include <stdlib.h>
929 AC_CHECK_DECLARATION([#include <stdlib.h>
934 AC_CHECK_DECLARATION([#include <stdlib.h>], environ)
937 dnl According to ANSI you are explicitly allowed to cast to void,
938 dnl but the standard fails to say what should happen. Some compilers
939 dnl think this is illegal:
946 dnl Thus explicitly test for void
949 if test "$ac_cv_type_signal" = "void" ; then
950 AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if RETSIGTYPE == void.])
954 dnl Check for fields in struct utmp
957 AC_HAVE_STRUCT_FIELD(struct utmp, ut_addr,
958 [#include <sys/types.h>
960 AC_HAVE_STRUCT_FIELD(struct utmp, ut_host,
961 [#include <sys/types.h>
963 AC_HAVE_STRUCT_FIELD(struct utmp, ut_id,
964 [#include <sys/types.h>
966 AC_HAVE_STRUCT_FIELD(struct utmp, ut_pid,
967 [#include <sys/types.h>
969 AC_HAVE_STRUCT_FIELD(struct utmp, ut_type,
970 [#include <sys/types.h>
972 AC_HAVE_STRUCT_FIELD(struct utmp, ut_user,
973 [#include <sys/types.h>
975 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_exit,
976 [#include <sys/types.h>
978 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_syslen,
979 [#include <sys/types.h>
983 dnl Check for fields in struct tm
986 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
987 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
990 dnl or do we have a variable `timezone' ?
997 AC_HAVE_TYPE([sa_family_t],[#include <sys/socket.h>])
999 AC_HAVE_TYPE([struct sockaddr_storage], [#include <sys/socket.h>])
1003 AC_STRUCT_ST_BLKSIZE
1006 dnl Check for struct winsize
1009 AC_KRB_STRUCT_WINSIZE
1012 dnl Check for some common types
1020 AC_CHECK_TYPE_EXTRA(ssize_t, int, [
1021 #ifdef HAVE_UNISTD_H
1026 dnl Check for broken ultrix sys/socket.h
1029 AC_MSG_CHECKING(for broken sys/socket.h)
1030 AC_CACHE_VAL(krb_cv_header_sys_socket_h_broken, [
1032 [#include <sys/types.h>
1033 #include <sys/socket.h>
1034 #include <sys/socket.h>],[],
1035 krb_cv_header_sys_socket_h_broken=no,
1036 krb_cv_header_sys_socket_h_broken=yes)])
1037 AC_MSG_RESULT($krb_cv_header_sys_socket_h_broken)
1038 AC_SUBST(krb_cv_header_sys_socket_h_broken)
1041 dnl Check for broken ultrix netdb.h
1044 AC_MSG_CHECKING(for broken netdb.h)
1045 AC_CACHE_VAL(krb_cv_header_netdb_h_broken, [
1047 [#include <sys/types.h>
1049 #include <netdb.h>],[],
1050 krb_cv_header_netdb_h_broken=no,
1051 krb_cv_header_netdb_h_broken=yes)])
1052 AC_MSG_RESULT($krb_cv_header_netdb_h_broken)
1053 AC_SUBST(krb_cv_header_netdb_h_broken)
1054 if test "$krb_cv_header_netdb_h_broken" = "yes"; then
1055 EXTRA_HEADERS="$EXTRA_HEADERS netdb.h"
1059 dnl Check for sa_len in sys/socket.h
1062 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
1063 #include <sys/socket.h>])
1066 dnl Check for ouid in sys/siad.h
1069 if test "$ac_cv_header_siad_h" = yes; then
1070 AC_HAVE_STRUCT_FIELD(SIAENTITY, ouid, [#include <siad.h>])
1074 dnl you can link with getmsg on AIX 3.2 but you cannot run the program
1077 AC_CHECK_FUNCS(getmsg)
1079 if test "$ac_cf_func_getmsg" = "yes"; then
1081 AC_CACHE_CHECK(for working getmsg, ac_cv_func_getmsg,
1088 getmsg(open("/dev/null", 0), NULL, NULL, NULL);
1091 ], ac_cv_func_getmsg=yes, ac_cv_func_getmsg=no, ac_cv_func_getmsg=no))
1092 test "$ac_cv_func_getmsg" = "yes" &&
1093 AC_DEFINE(HAVE_GETMSG, 1, [Define if you have a working getmsg.])
1098 dnl Tests for editline
1103 AC_FIND_FUNC_NO_LIBS(el_init, edit, [], [], [$LIB_tgetent])
1104 if test "$ac_cv_func_el_init" = yes ; then
1105 AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
1106 AC_TRY_COMPILE([#include <stdio.h>
1107 #include <histedit.h>],
1108 [el_init("", NULL, NULL, NULL);],
1109 ac_cv_func_el_init_four=yes,
1110 ac_cv_func_el_init_four=no)])
1111 if test "$ac_cv_func_el_init_four" = yes; then
1112 AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.])
1119 LIBS="$LIB_tgetent $LIBS"
1120 AC_FIND_FUNC_NO_LIBS(readline, edit readline)
1123 if test "$with_readline" -a "$with_readline" != "no"; then
1125 elif test "$ac_cv_func_readline" = yes; then
1127 elif test "$ac_cv_func_el_init" = yes; then
1129 LIB_readline="-L\$(top_builddir)/lib/editline -lel_compat $LIB_el_init"
1130 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1132 LIB_readline='-L$(top_builddir)/lib/editline -leditline'
1133 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1135 LIB_readline="$LIB_readline \$(LIB_tgetent)"
1136 AC_DEFINE(HAVE_READLINE, 1, [Define if you have a readline function.])dnl XXX
1137 AC_SUBST(LIB_readline)
1138 AC_SUBST(INCLUDE_readline)
1141 dnl telnet muck --------------------------------------------------
1143 AC_DEFINE(AUTHENTICATION)dnl
1145 AC_DEFINE(ENCRYPTION)dnl
1146 AC_DEFINE(DES_ENCRYPTION)dnl
1147 AC_DEFINE(DIAGNOSTICS)dnl
1148 AC_DEFINE(OLD_ENVIRON)dnl
1150 # Simple test for streamspty, based on the existance of getmsg(), alas
1151 # this breaks on SunOS4 which have streams but BSD-like ptys
1153 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
1155 AC_MSG_CHECKING(for streamspty)
1156 case "`uname -sr`" in
1157 SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.10.*)
1158 krb_cv_sys_streamspty=no
1161 os_rel=`uname -v`.`uname -r`
1162 if expr "$os_rel" : "3*" >/dev/null 2>&1; then
1163 krb_cv_sys_streamspty=no
1165 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
1169 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
1172 if test "$krb_cv_sys_streamspty" = yes; then
1173 AC_DEFINE(STREAMSPTY, 1, [Define if you have working stream ptys.])
1175 dnl AC_SUBST(STREAMSPTY)
1176 AC_MSG_RESULT($krb_cv_sys_streamspty)
1178 AC_MSG_CHECKING([if /bin/ls takes -A])
1179 if /bin/ls -A > /dev/null 2>&1 ;then
1180 AC_DEFINE(HAVE_LS_A, 1, [Define if /bin/ls has a \`-A' flag.])
1185 AC_MSG_RESULT($krb_ls_a)
1187 dnl ------------------------------------------------------------
1188 AC_CACHE_CHECK(for suffix of preformatted manual pages, krb_cv_sys_cat_suffix,
1189 if grep _version /etc/man.conf > /dev/null 2>&1; then
1190 krb_cv_sys_cat_suffix=0
1192 krb_cv_sys_cat_suffix=number
1194 if test "$krb_cv_sys_cat_suffix" = number; then
1201 dnl ------------------------------------------------------------
1203 KRB_KAFS_LIB="-L\$(top_builddir)/lib/kafs -lkafs $AIX_EXTRA_KAFS"
1204 AC_SUBST(KRB_KAFS_LIB)dnl
1206 dnl ------------------------------------------------------------
1209 dnl This is done by AC_OUTPUT but we need the result here.
1211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1212 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1214 for i in bin lib libexec sbin; do
1216 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
1219 while test "x$y" != "x$x"; do
1223 AC_DEFINE_UNQUOTED($foo,"$x")
1227 dnl We are all set to emit the Makefiles and config.h
1232 include/sys/Makefile \
1237 lib/com_err/Makefile \
1244 lib/roken/Makefile \
1247 lib/editline/Makefile \
1248 lib/rxkad/Makefile \
1250 lib/auth/pam/Makefile \
1251 lib/auth/sia/Makefile \
1252 lib/auth/afskauthlib/Makefile \
1262 appl/afsutil/Makefile \
1264 appl/ftp/common/Makefile \
1265 appl/ftp/ftp/Makefile \
1266 appl/ftp/ftpd/Makefile \
1267 appl/telnet/Makefile \
1268 appl/telnet/libtelnet/Makefile \
1269 appl/telnet/telnet/Makefile \
1270 appl/telnet/telnetd/Makefile \
1272 appl/kauth/Makefile \
1273 appl/popper/Makefile \
1274 appl/movemail/Makefile \
1275 appl/push/Makefile \
1276 appl/sample/Makefile \
1277 appl/xnlock/Makefile \
1282 etc/inetd.conf.changes \
1283 ) dnl end of AC_OUTPUT