Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 9a137ef

Browse files
committed
ompi_setup_mpi_fortran.m4: only set BUILD_SIZEOF if happy=1
Only set OMPI_FORTRAN_BUILD_SIZEOF to 1 if $ompi_fortran_happy is also 1 (i.e., we're building the Fortran interface). This prevents building [p]size_f.f90 and trying to compile it if there is no Fortran compiler, for example. (cherry picked from commit 93708af)
1 parent f3516d1 commit 9a137ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/ompi_setup_mpi_fortran.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
309309

310310
# We need INTERFACE, ISO_FORTRAN_ENV, and STORAGE_SIZE() support
311311
# to build MPI_SIZEOF support
312-
AS_IF([test $OMPI_FORTRAN_HAVE_INTERFACE -eq 1 && \
312+
AS_IF([test $ompi_fortran_happy -eq 1 && \
313+
test $OMPI_FORTRAN_HAVE_INTERFACE -eq 1 && \
313314
test $OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV -eq 1 && \
314315
test $OMPI_FORTRAN_HAVE_STORAGE_SIZE -eq 1],
315316
[OMPI_FORTRAN_BUILD_SIZEOF=1],

0 commit comments

Comments
 (0)