File: configure.in

package info (click to toggle)
time 1.7-25.1
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 760 kB
  • ctags: 284
  • sloc: ansic: 2,811; sh: 232; makefile: 27
file content (39 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
dnl Process this file with autoconf to produce a configure script.

AC_INIT([time],[1.7])
AM_INIT_AUTOMAKE([-Wall])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(unistd.h string.h sys/rusage.h sys/resource.h time.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL

AC_MSG_CHECKING(for struct timeval in sys/time.h)
AC_EGREP_HEADER(tv_usec, sys/time.h, have_tv=yes, have_tv=no)
AC_MSG_RESULT($have_tv)
test $have_tv = yes && AC_DEFINE(HAVE_TIMEVAL)

dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_WAIT3
AC_CHECK_FUNCS(strerror)

AC_MSG_CHECKING(for getpagesize)
AC_TRY_LINK([#include <sys/param.h>],
[getpagesize();], have_gp=yes, have_gp=no)
AC_MSG_RESULT($have_gp)
test $have_gp = yes && AC_DEFINE(HAVE_GETPAGESIZE)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT