source: LinearAlgebra/configure.ac@ d08ab3

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable v1.2.1
Last change on this file since d08ab3 was d08ab3, checked in by Frederik Heber <heber@…>, 13 years ago

Set version to 1.2.1

  • Molecuilder library is now 7:0:0.
  • LinearAlgebra library is now 3:1:0 and its API is 1.0.4.
  • Codename "Injection" (it is one-to-one and probably onto :).
  • Property mode set to 100644
File size: 6.3 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(LinearAlgebra, 1.0.4, [heber@ins.uni-bonn.de], [linearalgebra], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
6AC_CONFIG_AUX_DIR([build-aux])
7AC_CONFIG_SRCDIR([src/LinearAlgebra/Vector.cpp])
8AC_CONFIG_HEADER([config.h libLinearAlgebra_config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11# parallel-tests: use parallel test druver
12# color-tests: us coloring to indicate success/failure when available
13# tar-pax: use newer tar implementation with longer filename (>99 chars)
14AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests tar-pax])
15
16# Checks for programs.
17AM_PATH_CPPUNIT(1.9.6)
18AC_PROG_CXX
19AC_PROG_CC
20AC_PROG_INSTALL
21
22DX_HTML_FEATURE(ON)
23DX_PS_FEATURE(OFF)
24DX_PDF_FEATURE(OFF)
25DX_INIT_DOXYGEN(LinearAlgebra, Doxyfile, ${docdir})
26
27LT_INIT([static])
28
29# Define these substitions here to keep all version information in one place.
30# For information on how to properly maintain the library version information,
31# refer to the libtool manual, section "Updating library version information":
32# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
33AC_SUBST([LINEARALGEBRA_SO_VERSION], [3:1:0])
34AC_SUBST([LINEARALGEBRA_API_VERSION], [1.0.4])
35
36dnl this macro is used to get the arguments supplied
37dnl to the configure script (./configure --enable-debug)
38dnl Check if we have enable debug support.
39AC_MSG_CHECKING(whether to enable debugging)
40have_debug="no"
41AC_ARG_ENABLE(
42 [debug],
43 AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
44 enable_debug=$enableval,
45 enable_debug="no")
46AC_MSG_RESULT($enable_debug)
47AS_IF([test x"$enable_debug" = x"yes"],[
48 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
49 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
50 have_debug="yes"
51],[
52 AS_IF([test x"$enable_debug" = x"full"],[
53 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
54 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
55 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
56 AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
57 have_debug="full"
58 ],[
59 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
60 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
61 AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
62 have_debug="no"
63 ])
64])
65AC_SUBST(HAVE_DEBUG)
66
67dnl this macro is used to get the arguments supplied
68dnl to the configure script (./configure --enable-debug)
69dnl Check if we have enable debug support.
70AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
71AC_ARG_ENABLE(
72 [cache],
73 AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
74 enable_cache=$enableval,
75 enable_cache="yes")
76AC_MSG_RESULT($enable_cache)
77AS_IF([test x"$enable_cache" != x"no"],[
78 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
79],[
80 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
81 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
82])
83AC_SUBST(HAVE_CACHE)
84
85# Checks for libraries.
86AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
87
88# CodePatterns library (serialization header before MemDebug.hpp )
89AM_PATH_CODEPATTERNS([1.1.5], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
90
91# boost
92BOOST_REQUIRE([1.40])
93
94# boost headers
95BOOST_BIND
96BOOST_EXCEPTION
97
98# boost libraries
99BOOST_SERIALIZATION
100
101# Checks for header files.
102AC_HEADER_STDC
103AC_CHECK_HEADERS([sys/time.h])
104AC_HEADER_STDBOOL
105
106AC_FUNC_MALLOC
107AC_FUNC_REALLOC
108AC_CHECK_FUNCS([floor pow sqrt strchr])
109
110# Checks for typedefs, structures, and compiler characteristics.
111AC_C_CONST
112AC_C_INLINE
113AC_C_RESTRICT
114AC_TYPE_SIZE_T
115
116# Checks for library functions.
117# check for GNU Scientific Library
118AC_CHECK_HEADERS([gsl/gsl_blas.h])
119AC_SEARCH_LIBS(dnrm2, gslblas gslcblas goto blas cblas)
120AC_SEARCH_LIBS(cblas_dnrm2, gslblas gslcblas blas cblas)
121AC_SEARCH_LIBS(gsl_blas_dnrm2,, gsl)
122#AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
123AC_CHECK_LIB(gsl, main)
124
125# use CppUnit TestRunner or not
126AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
127AC_ARG_ENABLE(
128 [ecut],
129 AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
130 enable_ecut=$disableval,
131 enable_ecut="no")
132AC_MSG_RESULT($enable_ecut)
133AS_IF([test x"$enable_ecut" = x"yes"],[
134 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
135 AC_SUBST(HAVE_ECUT)
136])
137AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
138
139# with valgrinding testsuite or not
140AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
141AC_ARG_ENABLE(
142 [valgrind],
143 AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
144 enable_valgrind=$enableval,
145 enable_valgrind="no")
146AC_MSG_RESULT($enable_valgrind)
147AS_IF([test x"$enable_valgrind" = x"yes"], [
148 AC_CHECK_HEADER([valgrind/valgrind.h],
149 [
150 # check header
151 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
152 # check path
153 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
154 # set variables
155 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
156 AC_SUBST(VALGRIND)
157 ],
158 [
159 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
160 ]
161 )
162])
163
164# Check for "extern inline", using a modified version
165# of the test for AC_C_INLINE from acspecific.mt
166AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
167[ac_cv_c_extern_inline=no
168AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
169extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
170double foo (double x) { return x + 1.0; };],
171[ foo(1.0) ],
172[ac_cv_c_extern_inline="yes"])
173])
174
175if test "$ac_cv_c_inline" != no ; then
176 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
177 AC_SUBST(HAVE_INLINE)
178fi
179
180#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
181
182# test suite
183AC_CONFIG_TESTDIR(tests/CodeChecks)
184AC_CONFIG_FILES([
185 tests/CodeChecks/atlocal
186 tests/CodeChecks/Makefile])
187
188AC_CONFIG_FILES([
189 LinearAlgebra.pc:LinearAlgebra.pc.in
190 LinearAlgebra-debug.pc:LinearAlgebra-debug.pc.in])
191
192AC_CONFIG_FILES([
193 Makefile
194 doc/Makefile
195 src/LinearAlgebra/Makefile
196])
197
198AC_CONFIG_FILES([
199 src/unittests/Makefile
200])
201AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.