diff --git a/config/ompi_ext.m4 b/config/ompi_ext.m4 index 827658e6db..88001e0142 100644 --- a/config/ompi_ext.m4 +++ b/config/ompi_ext.m4 @@ -506,7 +506,7 @@ EOF AC_MSG_CHECKING([if MPI Extension $component has mpif.h bindings]) - if test -e "$test_header" ; then + if test -e "$test_header" || test -e "$test_header".in ; then AC_MSG_RESULT([yes]) enabled_mpifh=1 @@ -541,6 +541,10 @@ EOF AC_MSG_ERROR([Cannot continue])]) component_header="mpiext_${component}_mpifh.h" + mpifh_component_header_path="ompi/mpiext/$component/mpif-h/${component_header}" + if test -e "${srcdir}/${mpifh_component_header_path}" ; then + mpifh_component_header_path="${srcdir}/${mpifh_component_header_path}" + fi cat >> $mpif_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <