-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
47 lines (38 loc) · 1015 Bytes
/
configure.in
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
40
41
42
43
44
45
46
47
dnl Process this file with autoconf-2.59 to produce a configure script.
AC_INIT(armsd.c)
AC_CANONICAL_SYSTEM
case "$target" in
*-*-linux*)
AC_SUBST(SYSSRC,"sys_linux.c")
AC_SUBST(SYSOBJ,"sys_linux.o")
;;
*-*-openbsd*)
AC_SUBST(SYSSRC,"sys_openbsd.c")
AC_SUBST(SYSOBJ,"sys_openbsd.o")
;;
*)
AC_SUBST(SYSSRC,"sys_other.c")
AC_SUBST(SYSOBJ,"sys_other.o")
;;
esac
dnl Checks for programs.
#AC_PROG_CC
dnl Checks for libraries.
AC_SEARCH_LIBS(clock_gettime, rt)
AC_CHECK_LIB(arms, arms_init,,
[AC_MSG_ERROR([libarms is missing])])
dnl Checks for header files.
#AC_HEADER_STDC
#AC_CHECK_HEADERS(malloc.h sys/time.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
#AC_TYPE_SIZE_T
#AC_HEADER_TIME
#AC_STRUCT_TM
dnl Checks for library functions.
#AC_FUNC_MEMCMP
#AC_TYPE_SIGNAL
AC_CHECK_FUNCS(clock_gettime)
AC_CHECK_FUNCS(gettimeofday,,
[AC_MSG_ERROR([gettimeofday is missing])])
AC_OUTPUT(Makefile)