source: configure.ac@ a700c4

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
Last change on this file since a700c4 was 255829, checked in by Frederik Heber <heber@…>, 14 years ago

Removed Helpers.hpp, deleted Helpers.cpp and libMoleCuilderHelpers.la is history.

  • defs.cpp is now compiled into libmolecuilder.la.
  • ShapeUnitTest alone needs defs.cpp.
  • Most changes are removal of Helpers/helpers.hpp.
  • performCriticalExit() now inline function in Helpers/helpers.hpp.
  • also inclusion possible where performCriticalExit() is needed.
  • Helpers/helpers.hpp does not include defs.hpp anymore and this causes lots of missing Helpers/defs.hpp, CodePatterns/Log.hpp and alikes.
  • removed src/Helpers from configure.ac.
  • Property mode set to 100644
File size: 8.1 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(MoleCuilder, 1.1.1, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
6AC_CONFIG_AUX_DIR(config)
7AC_CONFIG_SRCDIR([src/builder.cpp])
8AC_CONFIG_HEADER([config.h libmolecuilder_config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests])
12
13# Checks for programs.
14AM_PATH_CPPUNIT(1.9.6)
15AC_PROG_CXX
16AC_PROG_CC
17AC_PROG_INSTALL
18AC_CHECK_PROG([LATEX],[latex],[latex],[:])
19AC_CHECK_PROG([BIBTEX],[bibtex],[bibtex],[:])
20AC_CHECK_PROG([DVIPS],[dvips],[dvips],[:])
21AC_CHECK_PROG([PDFLATEX],[pdflatex],[pdflatex],[:])
22AC_CHECK_PROG([XMLTO],[xmlto],[xmlto],[:])
23AM_MISSING_PROG([DOXYGEN], [doxygen])
24
25LT_INIT([static])
26
27# Define these substitions here to keep all version information in one place.
28# For information on how to properly maintain the library version information,
29# refer to the libtool manual, section "Updating library version information":
30# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
31AC_SUBST([MOLECUILDER_SO_VERSION], [3:0:0])
32AC_SUBST([MOLECUILDER_API_VERSION], [1.1.1])
33
34# for libLinearAlgebra
35AC_SUBST([LINEARALGEBRA_SO_VERSION], [1:0:0])
36
37dnl this macro is used to get the arguments supplied
38dnl to the configure script (./configure --enable-debug)
39dnl Check if we have enable debug support.
40AC_MSG_CHECKING(whether to enable debugging)
41default="no"
42have_debug="no"
43AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes/full] turn on debugging
44 [default=$default]],, enable_debug=$default)
45if test "x$enable_debug" = "xyes"; then
46 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
47 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
48 have_debug="yes"
49elif test "x$enable_debug" = "xfull"; then
50 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
51 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
52 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
53 have_debug="full"
54else
55 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
56 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
57 have_debug="no"
58fi
59AC_MSG_RESULT($have_debug)
60AC_SUBST(HAVE_DEBUG)
61
62dnl this macro is used to get the arguments supplied
63dnl to the configure script (./configure --enable-debug)
64dnl Check if we have enable debug support.
65AC_MSG_CHECKING([whether to enable internal caching of values (speedup!)])
66default="yes"
67AC_ARG_ENABLE(cache, [ --enable-cache=[no/yes] turn on caching
68 [default=$default]],, enable_cache=$default)
69if test "x$enable_cache" = "xno"; then
70 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
71 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
72 AC_MSG_RESULT(no)
73else
74 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
75 AC_MSG_RESULT(yes)
76fi
77AC_SUBST(HAVE_CACHE)
78
79#AC_MSG_CHECKING(whether to enable profiling)
80#default="no"
81#AC_ARG_ENABLE(debug, [ --enable-profile=[no/yes] turn on profiling
82# [default=$default]],, enable_profile=$default)
83#if test "x$enable_profile" = "xyes"; then
84# CXXFLAGS="$CXXFLAGS -g -DDEBUG -pg"
85# DEBUG=-pg;
86# AC_MSG_RESULT(yes)
87#else
88# AC_MSG_RESULT(no)
89#fi
90
91#AC_MSG_CHECKING(whether to enable serialization)
92#default="no"
93#AC_ARG_ENABLE(debug, [ --enable-serialization=[no/yes] turn on serialization support
94# [default=$default]],, enable_serialization=$default)
95#if test "x$enable_serialization" = "xyes"; then
96# CXXFLAGS="$CXXFLAGS -DSERIALIZATION"
97# serialization=yes;
98# AC_MSG_RESULT(yes)
99#else
100# serialization=no;
101# AC_MSG_RESULT(no)
102#fi
103
104# Checks for libraries.
105AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
106
107# Boost libraries
108AX_BOOST_BASE([1.40])
109AX_BOOST_PROGRAM_OPTIONS
110AX_BOOST_SYSTEM
111AX_BOOST_FILESYSTEM
112AX_BOOST_THREAD
113#AX_BOOST_SERIALIZATION
114
115#QT4 libraries
116gw_CHECK_QT4
117AX_CHECK_GLU
118#AC_MSG_NOTICE(["GLU_CFLAGS: $GLU_CFLAGS, GLU_CXXFLAGS: $GLU_CXXFLAGS, GLU_LDFLAGS: $GLU_LDFLAGS, GLU_LIBS: $GLU_LIBS"])
119
120# CodePatterns library (needs operator<<(.., range<>) )
121AM_PATH_CODEPATTERNS([1.0.13], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
122
123# Checks for header files.
124AC_HEADER_STDC
125AC_CHECK_HEADERS([sys/time.h])
126AC_HEADER_STDBOOL
127
128AC_FUNC_MALLOC
129AC_FUNC_REALLOC
130AC_CHECK_FUNCS([floor pow sqrt strchr])
131
132# Checks for typedefs, structures, and compiler characteristics.
133AC_C_CONST
134AC_C_INLINE
135AC_C_RESTRICT
136AC_TYPE_SIZE_T
137
138# Checks for library functions.
139# check for GNU Scientific Library
140AC_CHECK_HEADERS([gsl/gsl_blas.h])
141AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
142AC_CHECK_LIB(gsl, main, [],
143 [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
144AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
145
146# add replacement/saturation hydrogen or not
147AC_ARG_ENABLE([hydrogen],AS_HELP_STRING([--enable-hydrogen],[Adding saturation hydrogen (default is yes)]),
148 [enable_hydrogen=$enableval], [enable_hydrogen=yes])
149if test x"$enable_hydrogen" = xyes; then
150 AC_DEFINE(ADDHYDROGEN,1, ["Adding saturation hydrogen"])
151 AC_SUBST(ADDHYDROGEN)
152fi
153
154# use CppUnit TestRunner or not
155AC_ARG_ENABLE([ecut],AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient (default is no)]),
156 [enable_ecut=$enableval], [enable_ecut=no])
157if test x"$enable_ecut" = xyes; then
158 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
159 AC_SUBST(HAVE_ECUT)
160fi
161
162# with valgrinding testsuite or not
163AC_ARG_WITH([valgrind],AS_HELP_STRING([--with-valgrind],[Use Valgrind on the testsuite (default is no)]),
164 [with_valgrind=$withval], [with_valgrind=no])
165if test x"$with_valgrind" = xyes; then
166 AC_CHECK_HEADER([valgrind/valgrind.h],
167 [
168 # check header
169 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
170 # check path
171 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
172 # set variables
173 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
174 AC_SUBST(VALGRIND)
175 ],
176 [
177 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
178 ]
179 )
180fi
181
182# Check for "extern inline", using a modified version
183# of the test for AC_C_INLINE from acspecific.mt
184AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
185[ac_cv_c_extern_inline=no
186AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
187extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
188double foo (double x) { return x + 1.0; };],
189[ foo(1.0) ],
190[ac_cv_c_extern_inline="yes"])
191])
192
193if test "$ac_cv_c_inline" != no ; then
194 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
195 AC_SUBST(HAVE_INLINE)
196fi
197
198#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
199
200# test suite
201AC_CONFIG_TESTDIR(tests/regression)
202AC_CONFIG_FILES([
203 tests/Makefile
204 tests/regression/atlocal
205 tests/regression/Makefile])
206AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder])
207AC_CONFIG_FILES([
208 tests/CodeChecks/atlocal
209 tests/CodeChecks/Makefile])
210AC_CONFIG_FILES([
211 tests/Fragmentations/Makefile
212 tests/Fragmentations/defs])
213AC_CONFIG_FILES([
214 tests/Tesselations/Makefile
215 tests/Tesselations/defs])
216AC_CONFIG_FILES([
217 doc/molecuilder.xml])
218AC_CONFIG_FILES([
219 MoleCuilder.pc:MoleCuilder.pc.in])
220AC_CONFIG_FILES([
221 LinearAlgebra.pc:LinearAlgebra.pc.in
222 LinearAlgebra-debug.pc:LinearAlgebra-debug.pc.in])
223AC_CONFIG_FILES([
224 Makefile
225 doc/Makefile
226 src/Makefile
227 src/Actions/Makefile
228 src/Exceptions/Makefile
229 src/Graph/Makefile
230 src/LinearAlgebra/Makefile
231 src/Parser/Makefile
232 src/RandomNumbers/Makefile
233 src/Shapes/Makefile
234 src/UIElements/Makefile
235])
236AC_CONFIG_FILES([
237 src/unittests/Makefile
238 src/Actions/unittests/Makefile
239 src/Descriptors/unittests/Makefile
240 src/LinearAlgebra/unittests/Makefile
241 src/Parser/unittests/Makefile
242 src/RandomNumbers/unittests/Makefile
243 src/Shapes/unittests/Makefile
244 src/UIElements/CommandLineUI/unittests/Makefile
245 src/UIElements/Menu/unittests/Makefile
246])
247AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.