-AC_DEFUN(PSI_CHECK_SYS_TIME, [
- AC_CHECK_HEADERS(sys/time.h)
+PSI_CHECK_SYS_TIME() {
+ PSI_CONFIG_POSIX(sys/time, sys/time.h)
PSI_CONST(ITIMER_REAL, int)
PSI_CONST(ITIMER_VIRTUAL, int)
PSI_DECL(int gettimeofday, [(struct timeval *tp, struct timezone *tz)])
PSI_DECL(int utimes, [(char *path, struct timeval times@<:@2@:>@)])
PSI_DECL(int utimensat, [(int fd, char *path, struct timespec times@<:@2@:>@)])
-])
+}