source: configure.ac@ 9cd6bf

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

Set version to 1.1.4.

  • Codename "Jiroemon Kimura" (with currently 114 years one of the oldest people ever and still kicking).
  • Property mode set to 100644
File size: 8.1 KB
RevLine 
[14de469]1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
[e0f8c8]5AC_INIT(MoleCuilder, 1.1.4, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
[bf4b9f]6AC_CONFIG_AUX_DIR([build-aux])
[14de469]7AC_CONFIG_SRCDIR([src/builder.cpp])
[861874]8AC_CONFIG_HEADER([config.h libmolecuilder_config.h])
9AC_CONFIG_MACRO_DIR([m4])
[bf4b9f]10AC_CONFIG_SUBDIRS([LinearAlgebra])
[14de469]11
[dc322a]12# parallel-tests: use parallel test druver
13# color-tests: us coloring to indicate success/failure when available
14# tar-pax: use newer tar implementation with longer filename (>99 chars)
[4cf35ac]15AM_INIT_AUTOMAKE([dist-bzip2 1.5 parallel-tests color-tests tar-pax])
[14de469]16
17# Checks for programs.
[54a746]18AM_PATH_CPPUNIT(1.9.6)
[14de469]19AC_PROG_CXX
20AC_PROG_CC
[54a746]21AC_PROG_INSTALL
[14de469]22
[ec188c]23# use doxygen
24DX_HTML_FEATURE(ON)
25DX_PS_FEATURE(OFF)
26DX_PDF_FEATURE(OFF)
27DX_INIT_DOXYGEN(MoleCuilder, Doxyfile, $(docdir))
28
29# use libtool
[a0064e]30LT_INIT([static])
[861874]31
32# Define these substitions here to keep all version information in one place.
33# For information on how to properly maintain the library version information,
34# refer to the libtool manual, section "Updating library version information":
35# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
[e0f8c8]36AC_SUBST([MOLECUILDER_SO_VERSION], [5:0:0])
37AC_SUBST([MOLECUILDER_API_VERSION], [1.1.4])
[06aedc]38
[dc031c]39dnl this macro is used to get the arguments supplied
40dnl to the configure script (./configure --enable-debug)
41dnl Check if we have enable debug support.
42AC_MSG_CHECKING(whether to enable debugging)
43default="no"
44have_debug="no"
45AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes/full] turn on debugging
46 [default=$default]],, enable_debug=$default)
47if test "x$enable_debug" = "xyes"; then
48 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
49 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
50 have_debug="yes"
51elif test "x$enable_debug" = "xfull"; then
52 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
53 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
54 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
[060ba4]55 AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
[dc031c]56 have_debug="full"
57else
58 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
59 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
[060ba4]60 AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
[dc031c]61 have_debug="no"
62fi
63AC_MSG_RESULT($have_debug)
64AC_SUBST(HAVE_DEBUG)
65
66dnl this macro is used to get the arguments supplied
67dnl to the configure script (./configure --enable-debug)
68dnl Check if we have enable debug support.
69AC_MSG_CHECKING([whether to enable internal caching of values (speedup!)])
70default="yes"
71AC_ARG_ENABLE(cache, [ --enable-cache=[no/yes] turn on caching
72 [default=$default]],, enable_cache=$default)
73if test "x$enable_cache" = "xno"; then
74 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
75 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
76 AC_MSG_RESULT(no)
77else
78 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
79 AC_MSG_RESULT(yes)
80fi
81AC_SUBST(HAVE_CACHE)
82
83#AC_MSG_CHECKING(whether to enable profiling)
84#default="no"
85#AC_ARG_ENABLE(debug, [ --enable-profile=[no/yes] turn on profiling
86# [default=$default]],, enable_profile=$default)
87#if test "x$enable_profile" = "xyes"; then
88# CXXFLAGS="$CXXFLAGS -g -DDEBUG -pg"
89# DEBUG=-pg;
90# AC_MSG_RESULT(yes)
91#else
92# AC_MSG_RESULT(no)
93#fi
94
95#AC_MSG_CHECKING(whether to enable serialization)
96#default="no"
97#AC_ARG_ENABLE(debug, [ --enable-serialization=[no/yes] turn on serialization support
98# [default=$default]],, enable_serialization=$default)
99#if test "x$enable_serialization" = "xyes"; then
100# CXXFLAGS="$CXXFLAGS -DSERIALIZATION"
101# serialization=yes;
102# AC_MSG_RESULT(yes)
103#else
104# serialization=no;
105# AC_MSG_RESULT(no)
106#fi
107
[14de469]108# Checks for libraries.
[861874]109AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
[14de469]110
[f08ae7]111# Boost
[79de12]112BOOST_REQUIRE([1.40])
[f08ae7]113
114# Boost headers only
115BOOST_ANY
116BOOST_BIND
117BOOST_CONVERSION
[79de12]118BOOST_EXCEPTION
[f08ae7]119BOOST_FOREACH
120BOOST_FUNCTION
121BOOST_PREPROCESSOR
122BOOST_RANDOM
123BOOST_SMART_PTR
124BOOST_TOKENIZER
125
126# Boost headers with libraries
[79de12]127BOOST_FILESYSTEM
128BOOST_PROGRAM_OPTIONS
[d7d022]129BOOST_SERIALIZATION
[79de12]130BOOST_THREADS
[fa861b]131
[3027f8]132#QT4 libraries
[060ba4]133BNV_HAVE_QT
134#gw_CHECK_QT4
135#AX_CHECK_GLU
[dc031c]136#AC_MSG_NOTICE(["GLU_CFLAGS: $GLU_CFLAGS, GLU_CXXFLAGS: $GLU_CXXFLAGS, GLU_LDFLAGS: $GLU_LDFLAGS, GLU_LIBS: $GLU_LIBS"])
[cef1d7]137
[f08ae7]138
[7188b1]139# CodePatterns library (needs Observer::Channels )
140AM_PATH_CODEPATTERNS([1.1.5], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
[3027f8]141
[14de469]142# Checks for header files.
143AC_HEADER_STDC
144AC_CHECK_HEADERS([sys/time.h])
145AC_HEADER_STDBOOL
146
[d3a46d]147AC_FUNC_MALLOC
148AC_FUNC_REALLOC
149AC_CHECK_FUNCS([floor pow sqrt strchr])
150
[14de469]151# Checks for typedefs, structures, and compiler characteristics.
152AC_C_CONST
153AC_C_INLINE
154AC_C_RESTRICT
155AC_TYPE_SIZE_T
156
157# Checks for library functions.
158# check for GNU Scientific Library
[bd3e55]159AC_CHECK_HEADERS([gsl/gsl_blas.h])
160AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
161AC_CHECK_LIB(gsl, main, [],
162 [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
163AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
[14de469]164
165# add replacement/saturation hydrogen or not
166AC_ARG_ENABLE([hydrogen],AS_HELP_STRING([--enable-hydrogen],[Adding saturation hydrogen (default is yes)]),
167 [enable_hydrogen=$enableval], [enable_hydrogen=yes])
168if test x"$enable_hydrogen" = xyes; then
169 AC_DEFINE(ADDHYDROGEN,1, ["Adding saturation hydrogen"])
170 AC_SUBST(ADDHYDROGEN)
171fi
172
[490038]173# use CppUnit TestRunner or not
[6ac15b]174AC_ARG_ENABLE([ecut],AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient (default is no)]),
175 [enable_ecut=$enableval], [enable_ecut=no])
[9b6b2f]176if test x"$enable_ecut" = xyes; then
177 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
178 AC_SUBST(HAVE_ECUT)
179fi
180
[490038]181# with valgrinding testsuite or not
182AC_ARG_WITH([valgrind],AS_HELP_STRING([--with-valgrind],[Use Valgrind on the testsuite (default is no)]),
183 [with_valgrind=$withval], [with_valgrind=no])
184if test x"$with_valgrind" = xyes; then
185 AC_CHECK_HEADER([valgrind/valgrind.h],
186 [
187 # check header
188 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
189 # check path
190 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
191 # set variables
192 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
193 AC_SUBST(VALGRIND)
194 ],
195 [
196 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
197 ]
198 )
199fi
200
[14de469]201# Check for "extern inline", using a modified version
202# of the test for AC_C_INLINE from acspecific.mt
203AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
204[ac_cv_c_extern_inline=no
205AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
206extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
207double foo (double x) { return x + 1.0; };],
208[ foo(1.0) ],
209[ac_cv_c_extern_inline="yes"])
210])
211
212if test "$ac_cv_c_inline" != no ; then
213 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
214 AC_SUBST(HAVE_INLINE)
215fi
216
[bd3e55]217#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
[a19da5d]218
[0ca39c]219# test suite
[5079a0]220AC_CONFIG_FILES([
[689639]221 tests/Makefile])
222
223AC_CONFIG_TESTDIR(tests/CodeChecks)
[d0a719]224AC_CONFIG_FILES([
225 tests/CodeChecks/atlocal
226 tests/CodeChecks/Makefile])
[689639]227
[740d40]228AC_CONFIG_TESTDIR(tests/Fragmentations)
[038713]229AC_CONFIG_FILES([
[740d40]230 tests/Fragmentations/atlocal
231 tests/Fragmentations/Makefile])
232AC_CONFIG_FILES([tests/Fragmentations/molecuilder], [chmod +x tests/Fragmentations/molecuilder])
[689639]233
234AC_CONFIG_TESTDIR(tests/regression)
235AC_CONFIG_FILES([
236 tests/regression/atlocal
237 tests/regression/Makefile])
238AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder])
239
240AC_CONFIG_TESTDIR(tests/Tesselations)
[5079a0]241AC_CONFIG_FILES([
[a85f45]242 tests/Tesselations/atlocal
243 tests/Tesselations/Makefile])
244AC_CONFIG_FILES([tests/Tesselations/molecuilder], [chmod +x tests/Tesselations/molecuilder])
[689639]245
[5079a0]246AC_CONFIG_FILES([
247 doc/molecuilder.xml])
[861874]248AC_CONFIG_FILES([
[acbe1b]249 MoleCuilder.pc:MoleCuilder.pc.in])
[5079a0]250AC_CONFIG_FILES([
251 Makefile
[ec188c]252 doc/Makefile
[5079a0]253 src/Makefile
[85949a]254])
255AC_CONFIG_FILES([
[455573]256 src/unittests/Makefile
[85949a]257])
[14de469]258AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.