Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
discuss@menelaus.mit.edu: [1110] in Kerberos-V5-bugs [1110] in Kerberos-V5-bugs home help back first fref pref prev next nref lref last post Support for specifying resolver library daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU) Wed Mar 1 10:52:31 1995 From: epeisach@MIT.EDU Date: Wed, 1 Mar 1995 10:51:55 -0500 To: krb5-bugs@MIT.EDU On some platforms, libsocket.a exists, but is broken. (i.e. on the SGI running 5.2). (broken means wrt the resolver portion). After discussing this with Ted, we came up with an optional configuration option where one could specify what network libraries to use. This option would replace the test for the socket and nsl libraries. (i.e. if you specify the option, the test for the socket libary would never be made). The option is: --with-netlib which is equivalent to --without-netlib --with-netlib=libs where libs might be -lresolv "-L/usr/athena/lib -lresolv" Specifying --withlib= will not work. So for the SGI, compiling would require: --with-netlib I also have provided a simpletest program of the resolve library that will fit under tests/resolve. When run (with an optional hostname), it will lookup the address of the host and then get the hostname based on the address.. If the domain name is not attached to the name, then there is a problem with the resolve library. Of course, with a proper entry in /etc/hosts this will pass, but one could try to resolve hosts which are not in there. When no hostname is given, the hostname of the local host is used. The changes are: a) new entry in aclocal.m4 - the other line --with-linker is to make it look nice when configure --help is used b) top level configure.in - added the netlib support in there so configure --help would work. c) All the other configure.in's that had the check for the socket library. The test program might need porting to other platforms - I only tested under OSF/1 and IRIX 5.2. (It would be the structure portion that would need work). Ezra =================================================================== RCS file: /mit/krb5/.cvsroot/src/aclocal.m4,v retrieving revision 1.45 diff -c -r1.45 aclocal.m4 *** aclocal.m4 1995/02/28 08:01:31 1.45 --- aclocal.m4 1995/03/01 12:39:30 *************** *** 348,354 **** dnl define(WITH_LINKER,[ AC_ARG_WITH([linker], ! [ --with-linker=LINKER select linker to use], AC_MSG_RESULT(LD=$withval) LD=$withval, if test -z "$LD" ; then LD=$CC; fi --- 348,354 ---- dnl define(WITH_LINKER,[ AC_ARG_WITH([linker], ! [ --with-linker=LINKER select linker to use], AC_MSG_RESULT(LD=$withval) LD=$withval, if test -z "$LD" ; then LD=$CC; fi *************** *** 630,632 **** --- 630,649 ---- AC_DEFINE(POSIX_FILE_LOCKS) fi ])])dnl + dnl + dnl WITH_NETLIB + dnl + dnl + define(WITH_NETLIB,[ + AC_ARG_WITH([netlib], + [ --with-netlib[=libs] use user defined resolve library], + if test "$withval" = yes -o "$withval" = no ; then + AC_MSG_RESULT("netlib will link with C library resolver only") + else + LIBS="$LIBS $withval" + AC_MSG_RESULT("netlib will use \'$withval\'") + fi + ,dnl + [AC_CHECK_LIB(socket,main) + AC_CHECK_LIB(nsl,main)] + )])dnl =================================================================== RCS file: /mit/krb5/.cvsroot/src/configure.in,v retrieving revision 1.12 diff -c -r1.12 configure.in *** configure.in 1995/02/03 17:03:58 1.12 --- configure.in 1995/02/27 17:36:25 *************** *** 4,9 **** --- 4,10 ---- AC_SET_BUILDTOP WITH_KRB5ROOT WITH_KRB4 + WITH_NETLIB AC_ARG_ENABLE([athena], [ --enable-athena build with MIT Project Athena configuration],,) CONFIG_DIRS(util include $isode lib kdc admin kadmin slave clients appl tests) =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/aname/configure.in,v retrieving revision 1.10 diff -c -r1.10 configure.in *** configure.in 1994/10/26 05:42:33 1.10 --- configure.in 1995/02/27 17:33:05 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/convert/configure.in,v retrieving revision 1.11 diff -c -r1.11 configure.in *** configure.in 1994/10/26 05:42:35 1.11 --- configure.in 1995/02/27 17:33:06 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/create/configure.in,v retrieving revision 1.10 diff -c -r1.10 configure.in *** configure.in 1994/10/26 05:42:38 1.10 --- configure.in 1995/02/27 17:33:06 *************** *** 4,11 **** WITH_KRB5ROOT AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 4,10 ---- WITH_KRB5ROOT AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/destroy/configure.in,v retrieving revision 1.10 diff -c -r1.10 configure.in *** configure.in 1994/10/26 05:42:40 1.10 --- configure.in 1995/02/27 17:33:06 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/edit/configure.in,v retrieving revision 1.14 diff -c -r1.14 configure.in *** configure.in 1995/02/14 22:57:33 1.14 --- configure.in 1995/02/27 17:33:07 *************** *** 7,14 **** AC_HAVE_HEADERS(unistd.h sys/timeb.h alloca.h) AC_HAVE_FUNCS(ftime timezone) AC_CONST ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HAVE_FUNCS(getcwd) --- 7,13 ---- AC_HAVE_HEADERS(unistd.h sys/timeb.h alloca.h) AC_HAVE_FUNCS(ftime timezone) AC_CONST ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HAVE_FUNCS(getcwd) =================================================================== RCS file: /mit/krb5/.cvsroot/src/admin/stash/configure.in,v retrieving revision 1.10 diff -c -r1.10 configure.in *** configure.in 1994/10/26 05:42:45 1.10 --- configure.in 1995/02/27 17:33:07 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/bsd/configure.in,v retrieving revision 5.43 diff -c -r5.43 configure.in *** configure.in 1995/01/18 06:11:27 5.43 --- configure.in 1995/02/27 17:33:07 *************** *** 5,12 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) dnl dbm libs for use of an_to_ln AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) --- 5,11 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB dnl dbm libs for use of an_to_ln AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/gss-sample/configure.in,v retrieving revision 1.5 diff -c -r1.5 configure.in *** configure.in 1994/10/26 05:42:53 1.5 --- configure.in 1995/02/27 17:33:09 *************** *** 2,9 **** WITH_CCOPTS CONFIG_RULES AC_SET_BUILDTOP ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_HAVE_HEADERS(unistd.h) KRB_INCLUDE ISODE_INCLUDE --- 2,8 ---- WITH_CCOPTS CONFIG_RULES AC_SET_BUILDTOP ! WITH_NETLIB AC_HAVE_HEADERS(unistd.h) KRB_INCLUDE ISODE_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/mailquery/configure.in,v retrieving revision 1.5 diff -c -r1.5 configure.in *** configure.in 1994/10/26 05:42:55 1.5 --- configure.in 1995/02/27 17:33:09 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_HAVE_HEADERS(unistd.h) WITH_KRB5ROOT AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR)) --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_HAVE_HEADERS(unistd.h) WITH_KRB5ROOT AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR)) =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/movemail/configure.in,v retrieving revision 5.5 diff -c -r5.5 configure.in *** configure.in 1994/10/26 05:42:57 5.5 --- configure.in 1995/02/27 17:33:09 *************** *** 3,10 **** AC_SET_BUILDTOP CONFIG_RULES KRB_INCLUDE ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_PROG_INSTALL CHECK_FCNTL WITH_KRB5ROOT --- 3,9 ---- AC_SET_BUILDTOP CONFIG_RULES KRB_INCLUDE ! WITH_NETLIB AC_PROG_INSTALL CHECK_FCNTL WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/popper/configure.in,v retrieving revision 5.9 diff -c -r5.9 configure.in *** configure.in 1994/11/18 19:12:08 5.9 --- configure.in 1995/02/27 17:33:10 *************** *** 5,12 **** AC_SET_BUILDTOP AC_PROG_INSTALL AC_FUNC_CHECK(vsprintf,AC_DEFINE(HAS_VSPRINTF)) ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(BSD,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) --- 5,11 ---- AC_SET_BUILDTOP AC_PROG_INSTALL AC_FUNC_CHECK(vsprintf,AC_DEFINE(HAS_VSPRINTF)) ! WITH_NETLIB AC_CHECK_LIB(BSD,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/sample/sclient/configure.in,v retrieving revision 5.7 diff -c -r5.7 configure.in *** configure.in 1994/10/26 05:43:06 5.7 --- configure.in 1995/02/27 17:33:15 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/sample/sserver/configure.in,v retrieving revision 5.7 diff -c -r5.7 configure.in *** configure.in 1994/10/26 05:43:08 5.7 --- configure.in 1995/02/27 17:33:15 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/simple/client/configure.in,v retrieving revision 5.7 diff -c -r5.7 configure.in *** configure.in 1994/10/26 05:43:13 5.7 --- configure.in 1995/02/27 17:33:15 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/simple/server/configure.in,v retrieving revision 5.7 diff -c -r5.7 configure.in *** configure.in 1994/10/26 05:43:15 5.7 --- configure.in 1995/02/27 17:33:16 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/telnet/telnet/configure.in,v retrieving revision 5.11 diff -c -r5.11 configure.in *** configure.in 1994/12/13 20:22:55 5.11 --- configure.in 1995/02/27 17:33:16 *************** *** 31,36 **** --- 31,37 ---- AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS)) AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT)) AC_FUNC_CHECK(setupterm,AC_DEFINE(HAS_SETUPTERM)) + WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) CHECK_SIGNALS *************** *** 40,45 **** K4LIB='$(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes.a', K4LIB=) AC_SUBST(K4LIB) - AC_CHECK_LIB(socket,main) - AC_CHECK_LIB(nsl,main) V5_AC_OUTPUT_MAKEFILE --- 41,44 ---- =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/telnet/telnetd/configure.in,v retrieving revision 5.14 diff -c -r5.14 configure.in *** configure.in 1995/01/11 20:28:48 5.14 --- configure.in 1995/02/27 17:33:17 *************** *** 14,22 **** K4LIB=) AC_SUBST(K4LIB) ISODE_INCLUDE AC_CHECK_LIB(ndbm,main) - AC_CHECK_LIB(socket,main) - AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(dbm,main) AC_CHECK_LIB(util,main) AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP) --- 14,21 ---- K4LIB=) AC_SUBST(K4LIB) ISODE_INCLUDE + WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_CHECK_LIB(util,main) AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP) =================================================================== RCS file: /mit/krb5/.cvsroot/src/appl/user_user/configure.in,v retrieving revision 5.7 diff -c -r5.7 configure.in *** configure.in 1994/10/26 05:43:26 5.7 --- configure.in 1995/02/27 17:33:10 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/clients/kdestroy/configure.in,v retrieving revision 1.7 diff -c -r1.7 configure.in *** configure.in 1995/02/11 00:05:32 1.7 --- configure.in 1995/02/27 17:33:10 *************** *** 4,10 **** AC_PROG_INSTALL CONFIG_RULES KRB_INCLUDE ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) WITH_KRB5ROOT V5_AC_OUTPUT_MAKEFILE --- 4,9 ---- AC_PROG_INSTALL CONFIG_RULES KRB_INCLUDE ! WITH_NETLIB WITH_KRB5ROOT V5_AC_OUTPUT_MAKEFILE =================================================================== RCS file: /mit/krb5/.cvsroot/src/clients/kinit/configure.in,v retrieving revision 1.7 diff -c -r1.7 configure.in *** configure.in 1994/10/26 05:43:33 1.7 --- configure.in 1995/02/27 17:33:11 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/clients/klist/configure.in,v retrieving revision 1.7 diff -c -r1.7 configure.in *** configure.in 1995/02/11 00:04:58 1.7 --- configure.in 1995/02/27 17:33:11 *************** *** 4,10 **** AC_PROG_INSTALL CONFIG_RULES KRB_INCLUDE ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) WITH_KRB5ROOT V5_AC_OUTPUT_MAKEFILE --- 4,9 ---- AC_PROG_INSTALL CONFIG_RULES KRB_INCLUDE ! WITH_NETLIB WITH_KRB5ROOT V5_AC_OUTPUT_MAKEFILE =================================================================== RCS file: /mit/krb5/.cvsroot/src/clients/ksu/configure.in,v retrieving revision 1.4 diff -c -r1.4 configure.in *** configure.in 1994/10/26 05:43:40 1.4 --- configure.in 1995/02/27 17:33:11 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/kadmin/client/configure.in,v retrieving revision 1.7 diff -c -r1.7 configure.in *** configure.in 1994/10/26 05:44:11 1.7 --- configure.in 1995/02/27 17:33:12 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) ET_RULES KRB_INCLUDE ISODE_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB ET_RULES KRB_INCLUDE ISODE_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/kadmin/kpasswd/configure.in,v retrieving revision 1.12 diff -c -r1.12 configure.in *** configure.in 1994/12/27 11:15:03 1.12 --- configure.in 1995/02/27 17:33:12 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_HAVE_HEADERS(unistd.h) CHECK_UTMP AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT)) --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_HAVE_HEADERS(unistd.h) CHECK_UTMP AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT)) =================================================================== RCS file: /mit/krb5/.cvsroot/src/kadmin/server/configure.in,v retrieving revision 1.10 diff -c -r1.10 configure.in *** configure.in 1994/10/26 05:44:18 1.10 --- configure.in 1995/02/27 17:33:13 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_TIME_WITH_SYS_TIME --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_TIME_WITH_SYS_TIME =================================================================== RCS file: /mit/krb5/.cvsroot/src/kadmin/v4server/configure.in,v retrieving revision 1.14 diff -c -r1.14 configure.in *** configure.in 1994/11/18 19:20:19 1.14 --- configure.in 1995/02/27 17:33:13 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HAVE_HEADERS(unistd.h) --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HAVE_HEADERS(unistd.h) =================================================================== RCS file: /mit/krb5/.cvsroot/src/kdc/configure.in,v retrieving revision 1.19 diff -c -r1.19 configure.in *** configure.in 1994/11/30 22:10:20 1.19 --- configure.in 1995/02/27 17:33:05 *************** *** 4,11 **** ISODE_DEFS AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS))) --- 4,10 ---- ISODE_DEFS AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS))) =================================================================== RCS file: /mit/krb5/.cvsroot/src/lib/crypto/des/configure.in,v retrieving revision 1.5 diff -c -r1.5 configure.in *** configure.in 1994/10/26 05:44:33 1.5 --- configure.in 1995/02/27 17:33:17 *************** *** 2,9 **** WITH_CCOPTS AC_SET_BUILDTOP CONFIG_RULES ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) SubdirLibraryRule([${OBJS}]) KRB_INCLUDE ISODE_INCLUDE --- 2,8 ---- WITH_CCOPTS AC_SET_BUILDTOP CONFIG_RULES ! WITH_NETLIB SubdirLibraryRule([${OBJS}]) KRB_INCLUDE ISODE_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/slave/configure.in,v retrieving revision 1.9 diff -c -r1.9 configure.in *** configure.in 1994/10/26 05:45:34 1.9 --- configure.in 1995/02/27 17:33:05 *************** *** 4,11 **** AC_SET_BUILDTOP AC_PROG_INSTALL AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS))) ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(util,main) KRB_INCLUDE ISODE_INCLUDE --- 4,10 ---- AC_SET_BUILDTOP AC_PROG_INSTALL AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS))) ! WITH_NETLIB AC_CHECK_LIB(util,main) KRB_INCLUDE ISODE_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/tests/configure.in,v retrieving revision 5.3 diff -c -r5.3 configure.in *** configure.in 1994/10/26 05:45:37 5.3 --- configure.in 1995/02/28 19:10:40 *************** *** 1,7 **** AC_INIT(configure.in) WITH_CCOPTS AC_SET_BUILDTOP ! CONFIG_DIRS(asn.1 create hammer verify) MAKE_SUBDIRS("making",all) MAKE_SUBDIRS("cleaning",clean) MAKE_SUBDIRS("installing",install) --- 1,7 ---- AC_INIT(configure.in) WITH_CCOPTS AC_SET_BUILDTOP ! CONFIG_DIRS(resolve asn.1 create hammer verify) MAKE_SUBDIRS("making",all) MAKE_SUBDIRS("cleaning",clean) MAKE_SUBDIRS("installing",install) =================================================================== RCS file: /mit/krb5/.cvsroot/src/tests/asn.1/configure.in,v retrieving revision 1.3 diff -c -r1.3 configure.in *** configure.in 1994/10/26 05:45:39 1.3 --- configure.in 1995/02/27 17:33:13 *************** *** 4,11 **** ISODE_DEFS AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 4,10 ---- ISODE_DEFS AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/tests/create/configure.in,v retrieving revision 5.3 diff -c -r5.3 configure.in *** configure.in 1994/10/26 05:45:41 5.3 --- configure.in 1995/02/27 17:33:14 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== RCS file: /mit/krb5/.cvsroot/src/tests/hammer/configure.in,v retrieving revision 5.2 diff -c -r5.2 configure.in *** configure.in 1994/10/26 05:45:43 5.2 --- configure.in 1995/02/27 17:33:14 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT =================================================================== RCS file: /mit/krb5/.cvsroot/src/tests/verify/configure.in,v retrieving revision 5.3 diff -c -r5.3 configure.in *** configure.in 1994/10/26 05:45:46 5.3 --- configure.in 1995/02/27 17:33:14 *************** *** 3,10 **** CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! AC_CHECK_LIB(socket,main) ! AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE --- 3,9 ---- CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL ! WITH_NETLIB AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) KRB_INCLUDE =================================================================== *** /dev/null Wed Mar 1 10:32:15 1995 --- tests/resolve/configure.in Tue Feb 28 14:54:00 1995 *************** *** 0 **** --- 1,9 ---- + AC_INIT(resolve.c) + WITH_CCOPTS + CONFIG_RULES + AC_SET_BUILDTOP + AC_HEADER_STDC + AC_CHECK_FUNCS(strchr) + WITH_NETLIB + AC_CHECK_HEADERS(sys/param.h sys/socket.h) + V5_AC_OUTPUT_MAKEFILE *** /dev/null Wed Mar 1 10:32:15 1995 --- tests/resolve/Makefile.in Tue Feb 28 21:04:20 1995 *************** *** 0 **** --- 1,20 ---- + CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDES) + LDFLAGS = -g + + OBJS=resolve.o + SRCS=$(srcdir)/resolve.c + + all:: resolve + + + resolve: $(OBJS) + $(LD) $(CFLAGS) -o resolve $(OBJS) $(LIBS) + + check:: resolve + ./resolve + + install:: + + clean:: + $(RM) resolve + *** /dev/null Wed Mar 1 10:32:15 1995 --- tests/resolve/resolve.c Tue Feb 28 21:30:09 1995 *************** *** 0 **** --- 1,120 ---- + /* + * test/resolve/resolve.c + * + * Copyright 1995 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + * + * + * A simple program to test the functionality of the resolver library. + * It simply will try to get the IP address of the host, and then look + * up the name from the address. If the resulting name does not contain the + * domain name, then the resolve library is broken. + * + * Warning: It is possible to fool this program into thinking everything is + * alright byt a clever use of /etc/hosts - but this is better than nothing. + * + * Usage: + * resolve [hostname] + * + * When invoked with no arguments, gethostname is used for the local host. + * + */ + + /* This program tests the resolve library and sees if it is broken... */ + + #include + + #if STDC_HEADERS + #include + #else + #ifndef HAVE_STRCHR + #define strchr index + #endif + char *strchr(); + #endif + + #ifdef HAVE_SYS_PARAM_H + #include + #endif + + #ifdef HAVE_SYS_SOCKET_H + #include + #endif + + #include + + main(argc, argv) + int argc; + char **argv; + { + char myname[MAXHOSTNAMELEN+1]; + char *ptr; + struct hostent *host; + int err; + + if(argc > 1) { + strncpy(myname, argv[1], MAXHOSTNAMELEN); + } else { + if(gethostname(myname, MAXHOSTNAMELEN)) { + perror("gethostname failure"); + exit(1); + } + } + + myname[MAXHOSTNAMELEN] = '\0'; /* for safety */ + + /* Look up the address... */ + printf("Hostname: %s\n", myname); + + + /* Set the hosts db to close each time - effectively rewinding file */ + sethostent(0); + + if((host = gethostbyname (myname)) == NULL) { + fprintf(stderr, "Could not look up hostname - fatal\n"); + exit(2); + } + + ptr = host->h_addr_list[0]; + #define UC(a) (((int)a)&0xff) + printf("Host address: %d.%d.%d.%d\n", + UC(ptr[0]), UC(ptr[1]), UC(ptr[2]), UC(ptr[3])); + + /* Convert back to full name */ + if((host = gethostbyaddr(ptr, 4, AF_INET)) == NULL) { + fprintf(stderr, "Error looking up IP address - fatal\n"); + exit(2); + } + + printf("FQDN: %s\n", host->h_name); + + if(strchr(host->h_name, '.') == NULL) { + fprintf(stderr, "\nResolve library did not return a fully qualified domain name\n"); + fprintf(stderr, "You may have to reconfigure the kerberos distribution to select a\ndifferent set of libraries using --with-netlib[=libs]\n"); + exit(3); + } + printf("Resolve library appears to have passed the test\n"); + + /* All ok */ + exit(0); + + } + + + home help back first fref pref prev next nref lref last post