-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
71 lines (57 loc) · 1.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
# Copyright (C) Univ. Paris-SUD, Johan Oudinet <[email protected]> - 2012, 2018
#
# This file is part of Rukia.
#
# Rukia is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# Rukia is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with Rukia. If not, see <http://www.gnu.org/licenses/>.
#
AC_PREREQ(2.61)
AC_INIT([rukia], [1.0], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.10 -Wall -Werror tar-ustar no-define foreign dist-bzip2 nostdinc])
# If the user doesn't provide any CXXFLAGS, prevent Autoconf from
# its own default ones (e.g., `-g -O2' for g++).
if test ! ${CXXFLAGS+set}; then
CXXFLAGS="-W -Wall"
fi
# Checks for programs.
AC_PROG_CXX
# Attempt to use strict language conformance checking.
AC_CXX_FLAGS
# Use libtool
AC_PROG_LIBTOOL
# Check for C++14 support
AC_LANG_PUSH([C++])
AX_CXX_COMPILE_STDCXX_14
AC_LANG_POP
# Checks for libraries.
# test for GMP and c++ wrappers
AC_CHECK_LIB([gmp], [__gmpz_init], , [AC_MSG_ERROR([This package needs libgmp library])])
AC_CHECK_LIB([gmpxx], [__gmpz_init], , [AC_MSG_ERROR([This package needs libgmpxx library])])
AX_BOOST_BASE([1.55], [], [AC_MSG_FAILURE([cannot find the Boost libraries])])
AX_BOOST_REGEX
AX_BOOST_GRAPH
# Checks for header files.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([gmpxx.h], , [AC_MSG_ERROR([This package needs gmpxx.h header])])
AC_LANG_POP
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
include/Makefile
src/Makefile
])
AC_OUTPUT