source: configure.ac@ 20bb3b

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 20bb3b was bff5e2, checked in by Frederik Heber <heber@…>, 9 years ago

Set version to 1.5.0.

  • MoleCuilder library is now 15:0:0.
  • Codename "GUI" (the GUI has tests and is fully working).
  • Property mode set to 100644
File size: 16.0 KB
RevLine 
[14de469]1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
[bff5e2]5AC_INIT(MoleCuilder, 1.5.0, [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)
[3b35e7]15AM_INIT_AUTOMAKE([dist-bzip2 1.5 parallel-tests color-tests tar-pax subdir-objects])
[14de469]16
17# Checks for programs.
18AC_PROG_CXX
[54a746]19AC_PROG_INSTALL
[14de469]20
[0cfc27]21# check for cppunit (taken from svn.apache.org/../xmlbeanscxx)
22AM_PATH_CPPUNIT(1.9.6)
23AM_CONDITIONAL(CONDCPPUNIT, test "$CPPUNIT_LIBS")
24
[c015b3]25dnl Check if we have enable python
26# python module
27AC_MSG_CHECKING(whether to enable python module)
[f99714]28AC_ARG_ENABLE(
29 [python],
30 AS_HELP_STRING([--enable-python],[turn on python module [default=yes]]),
31 enable_python=$enableval,
32 enable_python="yes")
[c015b3]33AC_MSG_RESULT($enable_python)
34AS_IF([test x"$enable_python" != x"no"],[
35 # Python (for boost::python)
36 AM_PATH_PYTHON([2.2])
37 AX_PYTHON
38 AC_DEFINE(HAVE_PYTHON,1, ["Build python module and scripts."])
39])
40AM_CONDITIONAL([CONDPYTHON], [test x"$enable_python" != x"no"])
41AC_SUBST(HAVE_PYTHON)
42
[74459a]43dnl Check whether no extra thread for ActionQueue shall be used
44AC_MSG_CHECKING(whether to enable ActionQueue's run thread)
45AC_ARG_ENABLE(
46 [action_thread],
47 AS_HELP_STRING([--enable-action-thread],[turn on extra run thread for ActionQueue [default=yes]]),
48 enable_action_thread=$enableval,
49 enable_action_thread="no"
50)
51AC_MSG_RESULT($enable_action_thread)
52AS_IF([test x"$enable_action_thread" != x"no"],[
53 AC_DEFINE(HAVE_ACTION_THREAD,1, ["Have extra run thread for ActionQueue."])
54])
55AM_CONDITIONAL([CONDACTIONTHREAD], [test x"$enable_action_thread" != x"no"])
56AC_SUBST(HAVE_ACTION_THREAD)
57
[c015b3]58dnl Check if we have enable qtgui
[e5cec4]59# Qt programs
[c015b3]60AC_MSG_CHECKING(whether to enable Qt-based GUI)
[f99714]61AC_ARG_ENABLE(
62 [qtgui],
63 AS_HELP_STRING([--enable-qtgui],[turn on Qt GUI compilation [default=yes]]),
64 enable_qtgui=$enableval,
65 enable_qtgui="yes")
[c015b3]66AC_MSG_RESULT($enable_qtgui)
67AS_IF([test x"$enable_qtgui" != x"no"],[
[93909a]68 AC_ARG_WITH(
69 [Qt-bin],
70 [AS_HELP_STRING([--with-Qt-bin], [give path to Qt binaries])],
71 [have_qtgui_path=$withval],
72 have_qtgui_path="")
[196702]73 AS_IF([test x"$have_qtgui_path" != x""],[
74 AC_PATH_PROGS([QT_MOC],
75 [moc-qt4 moc],
76 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])],
77 [$have_qtgui_path]
78 )
79 AC_PATH_PROGS([QT_RCC],
80 [rcc-qt4 rcc],
81 [AC_MSG_ERROR(["Qts rcc not found, please use --with-Qt-bin."])],
82 [$have_qtgui_path]
83 )
84 AC_PATH_PROGS([QT_UIC],
85 [uic-qt4 uic],
86 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])],
87 [$have_qtgui_path]
88 )
89 ],[
90 AC_PATH_PROGS([QT_MOC],
91 [moc-qt4 moc],
92 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])]
93 )
94 AC_PATH_PROGS([QT_RCC],
95 [rcc-qt4 rcc],
96 [AC_MSG_ERROR(["Qts rcc not found, please use --with-Qt-bin."])]
97 )
98 AC_PATH_PROGS([QT_UIC],
99 [uic-qt4 uic],
100 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])]
101 )
102 ])
[c015b3]103 PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [
104 ])
105 AC_SUBST([QT_CFLAGS])
106 AC_SUBST([QT_LIBS])
107 AC_DEFINE(HAVE_QTGUI,1, ["Build Qt-based GUI"])
[e5cec4]108])
[c015b3]109AM_CONDITIONAL([CONDQTGUI], [test x"$enable_qtgui" != x"no"])
110AC_SUBST(HAVE_QTGUI)
[e5cec4]111
[c76b8b]112# check additionally for QWT to enable plotting of potentials
113AC_MSG_CHECKING(whether to enable Qwt-based plotting)
114#enable_qwt=yes
115AC_ARG_ENABLE(
116 [qwt],
117 AS_HELP_STRING([--enable-qwt],[turn on Qwt compilation [default=yes]]),
118 enable_qwt=$enableval,
119 enable_qwt="yes")
120AC_MSG_RESULT($enable_qwt)
121AS_IF([test x"$enable_qwt" != x"no"],[
122 MOL_AC_HAVE_QWT_IFELSE(
123 [
124 enable_qwt=yes
125 AC_DEFINE(HAVE_QWT,1, ["Build Qwt-based plotting"])
126 ],
127 [
128 enable_qwt=no
129 AC_MSG_WARN([Qwt not found, disabling plotting in QtUI.])
130 ]
131 )
132])
133AM_CONDITIONAL([CONDQWT], [test x"$enable_qwt" != x"no"])
134AC_SUBST(HAVE_QWT)
135
[ec188c]136# use doxygen
137DX_HTML_FEATURE(ON)
138DX_PS_FEATURE(OFF)
139DX_PDF_FEATURE(OFF)
[3158e6]140DX_INIT_DOXYGEN(MoleCuilder, Doxyfile, ${docdir})
[ec188c]141
[6029a6]142# use docbook
143AX_CHECK_DOCBOOK
144
[ec188c]145# use libtool
[a0064e]146LT_INIT([static])
[861874]147
148# Define these substitions here to keep all version information in one place.
149# For information on how to properly maintain the library version information,
150# refer to the libtool manual, section "Updating library version information":
151# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
[bff5e2]152AC_SUBST([MOLECUILDER_SO_VERSION], [15:0:0])
153AC_SUBST([MOLECUILDER_API_VERSION], [1.5.0])
[06aedc]154
[dc031c]155dnl this macro is used to get the arguments supplied
156dnl to the configure script (./configure --enable-debug)
157dnl Check if we have enable debug support.
158AC_MSG_CHECKING(whether to enable debugging)
159have_debug="no"
[f99714]160AC_ARG_ENABLE(
161 [debug],
162 AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
163 enable_debug=$enableval,
164 enable_debug="no")
165AC_MSG_RESULT($enable_debug)
166AS_IF([test x"$enable_debug" = x"yes"],[
[dc031c]167 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
168 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
169 have_debug="yes"
[f99714]170],[
171 AS_IF([test x"$enable_debug" = x"full"],[
172 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
173 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
174 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
[4d6d6a]175 dnl AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
[f99714]176 have_debug="full"
177 ],[
178 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
179 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
[4d6d6a]180 AC_DEFINE(QT_NO_DEBUG_OUTPUT,, ["Disable Qt debug messages."])
[f99714]181 have_debug="no"
182 ])
183])
[dc031c]184AC_SUBST(HAVE_DEBUG)
185
186dnl this macro is used to get the arguments supplied
187dnl to the configure script (./configure --enable-debug)
188dnl Check if we have enable debug support.
[f3b8a5]189AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
[f99714]190AC_ARG_ENABLE(
191 [cache],
192 AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
193 enable_cache=$enableval,
194 enable_cache="yes")
[f3b8a5]195AC_MSG_RESULT($enable_cache)
[f99714]196AS_IF([test x"$enable_cache" != x"no"],[
197 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
198],[
[dc031c]199 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
200 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
[f99714]201])
[dc031c]202AC_SUBST(HAVE_CACHE)
203
[14de469]204# Checks for libraries.
[861874]205AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
[14de469]206
[7d0a4e]207# Pthreads
208ACX_PTHREAD()
209
[f08ae7]210# Boost
[79de12]211BOOST_REQUIRE([1.40])
[f08ae7]212
213# Boost headers only
214BOOST_ANY
[794bc8]215BOOST_ARRAY
[4f04ab8]216BOOST_BIMAP
[f08ae7]217BOOST_BIND
[503acc1]218BOOST_CAST
[f08ae7]219BOOST_CONVERSION
[79de12]220BOOST_EXCEPTION
[f08ae7]221BOOST_FOREACH
222BOOST_FUNCTION
[619a0e]223BOOST_FUSION
[4f04ab8]224BOOST_GRAPH
[30c753]225BOOST_ITERATOR
[794bc8]226BOOST_MULTIARRAY
[4da4de]227BOOST_MULTIINDEXCONTAINER
[619a0e]228BOOST_MPL
[f08ae7]229BOOST_PREPROCESSOR
230BOOST_RANDOM
231BOOST_SMART_PTR
[7f570c]232BOOST_STRING_ALGO
[f08ae7]233BOOST_TOKENIZER
234
235# Boost headers with libraries
[79de12]236BOOST_FILESYSTEM
[d920b9]237BOOST_IOSTREAMS
[79de12]238BOOST_PROGRAM_OPTIONS
[c015b3]239AS_IF([test x"$enable_python" != x"no"], [BOOST_PYTHON])
[d7d022]240BOOST_SERIALIZATION
[79de12]241BOOST_THREADS
[fa861b]242
[f08ae7]243
[574d377]244# CodePatterns library (requiring ObservedValue.hpp)
245AM_PATH_CODEPATTERNS([1.3.0], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
[3027f8]246
[004d5c]247# JobMarket library (needs boost/archive/iserializer.hpp before MemDebug.hpp)
[830adf]248AC_MSG_CHECKING(whether to enable jobmarket)
[004d5c]249AC_ARG_ENABLE(
250 [jobmarket],
251 AS_HELP_STRING([--enable-jobmarket],[turn on JobMarket feature [default=yes]]),
252 enable_jobmarket=$enableval,
253 enable_jobmarket="yes")
254AC_MSG_RESULT($enable_jobmarket)
255AS_IF([test x"$enable_jobmarket" != x"no"],[
[d6a7b9]256 # JobMarket library (needs SystemCommandJob with suffix)
257 AM_PATH_JOBMARKET([1.1.5], $have_debug,[
[004d5c]258 # the following is only required if we have JobMarket
259 BOOST_ASIO
260 AC_DEFINE(HAVE_JOBMARKET,1, ["use JobMarket to calculate fragment jobs."])
261 ],[
262 enable_jobmarket="no"
263 ])
264]
265#[
266# AC_DEFINE(HAVE_JOBMARKET,0, ["use JobMarket to calculate fragment jobs."])
267#]
268)
269AC_SUBST(HAVE_JOBMARKET)
270AM_CONDITIONAL([CONDJOBMARKET], [test x"$enable_jobmarket" = x"yes"])
[3027f8]271
[d2a0f6d]272# VMG library
273AC_MSG_CHECKING(whether to compile in long-range support via VMG)
274AC_ARG_ENABLE(
275 [vmg],
276 [AS_HELP_STRING([--enable-vmg], [turn on long-range potential calculation via VMG [default=no]])],
277 [enable_vmg=$enableval],
278 enable_vmg="no")
279AC_MSG_RESULT($enable_vmg)
280AS_IF([test x"$enable_vmg" != x"no"],[
281 PKG_CHECK_MODULES(VMG, VMG >= 0.1)
282 AC_SUBST(VMG_CFLAGS)
283 AC_SUBST(VMG_LIBS)
[69c733]284 AC_DEFINE(HAVE_VMG,1, ["use VMG to calculate long-range contributions."])
[8a8c8c]285
286 # check whether to use mpi
287 AC_ARG_WITH(
288 [vmg-mpi],
289 [AS_HELP_STRING([--with-vmg-mpi], [whether to use MPI for communication in VMGJobs])],
290 [with_vmg_mpi=yes],
291 [with_vmg_mpi=no])
292 AS_IF(
293 [test "x$with_vmg_mpi" != xno],
294 [
295 AC_LANG_SAVE
296 AC_LANG_CPLUSPLUS
297 LX_FIND_MPI
298 AC_LANG_RESTORE
299 AS_IF([test "x$have_CXX_mpi" = xyes],[
300 AC_DEFINE([MPICH_SKIP_MPICXX], [1], [Skip C++ bindings])
301 AC_DEFINE([OMPI_SKIP_MPICXX], [1], [Skip C++ bindings])
302 AC_DEFINE([MPI_NO_CPPBIND], [1], [Skip C++ bindings])
303 AC_DEFINE([_MPICC_H], [1], [Skip C++ bindings])
304 AC_DEFINE([MPIBULL_SKIP_MPICXX], [1], [Skip C++ bindings])
305 ])
306 ],
307 [])
[d2a0f6d]308])
309AM_CONDITIONAL([CONDVMG], [test x"$enable_vmg" = x"yes"])
[8a8c8c]310AM_CONDITIONAL([CONDVMGMPI], [test x"$have_CXX_mpi" = x"yes"])
[d2a0f6d]311
312
[f06d52]313# Check for Levenberg-Marquardt implementation
[830adf]314AC_MSG_CHECKING(whether to enable function fitting via levmar)
[48d20d]315AC_ARG_ENABLE(
316 [levmar],
317 AS_HELP_STRING([--enable-levmar],[turn on LevMar feature [default=no]]),
318 enable_levmar=$enableval,
319 enable_levmar="no")
[4d5dfa]320AC_MSG_RESULT($enable_levmar)
321# don't use AS_IF here as it expands (and tests) AC_F77_FUN evene if levmar
322# is disabled.
323if test x"$enable_levmar" = x"yes"; then
324 AX_LAPACK([enable_levmar=yes],[enable_levmar=no])
325fi
[f06d52]326AS_IF([test x"$enable_levmar" = x"yes"],[
327 AC_ARG_WITH(
328 [levmar],
329 [AS_HELP_STRING([--with-levmar], [give path to LevMar package])],
330 [have_levmar_path=$withval],
331 [enable_levmar=no])
332 ],[enable_levmar=no])
333AS_IF([test x"$enable_levmar" = x"yes"],[
334 LEVMAR_CPPFLAGS="-I${have_levmar_path}/include"
335 LEVMAR_LDFLAGS="-L${have_levmar_path}/lib"
336 LEVMAR_LIBS="-llevmar"
337 AC_SUBST(LEVMAR_CPPFLAGS)
338 AC_SUBST(LEVMAR_LDFLAGS)
339 AC_SUBST(LEVMAR_LIBS)
[24ac59]340 AC_DEFINE(HAVE_LEVMAR,1, ["use levmar for non-linear minimisation/potential fitting."])
[830adf]341 ],[AC_MSG_WARN(["Missing LAPACK, disabling off levmar"])])
[f06d52]342AM_CONDITIONAL([CONDLEVMAR], [test x"$enable_levmar" = x"yes"])
343
[14de469]344# Checks for header files.
345AC_HEADER_STDC
346AC_CHECK_HEADERS([sys/time.h])
347AC_HEADER_STDBOOL
348
[d3a46d]349AC_FUNC_MALLOC
350AC_FUNC_REALLOC
351AC_CHECK_FUNCS([floor pow sqrt strchr])
352
[14de469]353# Checks for typedefs, structures, and compiler characteristics.
354AC_C_CONST
355AC_C_INLINE
356AC_C_RESTRICT
357AC_TYPE_SIZE_T
358
359# Checks for library functions.
360# check for GNU Scientific Library
[bd3e55]361AC_CHECK_HEADERS([gsl/gsl_blas.h])
[db1a72]362AC_SEARCH_LIBS(dnrm2, gslblas gslcblas goto blas cblas)
363AC_SEARCH_LIBS(cblas_dnrm2, gslblas gslcblas blas cblas)
364AC_SEARCH_LIBS(gsl_blas_dnrm2,, gsl)
365#AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
366AC_CHECK_LIB(gsl, main)
[14de469]367
[490038]368# use CppUnit TestRunner or not
[f99714]369AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
370AC_ARG_ENABLE(
371 [ecut],
372 AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
373 enable_ecut=$disableval,
374 enable_ecut="no")
375AC_MSG_RESULT($enable_ecut)
376AS_IF([test x"$enable_ecut" = x"yes"],[
[9b6b2f]377 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
378 AC_SUBST(HAVE_ECUT)
[f99714]379])
[fbbcde]380AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
[9b6b2f]381
[490038]382# with valgrinding testsuite or not
[f3b8a5]383AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
[f99714]384AC_ARG_ENABLE(
385 [valgrind],
386 AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
387 enable_valgrind=$enableval,
388 enable_valgrind="no")
389AC_MSG_RESULT($enable_valgrind)
390AS_IF([test x"$enable_valgrind" = x"yes"], [
[490038]391 AC_CHECK_HEADER([valgrind/valgrind.h],
392 [
393 # check header
394 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
395 # check path
396 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
397 # set variables
398 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
399 AC_SUBST(VALGRIND)
400 ],
401 [
402 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
403 ]
404 )
[f3b8a5]405])
[490038]406
[14de469]407# Check for "extern inline", using a modified version
408# of the test for AC_C_INLINE from acspecific.mt
409AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
410[ac_cv_c_extern_inline=no
411AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
412extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
413double foo (double x) { return x + 1.0; };],
414[ foo(1.0) ],
415[ac_cv_c_extern_inline="yes"])
416])
417
418if test "$ac_cv_c_inline" != no ; then
419 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
420 AC_SUBST(HAVE_INLINE)
421fi
422
[bd3e55]423#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
[a19da5d]424
[0ca39c]425# test suite
[878044]426
[5079a0]427AC_CONFIG_FILES([
[689639]428 tests/Makefile])
429
[abfc95]430AC_CONFIG_TESTDIR(tests/Calculations)
431AC_CONFIG_FILES([
432 tests/Calculations/atlocal
433 tests/Calculations/Makefile])
434AC_CONFIG_FILES([tests/Calculations/molecuilder], [chmod +x tests/Calculations/molecuilder])
435
[689639]436AC_CONFIG_TESTDIR(tests/CodeChecks)
[d0a719]437AC_CONFIG_FILES([
438 tests/CodeChecks/atlocal
439 tests/CodeChecks/Makefile])
[689639]440
[740d40]441AC_CONFIG_TESTDIR(tests/Fragmentations)
[038713]442AC_CONFIG_FILES([
[740d40]443 tests/Fragmentations/atlocal
444 tests/Fragmentations/Makefile])
445AC_CONFIG_FILES([tests/Fragmentations/molecuilder], [chmod +x tests/Fragmentations/molecuilder])
[689639]446
[0f0407]447AC_CONFIG_TESTDIR(tests/GuiChecks)
448AC_CONFIG_FILES([
449 tests/GuiChecks/atlocal
450 tests/GuiChecks/Makefile])
451AC_CONFIG_FILES([tests/GuiChecks/molecuilder], [chmod +x tests/GuiChecks/molecuilder])
452AC_CONFIG_FILES([tests/GuiChecks/molecuilderguitest], [chmod +x tests/GuiChecks/molecuilderguitest])
[c66ae6]453AC_CONFIG_FILES([tests/GuiChecks/adjacencymatcher], [chmod +x tests/GuiChecks/adjacencymatcher])
[42b40a]454AC_CONFIG_FILES([tests/GuiChecks/trianglematcher], [chmod +x tests/GuiChecks/trianglematcher])
[0f0407]455
[004d5c]456AC_CONFIG_TESTDIR(tests/JobMarket)
457AC_CONFIG_FILES([
458 tests/JobMarket/atlocal
459 tests/JobMarket/Makefile])
460AC_CONFIG_FILES([tests/JobMarket/molecuilder], [chmod +x tests/JobMarket/molecuilder])
461
[689639]462AC_CONFIG_TESTDIR(tests/regression)
463AC_CONFIG_FILES([
464 tests/regression/atlocal
465 tests/regression/Makefile])
466AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder])
[c66ae6]467AC_CONFIG_FILES([tests/regression/adjacencymatcher], [chmod +x tests/regression/adjacencymatcher])
[7d146a]468AC_CONFIG_FILES([tests/regression/trianglematcher], [chmod +x tests/regression/trianglematcher])
[893426]469AC_CONFIG_FILES([tests/regression/runpython], [chmod +x tests/regression/runpython])
[689639]470
471AC_CONFIG_TESTDIR(tests/Tesselations)
[5079a0]472AC_CONFIG_FILES([
[a85f45]473 tests/Tesselations/atlocal
474 tests/Tesselations/Makefile])
475AC_CONFIG_FILES([tests/Tesselations/molecuilder], [chmod +x tests/Tesselations/molecuilder])
[7d146a]476AC_CONFIG_FILES([tests/Tesselations/trianglematcher], [chmod +x tests/Tesselations/trianglematcher])
[689639]477
[5079a0]478AC_CONFIG_FILES([
479 doc/molecuilder.xml])
[6029a6]480AC_CONFIG_FILES([
481 doc/userguide/catalog.xml:doc/userguide/catalog.xml.in])
[861874]482AC_CONFIG_FILES([
[878044]483 MoleCuilder.pc:MoleCuilder.pc.in])
[5079a0]484AC_CONFIG_FILES([
[ec188c]485 doc/Makefile
[6029a6]486 doc/userguide/Makefile
487])
488AC_CONFIG_FILES([
489 Makefile
[938ffd]490 src/Makefile
[c66ae6]491 src/Bond/AdjacencyMatcher/Makefile
[7d146a]492 src/Tesselation/TriangleMatcher/Makefile
[5b991a]493 data/icons/Makefile
[04e1fb]494 utils/Makefile
[85949a]495])
496AC_CONFIG_FILES([
[878044]497 src/unittests/Makefile
[85949a]498])
[d0b3aca]499
[c015b3]500# produce python scripts and tests only when python's present
[24e19e]501AC_CONFIG_TESTDIR([tests/Python])
502AC_CONFIG_FILES([tests/Python/atlocal])
[c015b3]503AM_COND_IF([CONDPYTHON],[
[9fd196]504 AC_CONFIG_FILES([utils/Python/boxmaker.py:utils/Python/boxmaker.py.in], [chmod +x utils/Python/boxmaker.py])
505 AC_CONFIG_FILES([utils/Python/python_wrapper:utils/Python/python_wrapper.in], [chmod +x utils/Python/python_wrapper])
[c015b3]506 AC_CONFIG_FILES([tests/Python/run], [chmod +x tests/Python/run])
507])
[24e19e]508AC_CONFIG_FILES([tests/Python/Makefile])
[d0b3aca]509
[14de469]510AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.