AC_HEADER_TIME is deprecated and checks for various things, like
whether you can include both time.h and sys/time.h together. Which
is fine on all systems these days. Just check whether sys/time.h
is available. HAVE_SYS_TIME_H is used once in the code base in the
timerfd-syscall.c testcase. So even this limited check might be
overkill.
AC_TYPE_UID_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
-AC_HEADER_TIME
+AC_CHECK_HEADERS_ONCE([sys/time.h])
AC_CHECK_TYPE([struct statx], [
AC_DEFINE([HAVE_STRUCT_STATX_IN_SYS_STAT_H], 1,