Never tried this myself, but this test could work AC_COMPILE_IFELSE( [ AC_LANG_PROGRAM( [ #include "mpi.h" ], [ #if defined( OPEN_MPI ) return 0; #else #error #endif ] ) ], [ mpi_is_openmpi=yes ], [ mpi_is_openmpi=no ] )
A.Chan On Tue, 5 Jun 2007, Lie-Quan Lee wrote: > I am a project written in C/C++ but used 3rd-party libraries written in > Fortran. In the linking stage, I use mpic++ andl need to put -lmpi_f90 > -lmpi_f77 into the link flags. > I am wondering if anyone has already had a way to identify openmpi in > configure script using autoconf macro. By identifying openmpi in the > configure, I will be able to handle those libraries. Thanks. > > -- > Best regards, > Rich Lee > Stanford Linear Accelerator Center >