forked from bcgsc/biobloom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
75 lines (60 loc) · 1.98 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(BIOBLOOMTOOLS, 2.0.13b, [email protected])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([BioBloomMaker/BioBloomMaker.cpp])
AC_CONFIG_HEADER([config.h])
AC_PROG_RANLIB
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AC_CHECK_LIB([dl], [dlopen])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Options to configure.
# Boost
AC_ARG_WITH(boost, AS_HELP_STRING([--with-boost=PATH],
[specify directory for the boost header files]))
if test "$with_boost" -a -d "$with_boost"; then
boost_cppflags="-isystem$with_boost"
fi
# Find the absolute paths.
srcdir=$(cd $srcdir; pwd)
# Set compiler flags.
boost_ver=1.58.0
boost_ver_dir=1_58_0
AC_SUBST(CPPFLAGS,"-I$srcdir $boost_cppflags $CPPFLAGS -isystem$srcdir/$boost_ver_dir")
# Check for Boost.
if test $ac_cv_header_boost_unordered_unordered_map_hpp != yes; then
AC_MSG_ERROR([Requires the Boost C++ libraries, which may
be downloaded from here: http://www.boost.org/users/download/
The following commands will download and install Boost:
cd $srcdir
wget http://downloads.sourceforge.net/project/boost/boost/$boost_ver/$boost_ver_dir.tar.bz2
tar jxf $boost_ver_dir.tar.bz2
cd -])
fi
# Checks for header files.
AC_LANG([C++]) #sets the auto conf to look for c++ headers
AC_CHECK_HEADERS([boost/unordered/unordered_map.hpp])
AC_CHECK_HEADERS([boost/property_tree/ptree.hpp])
AC_CHECK_HEADERS([boost/property_tree/ini_parser.hpp])
AC_CHECK_HEADERS([boost/tuple/tuple.hpp])
AC_CHECK_HEADERS([zlib.h])
# Check for OpenMP.
AC_OPENMP
if test -z $OPENMP_CXXFLAGS; then
OPENMP_CXXFLAGS=-Wno-unknown-pragmas
fi
# Set compiler flags.
AC_SUBST(AM_CXXFLAGS, '-Wall -Wextra -Werror')
# Checks for typedefs, structures, and compiler characteristics.
AC_CONFIG_FILES([
Makefile
Common/Makefile
DataLayer/Makefile
BioBloomMaker/Makefile
BioBloomCategorizer/Makefile
])
AC_OUTPUT