- added a "clean" option to the buildgen.sh script... maintainer's use only
[barry.git] / configure.ac
blob566ba823bad7f3ae793564578dc59e45b7ca2a0c
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([barry], [0.2], [barry-devel@lists.sourceforge.net])
6 AM_INIT_AUTOMAKE([barry], [0.2])
7 AM_CONFIG_HEADER(config.h)
8 AC_CONFIG_SRCDIR([src/btool.cc])
10 AC_CONFIG_SUBDIRS([libusb])
12 # Checks for programs.
13 AC_PROG_CXX
14 AC_PROG_CC
15 AC_PROG_MAKE_SET
17 # Checks for libraries.
18 AC_CHECK_LIB([IOKit], [main])
19 AC_CHECK_LIB([pthread], [main])
21 # Checks for header files.
22 AC_HEADER_DIRENT
23 AC_HEADER_STDC
24 AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
26 # Checks for typedefs, structures, and compiler characteristics.
27 AC_HEADER_STDBOOL
28 AC_C_CONST
29 AC_C_INLINE
30 AC_TYPE_SIZE_T
31 AC_HEADER_TIME
32 AC_STRUCT_TM
34 # Checks for library functions.
35 AC_FUNC_CLOSEDIR_VOID
36 AC_PROG_GCC_TRADITIONAL
37 AC_FUNC_MALLOC
38 AC_FUNC_MKTIME
39 AC_FUNC_REALLOC
40 AC_FUNC_SELECT_ARGTYPES
41 AC_FUNC_STAT
42 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
44 AC_CONFIG_FILES([Makefile
45                  src/Makefile])
46 AC_OUTPUT