On NextStep, <utime.h> doesn't define struct utime, unless we
authorJim Blandy <jimb@red-bean.com>
Tue, 3 Sep 1996 04:42:59 +0000 (04:42 +0000)
committerJim Blandy <jimb@red-bean.com>
Tue, 3 Sep 1996 04:42:59 +0000 (04:42 +0000)
#define _POSIX_SOURCE before #including it.
* aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
* acconfig.h: New comment text for above CPP symbol.
* configure.in: Call it.
* posix.c: #define _POSIX_SOURCE if it seems necessary.

* configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
in the list.
* posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
testing for __EMX__.

libguile/configure.in

index 98b530b..ecd62f4 100644 (file)
@@ -36,7 +36,7 @@ AC_HEADER_STDC
 AC_HEADER_DIRENT
 AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h time.h unistd.h)
+AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h)
 
 AC_TYPE_GETGROUPS
 AC_TYPE_SIGNAL
@@ -49,6 +49,7 @@ AC_REPLACE_FUNCS(inet_aton strerror)
 AC_STRUCT_ST_RDEV
 AC_STRUCT_ST_BLKSIZE
 AC_STRUCT_ST_BLOCKS
+GUILE_STRUCT_UTIMBUF
 
 #--------------------------------------------------------------------
 #