blob: f0f05094650449a892ae3f62c7f416c3d6b82849 [file] [log] [blame]
Allen Martin624cec62013-04-08 16:25:54 -07001# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.67])
Jimmy Zhangb7d5b2d2015-03-20 17:20:21 -07005AC_INIT([cbootimage], [1.5], [pchiu@nvidia.com])
Allen Martin624cec62013-04-08 16:25:54 -07006AM_INIT_AUTOMAKE
7AC_CONFIG_SRCDIR([src/cbootimage.c])
8AC_CONFIG_HEADERS([config.h])
9
10# Checks for programs.
Allen Martin624cec62013-04-08 16:25:54 -070011AC_PROG_CC
Stefan Agner14574162013-08-19 22:10:20 +020012AM_PROG_CC_C_O
Allen Martin624cec62013-04-08 16:25:54 -070013PKG_PROG_PKG_CONFIG
14
15# Checks for libraries.
16AC_CHECK_LIB(m, log2)
17
18# Checks for header files.
19AC_CHECK_HEADERS([stdio.h string.h ctype.h sys/stat.h getopt.h stdlib.h assert.h errno.h sys/types.h math.h])
20
21# Checks for typedefs, structures, and compiler characteristics.
22AC_TYPE_SSIZE_T
23AC_HEADER_STDBOOL
24AC_TYPE_UINT16_T
25AC_TYPE_UINT32_T
26AC_TYPE_UINT64_T
27AC_TYPE_UINT8_T
28
29# Checks for library functions.
30AC_FUNC_ERROR_AT_LINE
31AC_FUNC_MALLOC
32AC_CHECK_FUNCS([memset])
33
34AC_CONFIG_FILES([
35 Makefile
36 src/Makefile
37])
38AC_OUTPUT