-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
54 lines (45 loc) · 1.2 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([uboot-bootcount],
[3.0.0],
[],
[https://github.com/VoltServer/uboot-bootcount])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
#LT_INIT([disable-shared])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h unistd.h sys/mman.h sys/stat.h sys/types.h])
AC_CHECK_HEADER_STDBOOL
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_MMAP
AC_CHECK_FUNCS([strtoul memset])
# endianness setting
AC_ARG_WITH(endianness,
AS_HELP_STRING(
[--with-endianness={big|little}],
[define bootcount value endianness]),
[endianness=${withval}],
[endianness=little]
)
AC_MSG_CHECKING([endianness])
if test "${endianness}" = "big"; then
AC_DEFINE([BIG_ENDIAN], 1, [Define to 1 for big endian])
fi
AC_MSG_RESULT([${endianness}])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT