-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
58 lines (46 loc) · 1.36 KB
/
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
52
53
54
55
56
57
58
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([lader], [0.1.6], [[email protected]])
AC_CONFIG_SRCDIR(src/lib/lader.cc)
AC_CONFIG_HEADERS([src/include/lader/config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/include/Makefile
src/lib/Makefile
src/bin/Makefile
src/test/Makefile
])
AM_INIT_AUTOMAKE([-Wall])
AM_PROG_AR
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CC
AC_LANG_CPLUSPLUS
LDFLAGS="$LDFLAGS -lpthread"
# Checks for libraries.
AC_SYS_LARGEFILE
AX_BOOST_BASE([1.38],,[AC_MSG_ERROR([requireBoost])])
AX_BOOST_SYSTEM
AX_BOOST_FILESYSTEM
AX_BOOST_THREAD
AX_BOOST_REGEX
# Checks for header files.
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
# Check to make sure that we have unordered_map
AC_LANG([C++])
AC_CHECK_HEADER(unordered_map,AC_DEFINE(HAVE_UNORDERED_MAP,1,
[Define to 1 if you have unordered_map]),
[AC_CHECK_HEADER(tr1/unordered_map,AC_DEFINE(HAVE_TR1_UNORDERED_MAP,1,
[Define to 1 if you have tr1/unordered_map]),
[AC_CHECK_HEADER(ext/hash_map,,OPTIONS=$OPTIONS"-DNOHASH ")])])
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday pow sqrt])
AC_OUTPUT