1 |
# -*-Autoconf-*- |
# -*-Autoconf-*- |
2 |
# Checks required to run `stage', a nonportable memory/time tracker. |
# Checks required to run `timevar', a nonportable memory/time tracker. |
3 |
# |
# |
4 |
# Copyright (C) 2002 Free Software Foundation, Inc. |
# Copyright (C) 2002 Free Software Foundation, Inc. |
5 |
# |
# |
21 |
# serial 1 |
# serial 1 |
22 |
|
|
23 |
AC_DEFUN([BISON_PREREQ_TIMEVAR], |
AC_DEFUN([BISON_PREREQ_TIMEVAR], |
24 |
[AC_CHECK_HEADERS([sys/resource.h sys/times.h]) |
[AC_CHECK_HEADERS([sys/resource.h sys/time.h sys/times.h]) |
25 |
|
|
26 |
AC_CHECK_FUNCS([times]) |
AC_CHECK_FUNCS([times]) |
27 |
|
|
28 |
AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [], |
AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [], |
29 |
[$ac_includes_default |
[$ac_includes_default |
30 |
#if HAVE_SYS_RESOURCE_H |
#if HAVE_SYS_TIME_H |
31 |
# include <sys/resource.h> |
# include <sys/time.h> |
32 |
#endif |
#endif |
33 |
#if HAVE_SYS_TIMES_H |
#if HAVE_SYS_TIMES_H |
34 |
# include <sys/times.h> |
# include <sys/times.h> |
35 |
#endif |
#endif |
36 |
|
#if HAVE_SYS_RESOURCE_H |
37 |
|
# include <sys/resource.h> |
38 |
|
#endif |
39 |
]) |
]) |
40 |
|
|
41 |
AC_CHECK_TYPES([clock_t, struct tms], [], [], |
AC_CHECK_TYPES([clock_t, struct tms], [], [], |
42 |
[$ac_includes_default |
[$ac_includes_default |
43 |
#if HAVE_SYS_RESOURCE_H |
#if HAVE_SYS_TIME_H |
44 |
# include <sys/resource.h> |
# include <sys/time.h> |
45 |
#endif |
#endif |
46 |
#if HAVE_SYS_TIMES_H |
#if HAVE_SYS_TIMES_H |
47 |
# include <sys/times.h> |
# include <sys/times.h> |
48 |
#endif |
#endif |
49 |
|
#if HAVE_SYS_RESOURCE_H |
50 |
|
# include <sys/resource.h> |
51 |
|
#endif |
52 |
]) |
]) |
53 |
]) |
]) |