Changeset 79de12 for src


Ignore:
Timestamp:
Sep 30, 2011, 8:19:37 AM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
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
Children:
fec381
Parents:
5a8f38
git-author:
Frederik Heber <heber@…> (05/10/11 12:35:11)
git-committer:
Frederik Heber <heber@…> (09/30/11 08:19:37)
Message:

Replaced *_boost_*.m4 by boost.m4 from tsuna.

  • https://github.com/tsuna/boost.m4/ has a very nice boost m4 macro to check for presence of boost headers and libraries, also setting the rpath correctly.
  • required changes in all Makefile.ams as BOOST_... variable names have changed.
  • added all .m4 files to EXTRA_DIST.
  • added Boost's LDFLAGS to libMolecuilderUI and ..QtUI's LDFLAGS such that libs in usual paths are found, too.
Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Descriptors/unittests/Makefile.am

    r5a8f38 r79de12  
    2626        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    2727        ../libMolecuilderRandomNumbers.la \
    28         ${CodePatterns_LIBS} \
    29         $(BOOST_LIB)
     28        ${CodePatterns_LIBS}
    3029
    3130
  • src/Makefile.am

    r5a8f38 r79de12  
    268268
    269269
    270 BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
    271270INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements -I$(top_srcdir)/LinearAlgebra/src
    272271
     
    283282molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
    284283#molecuilder_CXXFLAGS += -DNO_CACHING
    285 molecuilder_LDFLAGS = $(BOOST_LIB)
     284molecuilder_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    286285molecuilder_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
    287286molecuilder_LDADD = \
     
    289288        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    290289        ${CodePatterns_LIBS} \
    291         $(BOOST_LIB)
     290        $(BOOST_THREAD_LIBS) \
     291        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     292        $(BOOST_RANDOM_LIBS) \
     293        $(BOOST_SYSTEM_LIBS) \
     294        $(BOOST_FILESYSTEM_LIBS)
    292295
    293296#Stuff for building the GUI using Qt
    294297molecuildergui_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
    295 molecuildergui_CXXFLAGS = $(BOOST_CPPFLAGS) -DUSE_GUI_QT
    296 molecuildergui_LDFLAGS = $(BOOST_LIB)
     298molecuildergui_CXXFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
     299molecuildergui_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    297300molecuildergui_LDADD = \
    298301        libMolecuilderQtUI.la \
     
    300303        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    301304        ${CodePatterns_LIBS} \
    302         $(BOOST_LIB) \
     305        $(BOOST_THREAD_LIBS) \
     306        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     307        $(BOOST_RANDOM_LIBS) \
     308        $(BOOST_SYSTEM_LIBS) \
     309        $(BOOST_FILESYSTEM_LIBS) \
    303310        $(GUI_LIBS)
    304311
     
    311318        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    312319        ${CodePatterns_LIBS} \
    313         $(BOOST_LIB)
     320        $(BOOST_THREAD_LIBS)
    314321
    315322analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
     
    321328        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    322329        ${CodePatterns_LIBS} \
    323         $(BOOST_LIB)
     330        $(BOOST_THREAD_LIBS)
    324331
    325332unity_SOURCES = unity.cpp
    326 unity_LDADD = $(BOOST_LIB)
     333unity_LDADD = \
     334        ${CodePatterns_LIBS} \
     335        $(BOOST_THREAD_LIBS) \
     336        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     337        $(BOOST_RANDOM_LIBS) \
     338        $(BOOST_SYSTEM_LIBS) \
     339        $(BOOST_FILESYSTEM_LIBS)
    327340
    328341
  • src/Parser/unittests/Makefile.am

    r5a8f38 r79de12  
    3131        ../libMolecuilderUI.la \
    3232        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    33         ${CodePatterns_LIBS} \
    34         $(BOOST_LIB)
     33        ${CodePatterns_LIBS}
     34#       $(BOOST_LIB)
    3535
    3636
  • src/RandomNumbers/unittests/Makefile.am

    r5a8f38 r79de12  
    3030
    3131RANDOMNUMBERLIBS = \
    32         ${CodePatterns_LIBS} \
    33         $(BOOST_LIB)
     32        ${CodePatterns_LIBS}
     33#       $(BOOST_LIB)
    3434
    3535RandomNumberDistributionFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
  • src/Shapes/unittests/Makefile.am

    r5a8f38 r79de12  
    1919        ../libMolecuilderShapes.la \
    2020        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    21         ${CodePatterns_LIBS} \
    22         $(BOOST_LIB)
     21        ${CodePatterns_LIBS}
     22#       $(BOOST_LIB)
    2323
    2424ShapeUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
  • src/UIElements/CommandLineUI/unittests/Makefile.am

    r5a8f38 r79de12  
    2727  $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    2828  ../libMolecuilderRandomNumbers.la \
    29   ${CodePatterns_LIBS} \
    30   $(BOOST_LIB)
     29  ${CodePatterns_LIBS}
     30#  $(BOOST_LIB)
    3131
    3232#AUTOMAKE_OPTIONS = parallel-tests
  • src/UIElements/Makefile.am

    r5a8f38 r79de12  
    232232libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${QT_CXXFLAGS}
    233233libMolecuilderQtUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${QT_CXXFLAGS}
     234libMolecuilderUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
     235libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    234236# NOTE: ActionPrototypes BEFORE Actions!
    235237# this is to ensure that static Action prototypes are instantiated after
     
    244246        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    245247        libMolecuilderRandomNumbers.la \
    246         ${CodePatterns_LIBS} \
    247         $(BOOST_LIB)
     248        $(CodePatterns_LIBS) \
     249        $(BOOST_FILESYSTEM_LIBS) \
     250        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     251        $(BOOST_SYSTEM_LIBS)
     252
    248253libMolecuilderQtUI_la_LIBADD = \
    249254       ${QT_LIB_GUI} \
     
    271276## library file (.so).  The library ABI version is defined in configure.ac, so
    272277## that all version information is kept in one place.
    273 libMolecuilderUI_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
    274 #libMolecuilderQtUI_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
     278libMolecuilderUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
     279libMolecuilderQtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
    275280
    276281## The generated configuration header is installed in its own subdirectory of
  • src/UIElements/Menu/unittests/Makefile.am

    r5a8f38 r79de12  
    1818noinst_PROGRAMS += $(UIELEMENTSMENUTESTS)
    1919
    20 MENULIBS = \
    21   $(BOOST_LIB)
     20MENULIBS =
     21#  $(BOOST_LIB)
    2222
    2323
     
    4242  $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    4343  ../libMolecuilderRandomNumbers.la \
    44   ${CodePatterns_LIBS} \
    45   $(BOOST_LIB)
     44  ${CodePatterns_LIBS}
     45
     46#  $(BOOST_LIB)
    4647
    4748
  • src/unittests/Makefile.am

    r5a8f38 r79de12  
    1616INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
    1717
    18 AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
     18AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    1919AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
    2020
     
    4343noinst_PROGRAMS += $(GENERALTESTS) TestRunner
    4444
    45 BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
     45BOOST_LIB = $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_FILESYSTEM_LIBS) $(BOOST_SYSTEM_LIBS) $(BOOST_THREAD_LIBS)
    4646
    4747ALLLIBS = \
Note: See TracChangeset for help on using the changeset viewer.