-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
51 lines (37 loc) · 1004 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AC_PREREQ([2.59])
AC_INIT([libbeanstalkproto], [1.0], [[email protected]])
AC_CONFIG_SRCDIR([src/beanstalkproto.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_ARG_ENABLE(tests,[ --enable-tests build tests],[
PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
build_tests=true
]
)
AM_CONDITIONAL([BUILD_TESTS], [test x$build_tests = xtrue ])
LT_INIT
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AC_SUBST(LIBTOOL_DEPS)
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([strchr strdup strndup strtoul])
AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile])
AC_CONFIG_MACRO_DIR([m4])
AC_OUTPUT