Changeset b61bd5 for configure.ac
- Timestamp:
- Oct 11, 2015, 7:13:04 AM (9 years ago)
- 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:
- d1831e
- Parents:
- 622720
- git-author:
- Frederik Heber <heber@…> (10/02/15 21:10:12)
- git-committer:
- Frederik Heber <heber@…> (10/11/15 07:13:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r622720 rb61bd5 319 319 enable_levmar="no") 320 320 AC_MSG_RESULT($enable_levmar) 321 # don't use AS_IF here as it expands (and tests) AC_F77_FUN even eif levmar321 # don't use AS_IF here as it expands (and tests) AC_F77_FUN even if levmar 322 322 # is disabled. 323 if test x"$enable_levmar" = x"yes"; then 324 AX_LAPACK([enable_levmar=yes],[enable_levmar=no]) 323 if test x"$enable_levmar" = xyes; then 324 AX_LAPACK([enable_levmar=yes], 325 [enable_levmar=no 326 AC_MSG_WARN(["Missing LAPACK, disabling off levmar"]) 327 ] 328 ) 325 329 fi 326 AS_IF([test x"$enable_levmar" = x"yes"],[ 330 AS_IF([test x"$enable_levmar" = xyes],[ 331 AC_MSG_CHECKING(for levmar presence via given path ) 327 332 AC_ARG_WITH( 328 333 [levmar], 329 334 [AS_HELP_STRING([--with-levmar], [give path to LevMar package])], 330 [have_levmar_path=$withval], 335 [have_levmar_path=$withval 336 enable_levmar=yes], 331 337 [enable_levmar=no]) 332 ],[enable_levmar=no]) 333 AS_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" 338 AC_MSG_RESULT($enable_levmar) 339 AS_IF([test -n "$have_levmar_path"],[ 340 LEVMAR_CPPFLAGS="-I${have_levmar_path}/include" 341 LEVMAR_LDFLAGS="-L${have_levmar_path}/lib" 342 LEVMAR_LIBS="-llevmar"],[ 343 PKG_CHECK_MODULES([LEVMAR],[levmar],[enable_levmar=yes],[ 344 AC_MSG_CHECKING(for levmar presence via locate) 345 enable_levmar=no 346 levmar_lib=`locate liblevmar.a | head -n 1 | xargs dirname` 347 levmar_include=`locate levmar.h | head -n 1 | xargs dirname` 348 if test -n "$levmar_lib"; then 349 if test -n "$levmar_include"; then 350 enable_levmar=yes 351 LEVMAR_CPPFLAGS="-I${levmar_include}" 352 LEVMAR_LDFLAGS="-L${levmar_lib}" 353 LEVMAR_LIBS="-llevmar" 354 fi 355 fi 356 AC_MSG_RESULT($enable_levmar) 357 ]) 358 ]) 359 ],[enable_levmar=no] 360 ) 361 AC_MSG_CHECKING(for levmar usability) 362 AS_IF([test x"$enable_levmar" = xyes],[ 337 363 AC_SUBST(LEVMAR_CPPFLAGS) 338 364 AC_SUBST(LEVMAR_LDFLAGS) 339 365 AC_SUBST(LEVMAR_LIBS) 340 AC_DEFINE(HAVE_LEVMAR,1, ["use levmar for non-linear minimisation/potential fitting."]) 341 ],[AC_MSG_WARN(["Missing LAPACK, disabling off levmar"])])366 AC_DEFINE(HAVE_LEVMAR,1, ["use levmar for non-linear minimisation/potential fitting."])]) 367 AC_MSG_RESULT($enable_levmar) 342 368 AM_CONDITIONAL([CONDLEVMAR], [test x"$enable_levmar" = x"yes"]) 343 369
Note:
See TracChangeset
for help on using the changeset viewer.