|
601 | 601 | #
|
602 | 602 | # Include the mpif.h header if it is available. Cannot do
|
603 | 603 | # this from inside the usempi.h since, for VPATH builds, the
|
604 |
| - # srcdir is needed to find the header. |
| 604 | + # srcdir is needed to find the header. Each extension can |
| 605 | + # refuse it by defining the OMPI_MPIEXT_$1_INCLUDE_MPIFH_IN_USEMPI |
| 606 | + # macro in its ompi/mpiext/*/configure.m4. See |
| 607 | + # ompi/mpiext/example/configure.m4 for an example. |
605 | 608 | #
|
606 |
| - if test "$enabled_mpifh" = 1; then |
| 609 | + m4_ifdef([OMPI_MPIEXT_]$1[_INCLUDE_MPIFH_IN_USEMPI], |
| 610 | + [include_mpifh=OMPI_MPIEXT_$1_INCLUDE_MPIFH_IN_USEMPI], |
| 611 | + [include_mpifh=1]) |
| 612 | + if test "$enabled_mpifh" = 1 && test "$include_mpifh" != 0; then |
607 | 613 | mpifh_component_header="mpiext_${component}_mpifh.h"
|
608 | 614 | cat >> $mpiusempi_ext_h <<EOF
|
609 | 615 | #include "${mpifh_component_header_path}"
|
|
657 | 663 | #
|
658 | 664 | # Include the mpif.h header if it is available. Cannot do
|
659 | 665 | # this from inside the usempif08.h since, for VPATH builds,
|
660 |
| - # the srcdir is needed to find the header. |
| 666 | + # the srcdir is needed to find the header. Each extension can |
| 667 | + # refuse it by defining the OMPI_MPIEXT_$1_INCLUDE_MPIFH_IN_USEMPIF08 |
| 668 | + # macro in its ompi/mpiext/*/configure.m4. See |
| 669 | + # ompi/mpiext/example/configure.m4 for an example. |
661 | 670 | #
|
662 |
| - if test "$enabled_mpifh" = 1; then |
| 671 | + m4_ifdef([OMPI_MPIEXT_]$1[_INCLUDE_MPIFH_IN_USEMPIF08], |
| 672 | + [include_mpifh=OMPI_MPIEXT_$1_INCLUDE_MPIFH_IN_USEMPIF08], |
| 673 | + [include_mpifh=1]) |
| 674 | + if test "$enabled_mpifh" = 1 && test "$include_mpifh" != 0; then |
663 | 675 | mpifh_component_header="mpiext_${component}_mpifh.h"
|
664 | 676 | cat >> $mpiusempif08_ext_h <<EOF
|
665 | 677 | #include "${mpifh_component_header_path}"
|
|
0 commit comments