2009-06-09 22:19:32 +03:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_PREREQ(2.63)
|
|
|
|
AC_INIT([inflash], [0.1])
|
2009-06-09 22:19:32 +03:00
|
|
|
AC_CONFIG_AUX_DIR(m4)
|
|
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
|
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_PROG_CXX
|
2009-06-09 22:19:32 +03:00
|
|
|
|
|
|
|
# Checks for libraries.
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_CHECK_LIB([c], [main])
|
|
|
|
AC_CHECK_LIB([confuse], [main])
|
|
|
|
AC_CHECK_LIB([gcc], [main])
|
|
|
|
AC_CHECK_LIB([m], [main])
|
|
|
|
AC_CHECK_LIB([usb], [main])
|
2009-06-09 22:19:32 +03:00
|
|
|
|
|
|
|
LIBS="$LIBS $USB_LIBS"
|
|
|
|
CFLAGS="$CFLAGS $USB_CFLAGS"
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
|
2009-06-09 22:19:32 +03:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_C_INLINE
|
2009-06-09 22:19:32 +03:00
|
|
|
AC_TYPE_SIZE_T
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_TYPE_UINT8_T
|
2009-06-09 22:19:32 +03:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_MEMCMP
|
2009-06-23 12:42:21 +03:00
|
|
|
AC_CHECK_FUNCS([memset strerror])
|
2009-06-09 22:19:32 +03:00
|
|
|
|
|
|
|
AC_CONFIG_FILES(Makefile src/Makefile )
|
|
|
|
AC_OUTPUT
|