-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
83 lines (70 loc) · 1.92 KB
/
configure.ac
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
AC_PREREQ(2.53)
AC_INIT(lime, 1.3.3, [email protected])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR([include/lime_header.h])
AC_CONFIG_HEADER([include/lime_config_internal.h])
AM_INIT_AUTOMAKE([subdir-objects])
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_CHECK_TOOL(AR, ar, [ar])
# Checks for type configuration
AC_CHECK_HEADERS([stdint.h],
[ dnl for inttypes.h and stdint.h for uint_xxx types
dnl if successful check for the actual types too
AC_CHECK_TYPES([uint16_t, uint32_t, uint64_t],
[],
[AC_MSG_ERROR([stdint.h found but either uint16_t, uint32_t or uint64_t not found]) ]
)
],
[
dnl no inttypes.h or stdint.h found check common unsigned types
dnl for sizes and make appropriate decisions in the lime_fixed_types.h file
AC_CHECK_SIZEOF(unsigned char)
AC_CHECK_SIZEOF(unsigned short)
AC_CHECK_SIZEOF(unsigned int)
AC_CHECK_SIZEOF(unsigned long)
AC_CHECK_SIZEOF(unsigned long long)
]
)
# Set up large file support
dnl
dnl --enable-largefile
dnl
AC_ARG_ENABLE(largefile,
AC_HELP_STRING(
[--enable-largefile],
[ For files larger than 2 GB ]
),
[ AC_MSG_NOTICE([Enabling large file support.])
AC_SYS_LARGEFILE
]
)
# Set up dcap support
dnl
dnl --enable-dcap
dnl
AC_ARG_ENABLE(dcap,
AC_HELP_STRING(
[--enable-dcap],
[ For access to dcache. Requires libdcap.a ]
),
[ AC_MSG_NOTICE([Enabling dcap.])
AC_DEFINE([HAVE_DCAP],[],[Enable dcap])
]
)
# Check for the fseeko function
# Note that currently this just checks the existence of the function
# rather than dealing with the whole issue of large file support.
AC_FUNC_FSEEKO
# Checks for typedefs, structures, and compiler characteristics.
## AC_C_CONST
## AC_TYPE_SIZE_T
# Checks for library functions.
## AC_FUNC_MALLOC
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(include/Makefile)
AC_CONFIG_FILES(lib/Makefile)
AC_CONFIG_FILES(examples/Makefile)
AC_CONFIG_FILES(doc/Makefile)
AC_OUTPUT