(AC_HEADER_TIME): Add check. * configure, config.in: Regenerate. * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
* getruntime.c: Only attempt to include sys/resource.h and use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H are defined.