#145 move MPI parameter extraction to a mpi-config script
Metadata
Property | Value |
---|---|
Reported by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Reported at | Jul 11, 2006 13:42 |
Type | Feature Request |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Jul 24, 2006 12:52 |
Closed in version | 1.0 |
Resolution | Fixed |
Comment |
Description
Moving the extraction of MPI_CPPFLAGS and MPI_LDFLAGS from the mpicc command from dune_mpi.m4 to a mpi-control script would significantly enhance the usability of Dune in conjunction with ALUGrid.
When compiling ALUGrid one could use the mpi-config command to extract the MPI_*FLAGS
I would imagine a usage similar to pkg-config: | | Usage: mpi-config [OPTION] | | Known values for OPTION are: | | --libs print library linking information | --cflags print pre-processor and compiler flags | --help display this help and exit | --mpicc=MPICC MPI compiler from which to extract the parameters |
The configure call for ALUGrid could the look like:
./configure CXX='g++-3.4' CXXFLAGS="-g -Wall
mpi-config --cflags --mpi=mpicc.lam
" LDFLAGS="mpi-config --libs --mpi=mpicc.lam
"
Or when using the if the MPICC environment it would be:
MPICC=mpicc.lam ./configure CXX='g++-3.4' CXXFLAGS="-g -Wall
mpi-config --cflags
" LDFLAGS="mpi-config --libs
"