-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
81 lines (67 loc) · 2.97 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
AC_PREREQ(2.61)
AC_INIT([silt], [0.1], [[email protected]])
AM_INIT_AUTOMAKE
LT_PREREQ([2.2])
LT_INIT([dlopen])
AC_CONFIG_HEADER([config.h])
CFLAGS="-g -O3" # -fno-omit-frame-pointer
CPPFLAGS="-g -O3" # -fno-omit-frame-pointer
CXXFLAGS="-g -O3" # -fno-omit-frame-pointer
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lgtest':
AC_CHECK_LIB([gtest], [main], [LIBS="-lgtest $LIBS"; no_libgtest=false],
[echo "gtest unittesting framework not found."; no_libgtest=true])
AC_LANG_CPLUSPLUS
AC_CHECK_LIB([tbb], [main], [], [echo "libtbb not found. Please install the Intel TBB before proceeding."; exit -1])
AC_CHECK_LIB([gtest_main], [main], [], [echo "gtest_main not found. Please install google test library before proceeding"; exit -1])
AC_CHECK_LIB([pthread], [pthread_mutex_init], [], [echo "pthreads not found. Please install pthread library before proceeding"; exit -1])
AC_CHECK_LIB([boost_thread-mt], [main], [], [echo "boost library not found. Please install boost library before proceeding"; exit -1])
AC_CHECK_LIB([crypto], [main], [], [echo "openssl crypto library not found. Please install openssl library before proceeding"; exit -1])
AC_CHECK_LIB([xerces-c], [main], [], [echo "Xerces XML parsing library not found. Please install xerces library before proceeding"; exit -1])
AC_CHECK_LIB([m], [cos], [], [echo "m library not found. Please install m library before proceeding"; exit -1])
AC_CHECK_LIB([gslcblas], [cblas_dgemm], [], [echo "gsl library not found. Please install gsl library before proceeding"; exit -1])
AC_CHECK_LIB([gsl], [gsl_blas_dgemm], [], [echo "gsl library not found. Please install gsl library before proceeding"; exit -1])
AC_CHECK_LIB([nsort], [nsort_define], [], [echo "nsort library not found. An inferior sorting will be used."])
AC_CHECK_LIB([db], [db_create], [], [echo "Berkeley Database library not found. Support for BDB will be excluded."])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_HEADER_TIME
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_C_VOLATILE
# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([bzero ftruncate gethostbyname getpagesize gettimeofday inet_ntoa memchr memmove memset munmap select socket strdup strerror strtol strtoul strtoull])
#CFLAGS="$CFLAGS -Wall -Wextra"
#CXXFLAGS="$CXXFLAGS -Wall -Wextra"
AC_CONFIG_FILES([ Makefile
utils/Makefile
fawnds/Makefile
test/Makefile
test/fawnds/Makefile
])
AC_OUTPUT