+Tue Sep 30 18:56:37 1997 Tom Yu <tlyu@mit.edu>
+
+ * acconfig.h: Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES.
+
Thu Sep 25 21:06:40 1997 Tom Yu <tlyu@mit.edu>
* acconfig.h: Punt HAS_SETVBUF, HAS_UNISTD_H, KRB5_USE_INET.
handle it on some systems. */
#undef ANSI_STDIO
-#undef HAS_STDLIB_H
#undef HAS_VOID_TYPE
#undef KRB5_NO_PROTOTYPES
#undef KRB5_PROVIDE_PROTOTYPES
#undef KRB5_NO_NESTED_PROTOTYPES
-#undef NO_STDLIB_H
#undef NO_YYLINENO
#undef POSIX_FILE_LOCKS
#undef POSIX_SIGTYPE
#undef POSIX_TERMIOS
-#undef POSIX_TYPES
#undef USE_DIRENT_H
#undef WAIT_USES_INT
#undef krb5_sigtype
/* Define if Kerberos V4 backwards compatibility should be supported */
#undef KRB5_KRB4_COMPAT
+/* Define to `long' if <sys/types.h> doesn't define. */
+#undef time_t
+
/*
* The stuff following here is taken from util/db2/acconfig.h
*/
+Tue Sep 30 18:56:05 1997 Tom Yu <tlyu@mit.edu>
+
+ * win-mac.h: Replace HAS_STDLIB_H with something more sane.
+
+ * k5-int.h: Replace HAS_STDLIB_H, NO_STDLIB_H with something more
+ sane.
+
Thu Sep 25 21:10:37 1997 Tom Yu <tlyu@mit.edu>
* win-mac.h: Replace KRB5_USE_INET with something more sane.
#ifndef KRB5_EXT_PROTO__
#define KRB5_EXT_PROTO__
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
#if defined(__STDC__) || defined(_MSDOS)
-#ifdef NO_STDLIB_H
#include <fake-stdlib.h>
#else
-#include <stdlib.h>
-#endif /* NO_STDLIB_H */
-#else
extern char *malloc(), *realloc(), *calloc();
extern char *getenv();
#endif /* ! __STDC__ */
-#endif /* HAS_STDLIB_H */
+#endif /* HAVE_STDLIB_H */
#ifdef HAVE_STRING_H
#include <string.h>
+Tue Sep 30 17:19:16 1997 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Remove references to dbm and ndbm. Replace
+ HAS_STDLIB_H and NO_STDLIB_H with something more sane. Replace
+ AC_TIME_WITH_SYS_TIME with more a recent form. Use AC_CHECK_TYPE
+ to check for time_t instead of erroneously named POSIX_TYPES.
+
Thu Sep 25 21:50:44 1997 Tom Yu <tlyu@mit.edu>
* configure.in: Replace KRB5_USE_INET, HAS_UNISTD_H, HAS_SETVBUF.
KRB5_POSIX_LOCKS
-dnl time_t, only used in lib/krb5/os/timeofday.c
-AC_EGREP_HEADER(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
-
KRB5_SIGTYPE
dnl
dnl
-AC_CHECK_HEADERS(string.h unistd.h)
-AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H),AC_DEFINE(NO_STDLIB_H))
-AC_CHECK_HEADERS(sys/types.h sys/file.h sys/param.h sys/stat.h macsock.h stddef.h xom.h dbm.h ndbm.h)
+AC_CHECK_HEADERS(stdlib.h string.h stddef.h unistd.h)
+AC_CHECK_HEADERS(sys/types.h sys/file.h sys/param.h sys/stat.h)
+AC_CHECK_HEADERS(macsock.h xom.h)
AC_HEADER_STDARG
dnl check for ANSI stdio, esp "b" option to fopen(). This (unfortunately)
AC_CHECK_SIZEOF(long)
dnl then from osconf.h, we have
-AC_TIME_WITH_SYS_TIME
+AC_HEADER_TIME
AC_CHECK_HEADERS(sys/time.h)
+AC_CHECK_TYPE(time_t, long)
AC_CHECK_HEADERS(netinet/in.h)
-AC_CHECK_LIB(ndbm,main)
-AC_CHECK_LIB(dbm,main)
-
dnl
dnl Determine where to put the replay cache.
dnl
#define KRB5_PROVIDE_PROTOTYPES
#define HAVE_STDARG_H
#define HAVE_SYS_TYPES_H
-#define HAS_STDLIB_H
+#define HAVE_STDLIB_H
/* This controls which encryption routines libcrypto will provide */
#define PROVIDE_DES_CBC_MD5
+Tue Sep 30 18:58:09 1997 Tom Yu <tlyu@mit.edu>
+
+ * ktutil.c: Replace HAS_STDLIB_H with something more sane.
+
Tue Feb 4 21:11:33 1997 Tom Yu <tlyu@mit.edu>
* Makefile.in:
#include "adm_proto.h"
#include <ss/ss.h>
#include <stdio.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+Tue Sep 30 19:00:33 1997 Tom Yu <tlyu@mit.edu>
+
+ * tkt_string.c: Replace HAS_STDLIB_H with something more sane.
+
+ * send_to_kdc.c: Replace HAS_STDLIB_H with something more sane.
+
+ * realmofhost.c: Replace HAS_STDLIB_H with something more sane.
+
+ * mk_preauth.c: Repalce HAS_STDLIB_H with something more sane.
+
+ * memcache.c: Replace HAS_STDLIB_H with something more sane.
+
+ * kparse.c: Replace HAS_STDLIB_H with something more sane.
+
+ * configure.in: Replace HAS_STDLIB_H with something more sane.
+
Thu Sep 25 21:11:16 1997 Tom Yu <tlyu@mit.edu>
* put_svc_key.c: Replace HAS_UNISTD_H with something more sane.
AC_CHECK_HEADERS(sys/select.h time.h unistd.h)
dnl Could check for full stdc environment, but will only test
dnl for stdlib.h
-AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H))
+AC_CHECK_HEADERS(stdlib.h)
AC_C_CROSS dnl pretty up output, eval this before AC_TRY_RUN
dnl need MSBFIRST, LSBFIRST, BITS16, BITS32
#ifndef HAVE_STRSAVE
static char *strsave();
#endif
-#ifndef HAS_STDLIB_H
+#ifndef HAVE_STDLIB_H
extern char *malloc();
#endif
#include <stdio.h>
#include <errno.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc (), *realloc ();
#include "krb.h"
#include <string.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc(), *calloc(), *realloc();
#include <string.h>
#include <stdio.h>
#include <ctype.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc();
#define S_AD_SZ sizeof(struct sockaddr_in)
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc(), *calloc(), *realloc();
#include <string.h>
#include <sys/types.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
char *getenv();
+Tue Sep 30 19:03:34 1997 Tom Yu <tlyu@mit.edu>
+
+ * krbasn1.h: Replace HAS_STDLIB_H with something more sane.
+
Thu Jul 31 15:38:10 1997 Ezra Peisach <epeisach@kangaroo.mit.edu>
* asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
#include <stdio.h>
#include <errno.h>
#include <limits.h> /* For INT_MAX */
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
/*
+Wed Oct 1 04:58:34 1997 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Punt some things that are otherwise gotten from
+ include/krb5/configure.in.
+
+ * gmt_mktime.c: Get k5-int.h to get some autoconf symbols.
+
+Tue Sep 30 19:57:27 1997 Tom Yu <tlyu@mit.edu>
+
+ * timeofday.c: Replaace erroneously named POSIX_TYPES and timetype
+ with plain old time_t, since we're using AC_CHECK_TYPE now to
+ handle it.
+
Thu Sep 25 21:24:54 1997 Tom Yu <tlyu@mit.edu>
* mk_faddr.c: Replace KRB5_USE_INET with something more sane.
AC_INIT(configure.in)
CONFIG_RULES
-dnl time checks are for timeofday.c (which gets them from osconf.h)
-dnl and gmt_mktime.c (which only gets them from here...)
-AC_TIME_WITH_SYS_TIME
-AC_HAVE_HEADERS(unistd.h sys/time.h regex.h regexp.h regexpr.h)
+AC_HAVE_HEADERS(regex.h regexp.h regexpr.h)
dnl regcomp is present but non-functional on Solaris 2.4
AC_C_CROSS
AC_CHECK_FUNCS(compile step)
LIBS="$save_LIBS"
AC_HAVE_FUNCS(re_comp)
-AC_HEADER_EGREP(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
HAS_ANSI_VOLATILE
AC_DEFINE(AN_TO_LN_RULES)
KRB5_BUILD_PROGRAM
/* This code placed in the public domain by Mark W. Eichin */
#include <stdio.h>
+#include "k5-int.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <time.h>
-#ifdef POSIX_TYPES
-#define timetype time_t
-#else
-#define timetype long
-#endif
-
#ifndef HAVE_ERRNO
extern int errno;
#endif
register krb5_int32 FAR *timeret;
{
krb5_os_context os_ctx = context->os_context;
- timetype tval;
+ time_t tval;
if (os_ctx->os_flags & KRB5_OS_TOFFSET_TIME) {
*timeret = os_ctx->time_offset;
#else
tval = time(0);
#endif
- if (tval == (timetype) -1)
+ if (tval == (time_t) -1)
return (krb5_error_code) errno;
if (os_ctx->os_flags & KRB5_OS_TOFFSET_VALID)
tval += os_ctx->time_offset;
+Tue Sep 30 19:04:20 1997 Tom Yu <tlyu@mit.edu>
+
+ * autoconf.h: Replace HAS_STDLIB_H with something more sane. Punt
+ POSIX_TYPES.
+
Thu Sep 25 21:05:23 1997 Tom Yu <tlyu@mit.edu>
* autoconf.h: Change HAS_SETVBUF, KRB5_USE_INET to something more
#define HAVE_SETVBUF 1
#define HAS_ANSI_CONST 1
-#define HAS_STDLIB_H 1
+#define HAVE_STDLIB_H 1
#define HAS_VOID_TYPE 1
#define KRB5_PROVIDE_PROTOTYPES 1
#define NO_NESTED_PROTOTYPES 1
#define NO_YYLINENO 1
-#define POSIX_TYPES 1
#define USE_DIRENT_H 1
#define HAVE_STRING_H 1
#define WAIT_USES_INT 1
+Wed Oct 1 04:53:30 1997 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Default to a long rather than an int for a time_t
+ for paranoia reasons.
+
Tue Jun 3 23:05:07 1997 Theodore Y. Ts'o <tytso@mit.edu>
* getpty.c (pty_getpty): Remove erroneous space from the HPUX open().
dnl
AC_CHECK_LIB(util,openpty, AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil")
AC_TYPE_MODE_T
-AC_CHECK_TYPE(time_t, int)
+AC_CHECK_TYPE(time_t, long)
AC_FUNC_CHECK(strsave,AC_DEFINE(HAS_STRSAVE))
AC_HAVE_FUNCS(getutent setreuid gettosbyname setsid ttyname line_push ptsname grantpt openpty logwtmp getutmpx)
AC_CHECK_HEADERS(unistd.h stdlib.h string.h utmpx.h utmp.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)