+Tue Aug 16 22:01:56 1994 Mark Eichin (eichin@cygnus.com)
+
+ * configure.in: change test for USE_SYS_TIME_H to consistent
+ (autoconf style) check for HAVE_SYS_TIME_H with
+ TIME_WITH_SYS_TIME, and use them everywhere.
+ * stock/osauto.h: get rid of USE_TIME_H.
+ * stock/osconf.h: get rid of USE_TIME_H, rename USE_SYS_TIME_H.
+
Tue Aug 9 02:17:40 1994 Tom Yu (tlyu@dragons-lair)
* preauth.h: fix preauth function names as well (timestamp ->
#undef HAS_UNISTD_H
#undef KRB5_USE_INET
#undef ODBM
-#undef USE_SYS_TIME_H
+#undef TM_IN_SYS_TIME
dnl then from osconf.h, we have
AC_TIME_WITH_SYS_TIME
-AC_HEADER_CHECK(sys/time.h,AC_DEFINE(USE_SYS_TIME_H))
+AC_HAVE_HEADERS(sys/time.h)
AC_HEADER_CHECK(netinet/in.h,AC_DEFINE(KRB5_USE_INET))
AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
#include "autoconf.h"
#endif
-#ifdef USE_SYS_TIME_H
-#ifdef TIME_WITH_SYS_TIME
-#define USE_TIME_H
-#endif /* TIME_WITH_SYS_TIME */
-#else /* !USE_SYS_TIME_H */
-#define USE_TIME_H
-#endif /* USE_SYS_TIME_H */
-
/* remainder added on */
#ifdef UseSysTimeH
#define USE_SYS_TIME_H /* Needs <sys/time.h> for time includes. */
#endif
-#ifdef UseTimeH
-#define USE_TIME_H /* Needs <time.h> for time includes. */
-#endif
#ifdef HasInetTrue
#define KRB5_USE_INET /* Support IP address family */
#endif /* KRB5_SYSTYPES__ */
#include <krb5/osconf.h> /* USE*TIME_H macros */
-#ifdef USE_TIME_H
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
#include <time.h>
#endif
-#ifdef USE_SYS_TIME_H
-#include <sys/time.h> /* struct timeval, utimes() */
+#else
+#include <time.h>
#endif
#include <sys/stat.h> /* struct stat, stat() */
#include <sys/param.h> /* MAXPATHLEN */