Révision | f4fa9e092b22d27091967defe6b01812642c1c55 (tree) |
---|---|
l'heure | 2013-07-26 17:57:14 |
Auteur | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Generate files by autoreconf 2.69 with automake 1.11.6. #28588
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1437 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -60,8 +60,10 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | ||
60 | 60 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
61 | 61 | am__aclocal_m4_deps = $(top_srcdir)/m4/ax_blas.m4 \ |
62 | 62 | $(top_srcdir)/m4/ax_boost_base.m4 \ |
63 | - $(top_srcdir)/m4/ax_lapack.m4 $(top_srcdir)/m4/ax_openmp.m4 \ | |
64 | - $(top_srcdir)/configure.ac | |
63 | + $(top_srcdir)/m4/ax_boost_mpi.m4 \ | |
64 | + $(top_srcdir)/m4/ax_boost_serialization.m4 \ | |
65 | + $(top_srcdir)/m4/ax_lapack.m4 $(top_srcdir)/m4/ax_mpi.m4 \ | |
66 | + $(top_srcdir)/m4/ax_openmp.m4 $(top_srcdir)/configure.ac | |
65 | 67 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
66 | 68 | $(ACLOCAL_M4) |
67 | 69 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
@@ -72,9 +74,9 @@ CONFIG_CLEAN_FILES = | ||
72 | 74 | CONFIG_CLEAN_VPATH_FILES = |
73 | 75 | am__installdirs = "$(DESTDIR)$(bindir)" |
74 | 76 | PROGRAMS = $(bin_PROGRAMS) |
75 | -am_MolDS_OBJECTS = Main.$(OBJEXT) MolDSException.$(OBJEXT) \ | |
76 | - Blas.$(OBJEXT) Lapack.$(OBJEXT) Utilities.$(OBJEXT) \ | |
77 | - Enums.$(OBJEXT) MathUtilities.$(OBJEXT) \ | |
77 | +am_MolDS_OBJECTS = Main.$(OBJEXT) MpiProcess.$(OBJEXT) \ | |
78 | + MolDSException.$(OBJEXT) Blas.$(OBJEXT) Lapack.$(OBJEXT) \ | |
79 | + Utilities.$(OBJEXT) Enums.$(OBJEXT) MathUtilities.$(OBJEXT) \ | |
78 | 80 | MallocerFreer.$(OBJEXT) EularAngle.$(OBJEXT) \ |
79 | 81 | Parameters.$(OBJEXT) Atom.$(OBJEXT) Hatom.$(OBJEXT) \ |
80 | 82 | Liatom.$(OBJEXT) Catom.$(OBJEXT) Natom.$(OBJEXT) \ |
@@ -138,6 +140,8 @@ AWK = @AWK@ | ||
138 | 140 | BLAS_LIBS = @BLAS_LIBS@ |
139 | 141 | BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ |
140 | 142 | BOOST_LDFLAGS = @BOOST_LDFLAGS@ |
143 | +BOOST_MPI_LIB = @BOOST_MPI_LIB@ | |
144 | +BOOST_SERIALIZATION_LIB = @BOOST_SERIALIZATION_LIB@ | |
141 | 145 | CC = @CC@ |
142 | 146 | CCDEPMODE = @CCDEPMODE@ |
143 | 147 | CFLAGS = @CFLAGS@ |
@@ -170,6 +174,8 @@ LIBS = @LIBS@ | ||
170 | 174 | LTLIBOBJS = @LTLIBOBJS@ |
171 | 175 | MAKEINFO = @MAKEINFO@ |
172 | 176 | MKDIR_P = @MKDIR_P@ |
177 | +MPICC = @MPICC@ | |
178 | +MPILIBS = @MPILIBS@ | |
173 | 179 | OBJEXT = @OBJEXT@ |
174 | 180 | OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@ |
175 | 181 | PACKAGE = @PACKAGE@ |
@@ -236,9 +242,9 @@ target_alias = @target_alias@ | ||
236 | 242 | top_build_prefix = @top_build_prefix@ |
237 | 243 | top_builddir = @top_builddir@ |
238 | 244 | top_srcdir = @top_srcdir@ |
239 | -MolDS_SOURCES = Main.cpp base/MolDSException.cpp wrappers/Blas.cpp \ | |
240 | - wrappers/Lapack.cpp base/Utilities.cpp base/Enums.cpp \ | |
241 | - base/MathUtilities.cpp base/MallocerFreer.cpp \ | |
245 | +MolDS_SOURCES = Main.cpp mpi/MpiProcess.cpp base/MolDSException.cpp \ | |
246 | + wrappers/Blas.cpp wrappers/Lapack.cpp base/Utilities.cpp \ | |
247 | + base/Enums.cpp base/MathUtilities.cpp base/MallocerFreer.cpp \ | |
242 | 248 | base/EularAngle.cpp base/Parameters.cpp base/atoms/Atom.cpp \ |
243 | 249 | base/atoms/Hatom.cpp base/atoms/Liatom.cpp \ |
244 | 250 | base/atoms/Catom.cpp base/atoms/Natom.cpp base/atoms/Oatom.cpp \ |
@@ -255,14 +261,14 @@ MolDS_SOURCES = Main.cpp base/MolDSException.cpp wrappers/Blas.cpp \ | ||
255 | 261 | optimization/Optimizer.cpp optimization/ConjugateGradient.cpp \ |
256 | 262 | optimization/SteepestDescent.cpp optimization/BFGS.cpp \ |
257 | 263 | base/factories/OptimizerFactory.cpp base/MolDS.cpp \ |
258 | - base/PrintController.h base/MolDSException.h base/Uncopyable.h \ | |
259 | - wrappers/Blas.h wrappers/Lapack.h base/Utilities.h \ | |
260 | - base/Enums.h base/MathUtilities.h base/MallocerFreer.h \ | |
261 | - base/EularAngle.h base/Parameters.h base/atoms/Atom.h \ | |
262 | - base/atoms/Hatom.h base/atoms/Liatom.h base/atoms/Catom.h \ | |
263 | - base/atoms/Natom.h base/atoms/Oatom.h base/atoms/Satom.h \ | |
264 | - base/factories/AtomFactory.h base/Molecule.h \ | |
265 | - base/InputParser.h base/GTOExpansionSTO.h \ | |
264 | + base/Uncopyable.h mpi/MpiProcess.h base/PrintController.h \ | |
265 | + base/MolDSException.h wrappers/Blas.h wrappers/Lapack.h \ | |
266 | + base/Utilities.h base/Enums.h base/MathUtilities.h \ | |
267 | + base/MallocerFreer.h base/EularAngle.h base/Parameters.h \ | |
268 | + base/atoms/Atom.h base/atoms/Hatom.h base/atoms/Liatom.h \ | |
269 | + base/atoms/Catom.h base/atoms/Natom.h base/atoms/Oatom.h \ | |
270 | + base/atoms/Satom.h base/factories/AtomFactory.h \ | |
271 | + base/Molecule.h base/InputParser.h base/GTOExpansionSTO.h \ | |
266 | 272 | base/RealSphericalHarmonicsIndex.h base/loggers/MOLogger.h \ |
267 | 273 | base/loggers/DensityLogger.h base/loggers/HoleDensityLogger.h \ |
268 | 274 | base/loggers/ParticleDensityLogger.h \ |
@@ -278,7 +284,7 @@ MolDS_SOURCES = Main.cpp base/MolDSException.cpp wrappers/Blas.cpp \ | ||
278 | 284 | ACLOCAL_AMFLAGS = -I m4 |
279 | 285 | AM_CXXFLAGS = $(OPENMP_CXXFLAGS) |
280 | 286 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
281 | -AM_LDFLAGS = $(BOOST_LDFLAGS) | |
287 | +AM_LDFLAGS = $(BOOST_LDFLAGS) $(BOOST_MPI_LIB) $(BOOST_SERIALIZATION_LIB) | |
282 | 288 | all: config.h |
283 | 289 | $(MAKE) $(AM_MAKEFLAGS) all-am |
284 | 290 |
@@ -413,6 +419,7 @@ distclean-compile: | ||
413 | 419 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MolDS.Po@am__quote@ |
414 | 420 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MolDSException.Po@am__quote@ |
415 | 421 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Molecule.Po@am__quote@ |
422 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MpiProcess.Po@am__quote@ | |
416 | 423 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NASCO.Po@am__quote@ |
417 | 424 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Natom.Po@am__quote@ |
418 | 425 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Oatom.Po@am__quote@ |
@@ -444,6 +451,20 @@ distclean-compile: | ||
444 | 451 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
445 | 452 | @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` |
446 | 453 | |
454 | +MpiProcess.o: mpi/MpiProcess.cpp | |
455 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MpiProcess.o -MD -MP -MF $(DEPDIR)/MpiProcess.Tpo -c -o MpiProcess.o `test -f 'mpi/MpiProcess.cpp' || echo '$(srcdir)/'`mpi/MpiProcess.cpp | |
456 | +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/MpiProcess.Tpo $(DEPDIR)/MpiProcess.Po | |
457 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='mpi/MpiProcess.cpp' object='MpiProcess.o' libtool=no @AMDEPBACKSLASH@ | |
458 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
459 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MpiProcess.o `test -f 'mpi/MpiProcess.cpp' || echo '$(srcdir)/'`mpi/MpiProcess.cpp | |
460 | + | |
461 | +MpiProcess.obj: mpi/MpiProcess.cpp | |
462 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MpiProcess.obj -MD -MP -MF $(DEPDIR)/MpiProcess.Tpo -c -o MpiProcess.obj `if test -f 'mpi/MpiProcess.cpp'; then $(CYGPATH_W) 'mpi/MpiProcess.cpp'; else $(CYGPATH_W) '$(srcdir)/mpi/MpiProcess.cpp'; fi` | |
463 | +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/MpiProcess.Tpo $(DEPDIR)/MpiProcess.Po | |
464 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='mpi/MpiProcess.cpp' object='MpiProcess.obj' libtool=no @AMDEPBACKSLASH@ | |
465 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
466 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MpiProcess.obj `if test -f 'mpi/MpiProcess.cpp'; then $(CYGPATH_W) 'mpi/MpiProcess.cpp'; else $(CYGPATH_W) '$(srcdir)/mpi/MpiProcess.cpp'; fi` | |
467 | + | |
447 | 468 | MolDSException.o: base/MolDSException.cpp |
448 | 469 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MolDSException.o -MD -MP -MF $(DEPDIR)/MolDSException.Tpo -c -o MolDSException.o `test -f 'base/MolDSException.cpp' || echo '$(srcdir)/'`base/MolDSException.cpp |
449 | 470 | @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/MolDSException.Tpo $(DEPDIR)/MolDSException.Po |
@@ -971,5 +971,8 @@ AC_SUBST([am__untar]) | ||
971 | 971 | |
972 | 972 | m4_include([m4/ax_blas.m4]) |
973 | 973 | m4_include([m4/ax_boost_base.m4]) |
974 | +m4_include([m4/ax_boost_mpi.m4]) | |
975 | +m4_include([m4/ax_boost_serialization.m4]) | |
974 | 976 | m4_include([m4/ax_lapack.m4]) |
977 | +m4_include([m4/ax_mpi.m4]) | |
975 | 978 | m4_include([m4/ax_openmp.m4]) |
@@ -20,9 +20,15 @@ | ||
20 | 20 | header file. */ |
21 | 21 | #undef HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_FACTORIALS_HPP |
22 | 22 | |
23 | +/* define if the Boost::Mpi library is available */ | |
24 | +#undef HAVE_BOOST_MPI | |
25 | + | |
23 | 26 | /* Define to 1 if you have the <boost/random.hpp> header file. */ |
24 | 27 | #undef HAVE_BOOST_RANDOM_HPP |
25 | 28 | |
29 | +/* define if the Boost::Serialization library is available */ | |
30 | +#undef HAVE_BOOST_SERIALIZATION | |
31 | + | |
26 | 32 | /* Define to 1 if you have the <boost/shared_ptr.hpp> header file. */ |
27 | 33 | #undef HAVE_BOOST_SHARED_PTR_HPP |
28 | 34 |
@@ -101,6 +107,9 @@ | ||
101 | 107 | /* Define to 1 if you have the <mkl.h> header file. */ |
102 | 108 | #undef HAVE_MKL_H |
103 | 109 | |
110 | +/* Define if you have the MPI library. */ | |
111 | +#undef HAVE_MPI | |
112 | + | |
104 | 113 | /* Define to 1 if you have the <omp.h> header file. */ |
105 | 114 | #undef HAVE_OMP_H |
106 | 115 |
@@ -626,6 +626,8 @@ ac_subst_vars='am__EXEEXT_FALSE | ||
626 | 626 | am__EXEEXT_TRUE |
627 | 627 | LTLIBOBJS |
628 | 628 | LIBOBJS |
629 | +BOOST_MPI_LIB | |
630 | +BOOST_SERIALIZATION_LIB | |
629 | 631 | BOOST_LDFLAGS |
630 | 632 | BOOST_CPPFLAGS |
631 | 633 | LAPACK_LIBS |
@@ -643,6 +645,8 @@ OPENMP_CXXFLAGS | ||
643 | 645 | EGREP |
644 | 646 | GREP |
645 | 647 | CXXCPP |
648 | +MPILIBS | |
649 | +MPICC | |
646 | 650 | ac_ct_F77 |
647 | 651 | FFLAGS |
648 | 652 | F77 |
@@ -740,6 +744,8 @@ with_blas | ||
740 | 744 | with_lapack |
741 | 745 | with_boost |
742 | 746 | with_boost_libdir |
747 | +with_boost_serialization | |
748 | +with_boost_mpi | |
743 | 749 | ' |
744 | 750 | ac_precious_vars='build_alias |
745 | 751 | host_alias |
@@ -754,6 +760,7 @@ CXXFLAGS | ||
754 | 760 | CCC |
755 | 761 | F77 |
756 | 762 | FFLAGS |
763 | +MPICC | |
757 | 764 | CXXCPP' |
758 | 765 | |
759 | 766 |
@@ -1393,6 +1400,15 @@ Optional Packages: | ||
1393 | 1400 | this parameter only if default library detection |
1394 | 1401 | fails and you know exactly where your boost |
1395 | 1402 | libraries are located. |
1403 | + --with-boost-serialization[=special-lib] | |
1404 | + use the Serialization library from boost - it is | |
1405 | + possible to specify a certain library for the linker | |
1406 | + e.g. | |
1407 | + --with-boost-serialization=boost_serialization-gcc-mt-d-1_33_1 | |
1408 | + --with-boost-mpi[=special-lib] | |
1409 | + use the Mpi library from boost - it is possible to | |
1410 | + specify a certain library for the linker e.g. | |
1411 | + --with-boost-mpi=boost_mpi-gcc-mt-d-1_33_1 | |
1396 | 1412 | |
1397 | 1413 | Some influential environment variables: |
1398 | 1414 | CC C compiler command |
@@ -1406,6 +1422,7 @@ Some influential environment variables: | ||
1406 | 1422 | CXXFLAGS C++ compiler flags |
1407 | 1423 | F77 Fortran 77 compiler command |
1408 | 1424 | FFLAGS Fortran 77 compiler flags |
1425 | + MPICC MPI C compiler command | |
1409 | 1426 | CXXCPP C++ preprocessor |
1410 | 1427 | |
1411 | 1428 | Use these variables to override the choices made by `configure' or to help |
@@ -1602,6 +1619,119 @@ fi | ||
1602 | 1619 | |
1603 | 1620 | } # ac_fn_f77_try_compile |
1604 | 1621 | |
1622 | +# ac_fn_c_try_link LINENO | |
1623 | +# ----------------------- | |
1624 | +# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1625 | +ac_fn_c_try_link () | |
1626 | +{ | |
1627 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1628 | + rm -f conftest.$ac_objext conftest$ac_exeext | |
1629 | + if { { ac_try="$ac_link" | |
1630 | +case "(($ac_try" in | |
1631 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1632 | + *) ac_try_echo=$ac_try;; | |
1633 | +esac | |
1634 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1635 | +$as_echo "$ac_try_echo"; } >&5 | |
1636 | + (eval "$ac_link") 2>conftest.err | |
1637 | + ac_status=$? | |
1638 | + if test -s conftest.err; then | |
1639 | + grep -v '^ *+' conftest.err >conftest.er1 | |
1640 | + cat conftest.er1 >&5 | |
1641 | + mv -f conftest.er1 conftest.err | |
1642 | + fi | |
1643 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1644 | + test $ac_status = 0; } && { | |
1645 | + test -z "$ac_c_werror_flag" || | |
1646 | + test ! -s conftest.err | |
1647 | + } && test -s conftest$ac_exeext && { | |
1648 | + test "$cross_compiling" = yes || | |
1649 | + test -x conftest$ac_exeext | |
1650 | + }; then : | |
1651 | + ac_retval=0 | |
1652 | +else | |
1653 | + $as_echo "$as_me: failed program was:" >&5 | |
1654 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
1655 | + | |
1656 | + ac_retval=1 | |
1657 | +fi | |
1658 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1659 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1660 | + # interfere with the next link command; also delete a directory that is | |
1661 | + # left behind by Apple's compiler. We do this before executing the actions. | |
1662 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1663 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1664 | + as_fn_set_status $ac_retval | |
1665 | + | |
1666 | +} # ac_fn_c_try_link | |
1667 | + | |
1668 | +# ac_fn_c_check_func LINENO FUNC VAR | |
1669 | +# ---------------------------------- | |
1670 | +# Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1671 | +ac_fn_c_check_func () | |
1672 | +{ | |
1673 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1674 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1675 | +$as_echo_n "checking for $2... " >&6; } | |
1676 | +if eval \${$3+:} false; then : | |
1677 | + $as_echo_n "(cached) " >&6 | |
1678 | +else | |
1679 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1680 | +/* end confdefs.h. */ | |
1681 | +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1682 | + For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1683 | +#define $2 innocuous_$2 | |
1684 | + | |
1685 | +/* System header to define __stub macros and hopefully few prototypes, | |
1686 | + which can conflict with char $2 (); below. | |
1687 | + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1688 | + <limits.h> exists even on freestanding compilers. */ | |
1689 | + | |
1690 | +#ifdef __STDC__ | |
1691 | +# include <limits.h> | |
1692 | +#else | |
1693 | +# include <assert.h> | |
1694 | +#endif | |
1695 | + | |
1696 | +#undef $2 | |
1697 | + | |
1698 | +/* Override any GCC internal prototype to avoid an error. | |
1699 | + Use char because int might match the return type of a GCC | |
1700 | + builtin and then its argument prototype would still apply. */ | |
1701 | +#ifdef __cplusplus | |
1702 | +extern "C" | |
1703 | +#endif | |
1704 | +char $2 (); | |
1705 | +/* The GNU C library defines this for functions which it implements | |
1706 | + to always fail with ENOSYS. Some functions are actually named | |
1707 | + something starting with __ and the normal name is an alias. */ | |
1708 | +#if defined __stub_$2 || defined __stub___$2 | |
1709 | +choke me | |
1710 | +#endif | |
1711 | + | |
1712 | +int | |
1713 | +main () | |
1714 | +{ | |
1715 | +return $2 (); | |
1716 | + ; | |
1717 | + return 0; | |
1718 | +} | |
1719 | +_ACEOF | |
1720 | +if ac_fn_c_try_link "$LINENO"; then : | |
1721 | + eval "$3=yes" | |
1722 | +else | |
1723 | + eval "$3=no" | |
1724 | +fi | |
1725 | +rm -f core conftest.err conftest.$ac_objext \ | |
1726 | + conftest$ac_exeext conftest.$ac_ext | |
1727 | +fi | |
1728 | +eval ac_res=\$$3 | |
1729 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1730 | +$as_echo "$ac_res" >&6; } | |
1731 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1732 | + | |
1733 | +} # ac_fn_c_check_func | |
1734 | + | |
1605 | 1735 | # ac_fn_cxx_try_link LINENO |
1606 | 1736 | # ------------------------- |
1607 | 1737 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
@@ -1916,52 +2046,6 @@ $as_echo "$ac_res" >&6; } | ||
1916 | 2046 | |
1917 | 2047 | } # ac_fn_cxx_check_func |
1918 | 2048 | |
1919 | -# ac_fn_c_try_link LINENO | |
1920 | -# ----------------------- | |
1921 | -# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1922 | -ac_fn_c_try_link () | |
1923 | -{ | |
1924 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1925 | - rm -f conftest.$ac_objext conftest$ac_exeext | |
1926 | - if { { ac_try="$ac_link" | |
1927 | -case "(($ac_try" in | |
1928 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1929 | - *) ac_try_echo=$ac_try;; | |
1930 | -esac | |
1931 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1932 | -$as_echo "$ac_try_echo"; } >&5 | |
1933 | - (eval "$ac_link") 2>conftest.err | |
1934 | - ac_status=$? | |
1935 | - if test -s conftest.err; then | |
1936 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1937 | - cat conftest.er1 >&5 | |
1938 | - mv -f conftest.er1 conftest.err | |
1939 | - fi | |
1940 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1941 | - test $ac_status = 0; } && { | |
1942 | - test -z "$ac_c_werror_flag" || | |
1943 | - test ! -s conftest.err | |
1944 | - } && test -s conftest$ac_exeext && { | |
1945 | - test "$cross_compiling" = yes || | |
1946 | - test -x conftest$ac_exeext | |
1947 | - }; then : | |
1948 | - ac_retval=0 | |
1949 | -else | |
1950 | - $as_echo "$as_me: failed program was:" >&5 | |
1951 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1952 | - | |
1953 | - ac_retval=1 | |
1954 | -fi | |
1955 | - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1956 | - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1957 | - # interfere with the next link command; also delete a directory that is | |
1958 | - # left behind by Apple's compiler. We do this before executing the actions. | |
1959 | - rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1960 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1961 | - as_fn_set_status $ac_retval | |
1962 | - | |
1963 | -} # ac_fn_c_try_link | |
1964 | - | |
1965 | 2049 | # ac_fn_c_try_run LINENO |
1966 | 2050 | # ---------------------- |
1967 | 2051 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
@@ -3757,7 +3841,7 @@ if test -z "$CXX"; then | ||
3757 | 3841 | CXX=$CCC |
3758 | 3842 | else |
3759 | 3843 | if test -n "$ac_tool_prefix"; then |
3760 | - for ac_prog in icpc g++ | |
3844 | + for ac_prog in mpiicpc mpicxx | |
3761 | 3845 | do |
3762 | 3846 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3763 | 3847 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
@@ -3801,7 +3885,7 @@ fi | ||
3801 | 3885 | fi |
3802 | 3886 | if test -z "$CXX"; then |
3803 | 3887 | ac_ct_CXX=$CXX |
3804 | - for ac_prog in icpc g++ | |
3888 | + for ac_prog in mpiicpc mpicxx | |
3805 | 3889 | do |
3806 | 3890 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3807 | 3891 | set dummy $ac_prog; ac_word=$2 |
@@ -4344,76 +4428,119 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
4344 | 4428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4345 | 4429 | |
4346 | 4430 | |
4347 | -ac_ext=cpp | |
4348 | -ac_cpp='$CXXCPP $CPPFLAGS' | |
4349 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4350 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4351 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4352 | 4431 | |
4353 | 4432 | |
4354 | 4433 | |
4355 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 | |
4356 | -$as_echo_n "checking for main in -lpthread... " >&6; } | |
4357 | -if ${ac_cv_lib_pthread_main+:} false; then : | |
4434 | + | |
4435 | + | |
4436 | + | |
4437 | + for ac_prog in mpicc hcc mpxlc_r mpxlc mpcc cmpicc | |
4438 | +do | |
4439 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4440 | +set dummy $ac_prog; ac_word=$2 | |
4441 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4442 | +$as_echo_n "checking for $ac_word... " >&6; } | |
4443 | +if ${ac_cv_prog_MPICC+:} false; then : | |
4444 | + $as_echo_n "(cached) " >&6 | |
4445 | +else | |
4446 | + if test -n "$MPICC"; then | |
4447 | + ac_cv_prog_MPICC="$MPICC" # Let the user override the test. | |
4448 | +else | |
4449 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4450 | +for as_dir in $PATH | |
4451 | +do | |
4452 | + IFS=$as_save_IFS | |
4453 | + test -z "$as_dir" && as_dir=. | |
4454 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
4455 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4456 | + ac_cv_prog_MPICC="$ac_prog" | |
4457 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4458 | + break 2 | |
4459 | + fi | |
4460 | +done | |
4461 | + done | |
4462 | +IFS=$as_save_IFS | |
4463 | + | |
4464 | +fi | |
4465 | +fi | |
4466 | +MPICC=$ac_cv_prog_MPICC | |
4467 | +if test -n "$MPICC"; then | |
4468 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 | |
4469 | +$as_echo "$MPICC" >&6; } | |
4470 | +else | |
4471 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4472 | +$as_echo "no" >&6; } | |
4473 | +fi | |
4474 | + | |
4475 | + | |
4476 | + test -n "$MPICC" && break | |
4477 | +done | |
4478 | +test -n "$MPICC" || MPICC="$CC" | |
4479 | + | |
4480 | + ax_mpi_save_CC="$CC" | |
4481 | + CC="$MPICC" | |
4482 | + | |
4483 | + | |
4484 | + | |
4485 | +if test x = x"$MPILIBS"; then | |
4486 | + ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" | |
4487 | +if test "x$ac_cv_func_MPI_Init" = xyes; then : | |
4488 | + MPILIBS=" " | |
4489 | +fi | |
4490 | + | |
4491 | +fi | |
4492 | + | |
4493 | +if test x = x"$MPILIBS"; then | |
4494 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 | |
4495 | +$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } | |
4496 | +if ${ac_cv_lib_mpi_MPI_Init+:} false; then : | |
4358 | 4497 | $as_echo_n "(cached) " >&6 |
4359 | 4498 | else |
4360 | 4499 | ac_check_lib_save_LIBS=$LIBS |
4361 | -LIBS="-lpthread $LIBS" | |
4500 | +LIBS="-lmpi $LIBS" | |
4362 | 4501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4363 | 4502 | /* end confdefs.h. */ |
4364 | 4503 | |
4365 | - | |
4504 | +/* Override any GCC internal prototype to avoid an error. | |
4505 | + Use char because int might match the return type of a GCC | |
4506 | + builtin and then its argument prototype would still apply. */ | |
4507 | +#ifdef __cplusplus | |
4508 | +extern "C" | |
4509 | +#endif | |
4510 | +char MPI_Init (); | |
4366 | 4511 | int |
4367 | 4512 | main () |
4368 | 4513 | { |
4369 | -return main (); | |
4514 | +return MPI_Init (); | |
4370 | 4515 | ; |
4371 | 4516 | return 0; |
4372 | 4517 | } |
4373 | 4518 | _ACEOF |
4374 | -if ac_fn_cxx_try_link "$LINENO"; then : | |
4375 | - ac_cv_lib_pthread_main=yes | |
4519 | +if ac_fn_c_try_link "$LINENO"; then : | |
4520 | + ac_cv_lib_mpi_MPI_Init=yes | |
4376 | 4521 | else |
4377 | - ac_cv_lib_pthread_main=no | |
4522 | + ac_cv_lib_mpi_MPI_Init=no | |
4378 | 4523 | fi |
4379 | 4524 | rm -f core conftest.err conftest.$ac_objext \ |
4380 | 4525 | conftest$ac_exeext conftest.$ac_ext |
4381 | 4526 | LIBS=$ac_check_lib_save_LIBS |
4382 | 4527 | fi |
4383 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 | |
4384 | -$as_echo "$ac_cv_lib_pthread_main" >&6; } | |
4385 | -if test "x$ac_cv_lib_pthread_main" = xyes; then : | |
4386 | - cat >>confdefs.h <<_ACEOF | |
4387 | -#define HAVE_LIBPTHREAD 1 | |
4388 | -_ACEOF | |
4389 | - | |
4390 | - LIBS="-lpthread $LIBS" | |
4391 | - | |
4528 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 | |
4529 | +$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } | |
4530 | +if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : | |
4531 | + MPILIBS="-lmpi" | |
4392 | 4532 | fi |
4393 | 4533 | |
4394 | - | |
4395 | -CXXFLAGS_SAVED="$CXXFLAGS" | |
4396 | - | |
4397 | - | |
4398 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C++ compiler" >&5 | |
4399 | -$as_echo_n "checking for OpenMP flag of C++ compiler... " >&6; } | |
4400 | -if ${ax_cv_cxx_openmp+:} false; then : | |
4534 | +fi | |
4535 | +if test x = x"$MPILIBS"; then | |
4536 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 | |
4537 | +$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } | |
4538 | +if ${ac_cv_lib_mpich_MPI_Init+:} false; then : | |
4401 | 4539 | $as_echo_n "(cached) " >&6 |
4402 | 4540 | else |
4403 | - saveCXXFLAGS=$CXXFLAGS | |
4404 | -ax_cv_cxx_openmp=unknown | |
4405 | -# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), | |
4406 | -# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none | |
4407 | -ax_openmp_flags="-openmp -fopenmp -mp -xopenmp -omp -qsmp=omp none" | |
4408 | -if test "x$OPENMP_CXXFLAGS" != x; then | |
4409 | - ax_openmp_flags="$OPENMP_CXXFLAGS $ax_openmp_flags" | |
4410 | -fi | |
4411 | -for ax_openmp_flag in $ax_openmp_flags; do | |
4412 | - case $ax_openmp_flag in | |
4413 | - none) CXXFLAGS=$saveCXX ;; | |
4414 | - *) CXXFLAGS="$saveCXXFLAGS $ax_openmp_flag" ;; | |
4415 | - esac | |
4416 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4541 | + ac_check_lib_save_LIBS=$LIBS | |
4542 | +LIBS="-lmpich $LIBS" | |
4543 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4417 | 4544 | /* end confdefs.h. */ |
4418 | 4545 | |
4419 | 4546 | /* Override any GCC internal prototype to avoid an error. |
@@ -4422,18 +4549,166 @@ for ax_openmp_flag in $ax_openmp_flags; do | ||
4422 | 4549 | #ifdef __cplusplus |
4423 | 4550 | extern "C" |
4424 | 4551 | #endif |
4425 | -char omp_set_num_threads (); | |
4552 | +char MPI_Init (); | |
4426 | 4553 | int |
4427 | 4554 | main () |
4428 | 4555 | { |
4429 | -return omp_set_num_threads (); | |
4556 | +return MPI_Init (); | |
4430 | 4557 | ; |
4431 | 4558 | return 0; |
4432 | 4559 | } |
4433 | 4560 | _ACEOF |
4434 | -if ac_fn_cxx_try_link "$LINENO"; then : | |
4435 | - ax_cv_cxx_openmp=$ax_openmp_flag; break | |
4436 | -fi | |
4561 | +if ac_fn_c_try_link "$LINENO"; then : | |
4562 | + ac_cv_lib_mpich_MPI_Init=yes | |
4563 | +else | |
4564 | + ac_cv_lib_mpich_MPI_Init=no | |
4565 | +fi | |
4566 | +rm -f core conftest.err conftest.$ac_objext \ | |
4567 | + conftest$ac_exeext conftest.$ac_ext | |
4568 | +LIBS=$ac_check_lib_save_LIBS | |
4569 | +fi | |
4570 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 | |
4571 | +$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } | |
4572 | +if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : | |
4573 | + MPILIBS="-lmpich" | |
4574 | +fi | |
4575 | + | |
4576 | +fi | |
4577 | + | |
4578 | +if test x != x"$MPILIBS"; then | |
4579 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 | |
4580 | +$as_echo_n "checking for mpi.h... " >&6; } | |
4581 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4582 | +/* end confdefs.h. */ | |
4583 | +#include <mpi.h> | |
4584 | +int | |
4585 | +main () | |
4586 | +{ | |
4587 | + | |
4588 | + ; | |
4589 | + return 0; | |
4590 | +} | |
4591 | +_ACEOF | |
4592 | +if ac_fn_c_try_compile "$LINENO"; then : | |
4593 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4594 | +$as_echo "yes" >&6; } | |
4595 | +else | |
4596 | + MPILIBS="" | |
4597 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4598 | +$as_echo "no" >&6; } | |
4599 | +fi | |
4600 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4601 | +fi | |
4602 | + | |
4603 | +CC="$ax_mpi_save_CC" | |
4604 | + | |
4605 | + | |
4606 | + | |
4607 | +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
4608 | +if test x = x"$MPILIBS"; then | |
4609 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4610 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4611 | +as_fn_error $? "Cannot find any MPI compiler! | |
4612 | +See \`config.log' for more details" "$LINENO" 5; } | |
4613 | + : | |
4614 | +else | |
4615 | + | |
4616 | +$as_echo "#define HAVE_MPI 1" >>confdefs.h | |
4617 | + | |
4618 | + : | |
4619 | +fi | |
4620 | + | |
4621 | + | |
4622 | +ac_ext=cpp | |
4623 | +ac_cpp='$CXXCPP $CPPFLAGS' | |
4624 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4625 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4626 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4627 | + | |
4628 | + | |
4629 | + | |
4630 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 | |
4631 | +$as_echo_n "checking for main in -lpthread... " >&6; } | |
4632 | +if ${ac_cv_lib_pthread_main+:} false; then : | |
4633 | + $as_echo_n "(cached) " >&6 | |
4634 | +else | |
4635 | + ac_check_lib_save_LIBS=$LIBS | |
4636 | +LIBS="-lpthread $LIBS" | |
4637 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4638 | +/* end confdefs.h. */ | |
4639 | + | |
4640 | + | |
4641 | +int | |
4642 | +main () | |
4643 | +{ | |
4644 | +return main (); | |
4645 | + ; | |
4646 | + return 0; | |
4647 | +} | |
4648 | +_ACEOF | |
4649 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
4650 | + ac_cv_lib_pthread_main=yes | |
4651 | +else | |
4652 | + ac_cv_lib_pthread_main=no | |
4653 | +fi | |
4654 | +rm -f core conftest.err conftest.$ac_objext \ | |
4655 | + conftest$ac_exeext conftest.$ac_ext | |
4656 | +LIBS=$ac_check_lib_save_LIBS | |
4657 | +fi | |
4658 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 | |
4659 | +$as_echo "$ac_cv_lib_pthread_main" >&6; } | |
4660 | +if test "x$ac_cv_lib_pthread_main" = xyes; then : | |
4661 | + cat >>confdefs.h <<_ACEOF | |
4662 | +#define HAVE_LIBPTHREAD 1 | |
4663 | +_ACEOF | |
4664 | + | |
4665 | + LIBS="-lpthread $LIBS" | |
4666 | + | |
4667 | +fi | |
4668 | + | |
4669 | + | |
4670 | +CXXFLAGS_SAVED="$CXXFLAGS" | |
4671 | + | |
4672 | + | |
4673 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C++ compiler" >&5 | |
4674 | +$as_echo_n "checking for OpenMP flag of C++ compiler... " >&6; } | |
4675 | +if ${ax_cv_cxx_openmp+:} false; then : | |
4676 | + $as_echo_n "(cached) " >&6 | |
4677 | +else | |
4678 | + saveCXXFLAGS=$CXXFLAGS | |
4679 | +ax_cv_cxx_openmp=unknown | |
4680 | +# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), | |
4681 | +# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none | |
4682 | +ax_openmp_flags="-openmp -fopenmp -mp -xopenmp -omp -qsmp=omp none" | |
4683 | +if test "x$OPENMP_CXXFLAGS" != x; then | |
4684 | + ax_openmp_flags="$OPENMP_CXXFLAGS $ax_openmp_flags" | |
4685 | +fi | |
4686 | +for ax_openmp_flag in $ax_openmp_flags; do | |
4687 | + case $ax_openmp_flag in | |
4688 | + none) CXXFLAGS=$saveCXX ;; | |
4689 | + *) CXXFLAGS="$saveCXXFLAGS $ax_openmp_flag" ;; | |
4690 | + esac | |
4691 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4692 | +/* end confdefs.h. */ | |
4693 | + | |
4694 | +/* Override any GCC internal prototype to avoid an error. | |
4695 | + Use char because int might match the return type of a GCC | |
4696 | + builtin and then its argument prototype would still apply. */ | |
4697 | +#ifdef __cplusplus | |
4698 | +extern "C" | |
4699 | +#endif | |
4700 | +char omp_set_num_threads (); | |
4701 | +int | |
4702 | +main () | |
4703 | +{ | |
4704 | +return omp_set_num_threads (); | |
4705 | + ; | |
4706 | + return 0; | |
4707 | +} | |
4708 | +_ACEOF | |
4709 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
4710 | + ax_cv_cxx_openmp=$ax_openmp_flag; break | |
4711 | +fi | |
4437 | 4712 | rm -f core conftest.err conftest.$ac_objext \ |
4438 | 4713 | conftest$ac_exeext conftest.$ac_ext |
4439 | 4714 | done |
@@ -5387,7 +5662,6 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5387 | 5662 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5388 | 5663 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5389 | 5664 | |
5390 | - | |
5391 | 5665 | ac_ext=f |
5392 | 5666 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5393 | 5667 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
@@ -7704,6 +7978,531 @@ fi | ||
7704 | 7978 | |
7705 | 7979 | |
7706 | 7980 | |
7981 | + | |
7982 | +# Check whether --with-boost-serialization was given. | |
7983 | +if test "${with_boost_serialization+set}" = set; then : | |
7984 | + withval=$with_boost_serialization; | |
7985 | + if test "$withval" = "no"; then | |
7986 | + want_boost="no" | |
7987 | + elif test "$withval" = "yes"; then | |
7988 | + want_boost="yes" | |
7989 | + ax_boost_user_serialization_lib="" | |
7990 | + else | |
7991 | + want_boost="yes" | |
7992 | + ax_boost_user_serialization_lib="$withval" | |
7993 | + fi | |
7994 | + | |
7995 | +else | |
7996 | + want_boost="yes" | |
7997 | + | |
7998 | +fi | |
7999 | + | |
8000 | + | |
8001 | + if test "x$want_boost" = "xyes"; then | |
8002 | + | |
8003 | + CPPFLAGS_SAVED="$CPPFLAGS" | |
8004 | + CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | |
8005 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BOOST_CPPFLAGS $BOOST_CPPFLAGS" >&5 | |
8006 | +$as_echo "$as_me: WARNING: BOOST_CPPFLAGS $BOOST_CPPFLAGS" >&2;} | |
8007 | + export CPPFLAGS | |
8008 | + | |
8009 | + LDFLAGS_SAVED="$LDFLAGS" | |
8010 | + LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | |
8011 | + export LDFLAGS | |
8012 | + | |
8013 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Serialization library is available" >&5 | |
8014 | +$as_echo_n "checking whether the Boost::Serialization library is available... " >&6; } | |
8015 | +if ${ax_cv_boost_serialization+:} false; then : | |
8016 | + $as_echo_n "(cached) " >&6 | |
8017 | +else | |
8018 | + ac_ext=cpp | |
8019 | +ac_cpp='$CXXCPP $CPPFLAGS' | |
8020 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8021 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8022 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8023 | + | |
8024 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8025 | +/* end confdefs.h. */ | |
8026 | +#include <fstream> | |
8027 | + #include <boost/archive/text_oarchive.hpp> | |
8028 | + #include <boost/archive/text_iarchive.hpp> | |
8029 | + | |
8030 | +#ifdef F77_DUMMY_MAIN | |
8031 | + | |
8032 | +# ifdef __cplusplus | |
8033 | + extern "C" | |
8034 | +# endif | |
8035 | + int F77_DUMMY_MAIN() { return 1; } | |
8036 | + | |
8037 | +#endif | |
8038 | +int | |
8039 | +main () | |
8040 | +{ | |
8041 | +std::ofstream ofs("filename"); | |
8042 | + boost::archive::text_oarchive oa(ofs); | |
8043 | + return 0; | |
8044 | + | |
8045 | + ; | |
8046 | + return 0; | |
8047 | +} | |
8048 | +_ACEOF | |
8049 | +if ac_fn_cxx_try_compile "$LINENO"; then : | |
8050 | + ax_cv_boost_serialization=yes | |
8051 | +else | |
8052 | + ax_cv_boost_serialization=no | |
8053 | +fi | |
8054 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8055 | + ac_ext=cpp | |
8056 | +ac_cpp='$CXXCPP $CPPFLAGS' | |
8057 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8058 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8059 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8060 | + | |
8061 | + | |
8062 | +fi | |
8063 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_serialization" >&5 | |
8064 | +$as_echo "$ax_cv_boost_serialization" >&6; } | |
8065 | + if test "x$ax_cv_boost_serialization" = "xyes"; then | |
8066 | + | |
8067 | +$as_echo "#define HAVE_BOOST_SERIALIZATION /**/" >>confdefs.h | |
8068 | + | |
8069 | + BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` | |
8070 | + if test "x$ax_boost_user_serialization_lib" = "x"; then | |
8071 | + for libextension in `ls $BOOSTLIBDIR/libboost_serialization*.so* $BOOSTLIBDIR/libboost_serialization*.dylib* $BOOSTLIBDIR/libboost_serialization*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_serialization.*\)\.so.*$;\1;' -e 's;^lib\(boost_serialization.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_serialization.*\)\.a*$;\1;'` ; do | |
8072 | + ax_lib=${libextension} | |
8073 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` | |
8074 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 | |
8075 | +$as_echo_n "checking for exit in -l$ax_lib... " >&6; } | |
8076 | +if eval \${$as_ac_Lib+:} false; then : | |
8077 | + $as_echo_n "(cached) " >&6 | |
8078 | +else | |
8079 | + ac_check_lib_save_LIBS=$LIBS | |
8080 | +LIBS="-l$ax_lib $LIBS" | |
8081 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8082 | +/* end confdefs.h. */ | |
8083 | + | |
8084 | +/* Override any GCC internal prototype to avoid an error. | |
8085 | + Use char because int might match the return type of a GCC | |
8086 | + builtin and then its argument prototype would still apply. */ | |
8087 | +#ifdef __cplusplus | |
8088 | +extern "C" | |
8089 | +#endif | |
8090 | +char exit (); | |
8091 | +#ifdef F77_DUMMY_MAIN | |
8092 | + | |
8093 | +# ifdef __cplusplus | |
8094 | + extern "C" | |
8095 | +# endif | |
8096 | + int F77_DUMMY_MAIN() { return 1; } | |
8097 | + | |
8098 | +#endif | |
8099 | +int | |
8100 | +main () | |
8101 | +{ | |
8102 | +return exit (); | |
8103 | + ; | |
8104 | + return 0; | |
8105 | +} | |
8106 | +_ACEOF | |
8107 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8108 | + eval "$as_ac_Lib=yes" | |
8109 | +else | |
8110 | + eval "$as_ac_Lib=no" | |
8111 | +fi | |
8112 | +rm -f core conftest.err conftest.$ac_objext \ | |
8113 | + conftest$ac_exeext conftest.$ac_ext | |
8114 | +LIBS=$ac_check_lib_save_LIBS | |
8115 | +fi | |
8116 | +eval ac_res=\$$as_ac_Lib | |
8117 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8118 | +$as_echo "$ac_res" >&6; } | |
8119 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8120 | + BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break | |
8121 | +else | |
8122 | + link_serialization="no" | |
8123 | +fi | |
8124 | + | |
8125 | + done | |
8126 | + if test "x$link_serialization" != "xyes"; then | |
8127 | + for libextension in `ls $BOOSTLIBDIR/boost_serialization*.dll* $BOOSTLIBDIR/boost_serialization*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_serialization.*\)\.dll.*$;\1;' -e 's;^\(boost_serialization.*\)\.a.*$;\1;'` ; do | |
8128 | + ax_lib=${libextension} | |
8129 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` | |
8130 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 | |
8131 | +$as_echo_n "checking for exit in -l$ax_lib... " >&6; } | |
8132 | +if eval \${$as_ac_Lib+:} false; then : | |
8133 | + $as_echo_n "(cached) " >&6 | |
8134 | +else | |
8135 | + ac_check_lib_save_LIBS=$LIBS | |
8136 | +LIBS="-l$ax_lib $LIBS" | |
8137 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8138 | +/* end confdefs.h. */ | |
8139 | + | |
8140 | +/* Override any GCC internal prototype to avoid an error. | |
8141 | + Use char because int might match the return type of a GCC | |
8142 | + builtin and then its argument prototype would still apply. */ | |
8143 | +#ifdef __cplusplus | |
8144 | +extern "C" | |
8145 | +#endif | |
8146 | +char exit (); | |
8147 | +#ifdef F77_DUMMY_MAIN | |
8148 | + | |
8149 | +# ifdef __cplusplus | |
8150 | + extern "C" | |
8151 | +# endif | |
8152 | + int F77_DUMMY_MAIN() { return 1; } | |
8153 | + | |
8154 | +#endif | |
8155 | +int | |
8156 | +main () | |
8157 | +{ | |
8158 | +return exit (); | |
8159 | + ; | |
8160 | + return 0; | |
8161 | +} | |
8162 | +_ACEOF | |
8163 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8164 | + eval "$as_ac_Lib=yes" | |
8165 | +else | |
8166 | + eval "$as_ac_Lib=no" | |
8167 | +fi | |
8168 | +rm -f core conftest.err conftest.$ac_objext \ | |
8169 | + conftest$ac_exeext conftest.$ac_ext | |
8170 | +LIBS=$ac_check_lib_save_LIBS | |
8171 | +fi | |
8172 | +eval ac_res=\$$as_ac_Lib | |
8173 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8174 | +$as_echo "$ac_res" >&6; } | |
8175 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8176 | + BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break | |
8177 | +else | |
8178 | + link_serialization="no" | |
8179 | +fi | |
8180 | + | |
8181 | + done | |
8182 | + fi | |
8183 | + | |
8184 | + else | |
8185 | + for ax_lib in $ax_boost_user_serialization_lib boost_serialization-$ax_boost_user_serialization_lib; do | |
8186 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` | |
8187 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 | |
8188 | +$as_echo_n "checking for main in -l$ax_lib... " >&6; } | |
8189 | +if eval \${$as_ac_Lib+:} false; then : | |
8190 | + $as_echo_n "(cached) " >&6 | |
8191 | +else | |
8192 | + ac_check_lib_save_LIBS=$LIBS | |
8193 | +LIBS="-l$ax_lib $LIBS" | |
8194 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8195 | +/* end confdefs.h. */ | |
8196 | + | |
8197 | + | |
8198 | +#ifdef F77_DUMMY_MAIN | |
8199 | + | |
8200 | +# ifdef __cplusplus | |
8201 | + extern "C" | |
8202 | +# endif | |
8203 | + int F77_DUMMY_MAIN() { return 1; } | |
8204 | + | |
8205 | +#endif | |
8206 | +int | |
8207 | +main () | |
8208 | +{ | |
8209 | +return main (); | |
8210 | + ; | |
8211 | + return 0; | |
8212 | +} | |
8213 | +_ACEOF | |
8214 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8215 | + eval "$as_ac_Lib=yes" | |
8216 | +else | |
8217 | + eval "$as_ac_Lib=no" | |
8218 | +fi | |
8219 | +rm -f core conftest.err conftest.$ac_objext \ | |
8220 | + conftest$ac_exeext conftest.$ac_ext | |
8221 | +LIBS=$ac_check_lib_save_LIBS | |
8222 | +fi | |
8223 | +eval ac_res=\$$as_ac_Lib | |
8224 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8225 | +$as_echo "$ac_res" >&6; } | |
8226 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8227 | + BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break | |
8228 | +else | |
8229 | + link_serialization="no" | |
8230 | +fi | |
8231 | + | |
8232 | + done | |
8233 | + | |
8234 | + fi | |
8235 | + if test "x$ax_lib" = "x"; then | |
8236 | + as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 | |
8237 | + fi | |
8238 | + if test "x$link_serialization" != "xyes"; then | |
8239 | + as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 | |
8240 | + fi | |
8241 | + fi | |
8242 | + | |
8243 | + CPPFLAGS="$CPPFLAGS_SAVED" | |
8244 | + LDFLAGS="$LDFLAGS_SAVED" | |
8245 | + fi | |
8246 | + | |
8247 | + | |
8248 | + | |
8249 | +# Check whether --with-boost-mpi was given. | |
8250 | +if test "${with_boost_mpi+set}" = set; then : | |
8251 | + withval=$with_boost_mpi; | |
8252 | + if test "$withval" = "no"; then | |
8253 | + want_boost="no" | |
8254 | + elif test "$withval" = "yes"; then | |
8255 | + want_boost="yes" | |
8256 | + ax_boost_user_mpi_lib="" | |
8257 | + else | |
8258 | + want_boost="yes" | |
8259 | + ax_boost_user_mpi_lib="$withval" | |
8260 | + fi | |
8261 | + | |
8262 | +else | |
8263 | + want_boost="yes" | |
8264 | + | |
8265 | +fi | |
8266 | + | |
8267 | + | |
8268 | + if test "x$want_boost" = "xyes"; then | |
8269 | + | |
8270 | + CPPFLAGS_SAVED="$CPPFLAGS" | |
8271 | + CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | |
8272 | + export CPPFLAGS | |
8273 | + | |
8274 | + LDFLAGS_SAVED="$LDFLAGS" | |
8275 | + LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $BOOST_SERIALIZATION_LIB" | |
8276 | + export LDFLAGS | |
8277 | + | |
8278 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Mpi library is available" >&5 | |
8279 | +$as_echo_n "checking whether the Boost::Mpi library is available... " >&6; } | |
8280 | +if ${ax_cv_boost_mpi+:} false; then : | |
8281 | + $as_echo_n "(cached) " >&6 | |
8282 | +else | |
8283 | + ac_ext=cpp | |
8284 | +ac_cpp='$CXXCPP $CPPFLAGS' | |
8285 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8286 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8287 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8288 | + | |
8289 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8290 | +/* end confdefs.h. */ | |
8291 | +#include <boost/mpi.hpp> | |
8292 | +#ifdef F77_DUMMY_MAIN | |
8293 | + | |
8294 | +# ifdef __cplusplus | |
8295 | + extern "C" | |
8296 | +# endif | |
8297 | + int F77_DUMMY_MAIN() { return 1; } | |
8298 | + | |
8299 | +#endif | |
8300 | +int | |
8301 | +main () | |
8302 | +{ | |
8303 | +namespace mpi=boost::mpi; mpi::environment env; mpi::communicator world; | |
8304 | + return 0; | |
8305 | + | |
8306 | + ; | |
8307 | + return 0; | |
8308 | +} | |
8309 | +_ACEOF | |
8310 | +if ac_fn_cxx_try_compile "$LINENO"; then : | |
8311 | + ax_cv_boost_mpi=yes | |
8312 | +else | |
8313 | + ax_cv_boost_mpi=yes | |
8314 | +fi | |
8315 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8316 | + ac_ext=cpp | |
8317 | +ac_cpp='$CXXCPP $CPPFLAGS' | |
8318 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8319 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8320 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8321 | + | |
8322 | + | |
8323 | +fi | |
8324 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_mpi" >&5 | |
8325 | +$as_echo "$ax_cv_boost_mpi" >&6; } | |
8326 | + if test "x$ax_cv_boost_mpi" = "xyes"; then | |
8327 | + | |
8328 | +$as_echo "#define HAVE_BOOST_MPI /**/" >>confdefs.h | |
8329 | + | |
8330 | + BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` | |
8331 | + if test "x$ax_boost_user_mpi_lib" = "x"; then | |
8332 | + for libextension in `ls $BOOSTLIBDIR/libboost_mpi*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_mpi.*\)\.so.*$;\1;' -e 's;^lib\(boost_mpi.*\)\.a*$;\1;'` ; do | |
8333 | + ax_lib=${libextension} | |
8334 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` | |
8335 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 | |
8336 | +$as_echo_n "checking for exit in -l$ax_lib... " >&6; } | |
8337 | +if eval \${$as_ac_Lib+:} false; then : | |
8338 | + $as_echo_n "(cached) " >&6 | |
8339 | +else | |
8340 | + ac_check_lib_save_LIBS=$LIBS | |
8341 | +LIBS="-l$ax_lib $LIBS" | |
8342 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8343 | +/* end confdefs.h. */ | |
8344 | + | |
8345 | +/* Override any GCC internal prototype to avoid an error. | |
8346 | + Use char because int might match the return type of a GCC | |
8347 | + builtin and then its argument prototype would still apply. */ | |
8348 | +#ifdef __cplusplus | |
8349 | +extern "C" | |
8350 | +#endif | |
8351 | +char exit (); | |
8352 | +#ifdef F77_DUMMY_MAIN | |
8353 | + | |
8354 | +# ifdef __cplusplus | |
8355 | + extern "C" | |
8356 | +# endif | |
8357 | + int F77_DUMMY_MAIN() { return 1; } | |
8358 | + | |
8359 | +#endif | |
8360 | +int | |
8361 | +main () | |
8362 | +{ | |
8363 | +return exit (); | |
8364 | + ; | |
8365 | + return 0; | |
8366 | +} | |
8367 | +_ACEOF | |
8368 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8369 | + eval "$as_ac_Lib=yes" | |
8370 | +else | |
8371 | + eval "$as_ac_Lib=no" | |
8372 | +fi | |
8373 | +rm -f core conftest.err conftest.$ac_objext \ | |
8374 | + conftest$ac_exeext conftest.$ac_ext | |
8375 | +LIBS=$ac_check_lib_save_LIBS | |
8376 | +fi | |
8377 | +eval ac_res=\$$as_ac_Lib | |
8378 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8379 | +$as_echo "$ac_res" >&6; } | |
8380 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8381 | + BOOST_MPI_LIB="-l$ax_lib"; link_mpi="yes"; break | |
8382 | +else | |
8383 | + link_mpi="no" | |
8384 | +fi | |
8385 | + | |
8386 | + done | |
8387 | + if test "x$link_mpi" != "xyes"; then | |
8388 | + for libextension in `ls $BOOSTLIBDIR/boost_mpi*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_mpi.*\)\.dll.*$;\1;' -e 's;^\(boost_mpi.*\)\.a*$;\1;'` ; do | |
8389 | + ax_lib=${libextension} | |
8390 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` | |
8391 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 | |
8392 | +$as_echo_n "checking for exit in -l$ax_lib... " >&6; } | |
8393 | +if eval \${$as_ac_Lib+:} false; then : | |
8394 | + $as_echo_n "(cached) " >&6 | |
8395 | +else | |
8396 | + ac_check_lib_save_LIBS=$LIBS | |
8397 | +LIBS="-l$ax_lib $LIBS" | |
8398 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8399 | +/* end confdefs.h. */ | |
8400 | + | |
8401 | +/* Override any GCC internal prototype to avoid an error. | |
8402 | + Use char because int might match the return type of a GCC | |
8403 | + builtin and then its argument prototype would still apply. */ | |
8404 | +#ifdef __cplusplus | |
8405 | +extern "C" | |
8406 | +#endif | |
8407 | +char exit (); | |
8408 | +#ifdef F77_DUMMY_MAIN | |
8409 | + | |
8410 | +# ifdef __cplusplus | |
8411 | + extern "C" | |
8412 | +# endif | |
8413 | + int F77_DUMMY_MAIN() { return 1; } | |
8414 | + | |
8415 | +#endif | |
8416 | +int | |
8417 | +main () | |
8418 | +{ | |
8419 | +return exit (); | |
8420 | + ; | |
8421 | + return 0; | |
8422 | +} | |
8423 | +_ACEOF | |
8424 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8425 | + eval "$as_ac_Lib=yes" | |
8426 | +else | |
8427 | + eval "$as_ac_Lib=no" | |
8428 | +fi | |
8429 | +rm -f core conftest.err conftest.$ac_objext \ | |
8430 | + conftest$ac_exeext conftest.$ac_ext | |
8431 | +LIBS=$ac_check_lib_save_LIBS | |
8432 | +fi | |
8433 | +eval ac_res=\$$as_ac_Lib | |
8434 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8435 | +$as_echo "$ac_res" >&6; } | |
8436 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8437 | + BOOST_MPI_LIB="-l$ax_lib"; link_mpi="yes"; break | |
8438 | +else | |
8439 | + link_mpi="no" | |
8440 | +fi | |
8441 | + | |
8442 | + done | |
8443 | + fi | |
8444 | + | |
8445 | + else | |
8446 | + for ax_lib in $ax_boost_user_mpi_lib boost_mpi-$ax_boost_user_mpi_lib; do | |
8447 | + as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` | |
8448 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 | |
8449 | +$as_echo_n "checking for main in -l$ax_lib... " >&6; } | |
8450 | +if eval \${$as_ac_Lib+:} false; then : | |
8451 | + $as_echo_n "(cached) " >&6 | |
8452 | +else | |
8453 | + ac_check_lib_save_LIBS=$LIBS | |
8454 | +LIBS="-l$ax_lib $LIBS" | |
8455 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8456 | +/* end confdefs.h. */ | |
8457 | + | |
8458 | + | |
8459 | +#ifdef F77_DUMMY_MAIN | |
8460 | + | |
8461 | +# ifdef __cplusplus | |
8462 | + extern "C" | |
8463 | +# endif | |
8464 | + int F77_DUMMY_MAIN() { return 1; } | |
8465 | + | |
8466 | +#endif | |
8467 | +int | |
8468 | +main () | |
8469 | +{ | |
8470 | +return main (); | |
8471 | + ; | |
8472 | + return 0; | |
8473 | +} | |
8474 | +_ACEOF | |
8475 | +if ac_fn_cxx_try_link "$LINENO"; then : | |
8476 | + eval "$as_ac_Lib=yes" | |
8477 | +else | |
8478 | + eval "$as_ac_Lib=no" | |
8479 | +fi | |
8480 | +rm -f core conftest.err conftest.$ac_objext \ | |
8481 | + conftest$ac_exeext conftest.$ac_ext | |
8482 | +LIBS=$ac_check_lib_save_LIBS | |
8483 | +fi | |
8484 | +eval ac_res=\$$as_ac_Lib | |
8485 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8486 | +$as_echo "$ac_res" >&6; } | |
8487 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
8488 | + BOOST_MPI_LIB="-l$ax_lib"; link_mpi="yes"; break | |
8489 | +else | |
8490 | + link_mpi="no" | |
8491 | +fi | |
8492 | + | |
8493 | + done | |
8494 | + | |
8495 | + fi | |
8496 | + if test "x$link_mpi" != "xyes"; then | |
8497 | + as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 | |
8498 | + fi | |
8499 | + fi | |
8500 | + | |
8501 | + CPPFLAGS="$CPPFLAGS_SAVED" | |
8502 | + LDFLAGS="$LDFLAGS_SAVED" | |
8503 | + fi | |
8504 | + | |
8505 | + | |
7707 | 8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts -rpath option" >&5 |
7708 | 8507 | $as_echo_n "checking whether ld accepts -rpath option... " >&6; } |
7709 | 8508 | if ${molds_cv_ld_accepts_rpath+:} false; then : |