source: JobMarket/configure.ac@ c1d78c

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 c1d78c was c8446c, checked in by Frederik Heber <heber@…>, 13 years ago

Moved basic Fragmentation/Automation regression tests over to JobMarket.

  • removed scripts that were moved over to JobMarket in tests/regression.
  • Property mode set to 100644
File size: 6.0 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(JobMarket, 1.0.0, [heber@ins.uni-bonn.de], [jobmarket], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
6AC_CONFIG_AUX_DIR([build-aux])
7AC_CONFIG_SRCDIR([src/JobMarket/JobId.hpp])
8AC_CONFIG_HEADER([config.h libJobMarket_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_MAKE_SET
21AC_PROG_INSTALL
22
23DX_HTML_FEATURE(ON)
24DX_PS_FEATURE(OFF)
25DX_PDF_FEATURE(OFF)
26DX_INIT_DOXYGEN(JobMarket, Doxyfile, ${docdir})
27
28LT_INIT([static])
29
30# Define these substitions here to keep all version information in one place.
31# For information on how to properly maintain the library version information,
32# refer to the libtool manual, section "Updating library version information":
33# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
34AC_SUBST([JOBMARKET_SO_VERSION], [1:0:0])
35AC_SUBST([JOBMARKET_API_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)
41have_debug="no"
42AC_ARG_ENABLE(
43 [debug],
44 AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
45 enable_debug=$enableval,
46 enable_debug="no")
47AC_MSG_RESULT($enable_debug)
48AS_IF([test x"$enable_debug" = x"yes"],[
49 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
50 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
51 have_debug="yes"
52],[
53 AS_IF([test x"$enable_debug" = x"full"],[
54 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
55 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
56 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
57 AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
58 have_debug="full"
59 ],[
60 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
61 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
62 AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
63 have_debug="no"
64 ])
65])
66AC_SUBST(HAVE_DEBUG)
67
68dnl this macro is used to get the arguments supplied
69dnl to the configure script (./configure --enable-debug)
70dnl Check if we have enable debug support.
71AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
72AC_ARG_ENABLE(
73 [cache],
74 AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
75 enable_cache=$enableval,
76 enable_cache="yes")
77AC_MSG_RESULT($enable_cache)
78AS_IF([test x"$enable_cache" != x"no"],[
79 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
80],[
81 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
82 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
83])
84AC_SUBST(HAVE_CACHE)
85
86# CodePatterns library (serialization header before MemDebug.hpp )
87AM_PATH_CODEPATTERNS([1.2.1], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
88
89# boost
90BOOST_REQUIRE([1.40])
91
92# boost headers
93BOOST_BIND
94BOOST_EXCEPTION
95
96# boost libraries
97BOOST_ASIO
98BOOST_FILESYSTEM
99BOOST_IOSTREAMS
100BOOST_PROGRAM_OPTIONS
101BOOST_SERIALIZATION
102
103# Checks for header files.
104AC_HEADER_STDC
105AC_CHECK_HEADERS([unistd.h])
106
107
108# Checks for function
109AC_CHECK_FUNCS([atexit])
110AC_CHECK_FUNCS([gethostname])
111AC_CHECK_FUNCS([socket])
112AC_FUNC_MALLOC
113AC_FUNC_REALLOC
114AC_FUNC_ERROR_AT_LINE
115
116# Checks for typedefs, structures, and compiler characteristics.
117AC_HEADER_STDBOOL
118AC_TYPE_SIZE_T
119
120# use CppUnit TestRunner or not
121AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
122AC_ARG_ENABLE(
123 [ecut],
124 AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
125 enable_ecut=$disableval,
126 enable_ecut="no")
127AC_MSG_RESULT($enable_ecut)
128AS_IF([test x"$enable_ecut" = x"yes"],[
129 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
130 AC_SUBST(HAVE_ECUT)
131])
132AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
133
134# with valgrinding testsuite or not
135AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
136AC_ARG_ENABLE(
137 [valgrind],
138 AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
139 enable_valgrind=$enableval,
140 enable_valgrind="no")
141AC_MSG_RESULT($enable_valgrind)
142AS_IF([test x"$enable_valgrind" = x"yes"], [
143 AC_CHECK_HEADER([valgrind/valgrind.h],
144 [
145 # check header
146 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
147 # check path
148 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
149 # set variables
150 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
151 AC_SUBST(VALGRIND)
152 ],
153 [
154 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
155 ]
156 )
157])
158
159# Check for "extern inline", using a modified version
160# of the test for AC_C_INLINE from acspecific.mt
161AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
162[ac_cv_c_extern_inline=no
163AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
164extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
165double foo (double x) { return x + 1.0; };],
166[ foo(1.0) ],
167[ac_cv_c_extern_inline="yes"])
168])
169
170if test "$ac_cv_c_inline" != no ; then
171 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
172 AC_SUBST(HAVE_INLINE)
173fi
174
175#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
176
177# test suite
178AC_CONFIG_FILES([tests/Makefile])
179
180AC_CONFIG_TESTDIR(tests/CodeChecks)
181AC_CONFIG_FILES([
182 tests/CodeChecks/atlocal
183 tests/CodeChecks/Makefile])
184
185AC_CONFIG_TESTDIR(tests/regression)
186AC_CONFIG_FILES([
187 tests/regression/atlocal
188 tests/regression/Makefile])
189
190AC_CONFIG_FILES([
191 JobMarket.pc:JobMarket.pc.in
192 JobMarket-debug.pc:JobMarket-debug.pc.in])
193
194AC_CONFIG_FILES([
195 Makefile
196 doc/Makefile
197 src/JobMarket/Makefile
198 src/unittests/Makefile
199])
200
201AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.