forked from eehlers/reposit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
90 lines (70 loc) · 2.63 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
82
83
84
85
86
87
88
89
# Process this file with autoconf to produce a configure script.
AC_INIT([reposit], [1.8.0],
[reposit])
AC_PREREQ(2.50)
AC_CONFIG_SRCDIR([rp/reposit.hpp])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_HEADERS([rp/config.hpp])
AM_INIT_AUTOMAKE([foreign])
AC_COPYRIGHT([
Copyright (C) 2004, 2005, 2006, 2007 Eric Ehlers
Copyright (C) 2004, 2005, 2006, 2007 Ferdinando Ametrano
Copyright (C) 2005, 2006 Plamen Neykov
Copyright (C) 2004 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it under the
terms of the QuantLib license. You should have received a copy of the
license along with this program; if not, please email
<[email protected]>. The license is also available online at
<http://quantlib.org/license.shtml>.
This program 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 license for more details.])
AC_PROG_INSTALL
# Default compilation variables
AC_SUBST([CXXFLAGS],[${CXXFLAGS='-g -O2 -Wall'}])
# Continue setup
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_LIBTOOL
AC_LANG([C++])
# Confirm existence of dependencies
# Configure and validate the path to log4cxx
AC_ARG_WITH([log4cxx],
[AS_HELP_STRING([--without-log4cxx], [disable support for log4cxx, write log messages to stdout])],
[],
[with_log4cxx=yes])
AS_IF([test "x$with_log4cxx" != xno],
[AC_CHECK_HEADER(
[log4cxx/logger.h],
[HAVE_LOG4CXX=1],
[AC_MSG_ERROR([log4cxx test failed (--without-log4cxx to disable)])])])
AM_CONDITIONAL([RP_LINK_LOG4CXX], [test "$HAVE_LOG4CXX" -eq 1])
AS_IF([test "$HAVE_LOG4CXX" -eq 1], AC_DEFINE([RP_INCLUDE_LOG4CXX], [1], [Support for logging]))
# Check for tools needed for building documentation
AC_PATH_PROG([DOXYGEN], [doxygen])
AC_PATH_PROG([SED], [sed])
# Done, output the configured files
AC_CONFIG_FILES([
Examples/ExampleObjects/Enumerations/Makefile
Examples/ExampleObjects/Library/Makefile
Examples/ExampleObjects/Objects/Makefile
Examples/ExampleObjects/Serialization/Makefile
Examples/ExampleObjects/ValueObjects/Makefile
Examples/ExampleObjects/Makefile
Examples/C++/Makefile
Examples/xl/Makefile
Examples/Makefile
Makefile
rp/conversions/Makefile
rp/enumerations/Makefile
rp/loop/Makefile
rp/valueobjects/Makefile
rp/Makefile
rpxl/Makefile
xlsdk/Makefile
xlsdk/x64/Makefile ])
AC_OUTPUT