Allen Martin | 624cec6 | 2013-04-08 16:25:54 -0700 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| 4 | AC_PREREQ([2.67]) |
Jimmy Zhang | b7d5b2d | 2015-03-20 17:20:21 -0700 | [diff] [blame] | 5 | AC_INIT([cbootimage], [1.5], [pchiu@nvidia.com]) |
Allen Martin | 624cec6 | 2013-04-08 16:25:54 -0700 | [diff] [blame] | 6 | AM_INIT_AUTOMAKE |
| 7 | AC_CONFIG_SRCDIR([src/cbootimage.c]) |
| 8 | AC_CONFIG_HEADERS([config.h]) |
| 9 | |
| 10 | # Checks for programs. |
Allen Martin | 624cec6 | 2013-04-08 16:25:54 -0700 | [diff] [blame] | 11 | AC_PROG_CC |
Stefan Agner | 1457416 | 2013-08-19 22:10:20 +0200 | [diff] [blame] | 12 | AM_PROG_CC_C_O |
Allen Martin | 624cec6 | 2013-04-08 16:25:54 -0700 | [diff] [blame] | 13 | PKG_PROG_PKG_CONFIG |
| 14 | |
| 15 | # Checks for libraries. |
| 16 | AC_CHECK_LIB(m, log2) |
| 17 | |
| 18 | # Checks for header files. |
| 19 | AC_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. |
| 22 | AC_TYPE_SSIZE_T |
| 23 | AC_HEADER_STDBOOL |
| 24 | AC_TYPE_UINT16_T |
| 25 | AC_TYPE_UINT32_T |
| 26 | AC_TYPE_UINT64_T |
| 27 | AC_TYPE_UINT8_T |
| 28 | |
| 29 | # Checks for library functions. |
| 30 | AC_FUNC_ERROR_AT_LINE |
| 31 | AC_FUNC_MALLOC |
| 32 | AC_CHECK_FUNCS([memset]) |
| 33 | |
| 34 | AC_CONFIG_FILES([ |
| 35 | Makefile |
| 36 | src/Makefile |
| 37 | ]) |
| 38 | AC_OUTPUT |