From: Karl Heuer Date: Sun, 18 Sep 1994 19:00:32 +0000 (+0000) Subject: Add HAVE_STRUCT_UTIMBUF. X-Git-Tag: emacs-19.34~6974 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f48c727a2403490b67c3e8e13cdabef042eabe6b;p=emacs.git Add HAVE_STRUCT_UTIMBUF. --- diff --git a/configure1.in b/configure1.in index f101ac7e8a4..175584fabc8 100755 --- a/configure1.in +++ b/configure1.in @@ -1180,7 +1180,7 @@ dnl checks for UNIX variants that set `DEFS' AC_AIX dnl checks for header files -AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) +AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h utime.h) AC_STDC_HEADERS AC_TIME_WITH_SYS_TIME dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this. @@ -1191,6 +1191,21 @@ AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h, #include #endif], [char *msg = *(sys_siglist + 1);], AC_DEFINE(SYS_SIGLIST_DECLARED)) +dnl Some systems have utime.h but don't declare the struct anyplace. +AC_COMPILE_CHECK(struct utimbuf, [#ifdef TIME_WITH_SYS_TIME +#include +#include +#else +#ifdef HAVE_SYS_TIME_H +#include +#else +#include +#endif +#endif +#ifdef HAVE_UTIME_H +#include +#endif], [static struct utimbuf x; x.actime = x.modtime;], + AC_DEFINE(HAVE_STRUCT_UTIMBUF)) dnl checks for typedefs AC_RETSIGTYPE