forked from fsaintjacques/disruptor--
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
36 lines (28 loc) · 788 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
AC_INIT([disruptor], [0.1], [[email protected]])
AC_CONFIG_SRCDIR([disruptor/claim_strategy.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# automake
AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
# Checks for header files.
AC_CHECK_HEADERS([sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_INT64_T
AC_HEADER_TIME
AC_CXX_COMPILE_STDCXX_0X
# Checks for libraries.
AC_CHECK_LIB(stdc++, [main])
AC_CHECK_LIB(rt, [main])
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday])
AM_CXXFLAGS="$AM_CXXFLAGS -std=c++0x"
AM_LDFLAGS="$AM_LDFLAGS -pthread"
AC_SUBST([AM_CXXFLAGS])
AC_SUBST([AM_LDFLAGS])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([perf/Makefile])
AC_CONFIG_FILES([test/Makefile])
AC_OUTPUT