I have a package that uncorrectly guesses the mpi implementation because it's grepping the /usr/include/mpi.h and since it's a multilib wrapper, it doesn't contain the defines. I can specify the mpi implementation while configuring.
How to reliably detect the MPI implementation? I need something (eclass ?) that return one the following: openmpi/mpich/mpich2/mpich3/lam/etc. based on the current installed status