Root/xbboot/configure.ac

1#
2# autoconf configuration for xbboot
3#
4
5AC_PREREQ(2.63)
6AC_INIT([xbboot], [0.1])
7AC_CONFIG_AUX_DIR(m4)
8AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
9AM_CONFIG_HEADER([config.h])
10
11AM_MAINTAINER_MODE
12
13# Checks for programs.
14AC_PROG_CC
15AC_PROG_CXX
16
17# Checks for libraries.
18AC_CHECK_LIB([c], [main])
19AC_CHECK_LIB([confuse], [main], [], [
20echo "Error! You need to have libconfuse-dev.\n"
21echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian"
22exit -1 ])
23AC_CHECK_LIB([gcc], [main])
24AC_CHECK_LIB([m], [main])
25AC_CHECK_LIB([usb], [main], [], [
26echo "Error! You need to have libusb-dev.\n"
27echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
28exit -1 ])
29
30LIBS="$LIBS $USB_LIBS"
31CFLAGS="$CFLAGS $USB_CFLAGS"
32
33# Checks for header files.
34AC_HEADER_STDC
35AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
36
37# Checks for typedefs, structures, and compiler characteristics.
38AC_C_INLINE
39AC_TYPE_SIZE_T
40AC_TYPE_UINT8_T
41
42# Checks for library functions.
43AC_FUNC_MALLOC
44AC_FUNC_MEMCMP
45AC_CHECK_FUNCS([memset strerror])
46
47AC_CONFIG_FILES(Makefile host-app/Makefile)
48AC_OUTPUT
49

Archive Download this file



interactive