Skip to content

Commit 20dc72c

Browse files
committed
ompi_setup_mpi_fortran: safely configure with no Fortran compiler
Ensure that we can still configure if there is no Fortran compiler. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 17714b2 commit 20dc72c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/ompi_setup_mpi_fortran.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
138138
AC_DEFINE([ompi_fortran_bogus_type_t], [int],
139139
[A bogus type that allows us to have sentinel type values that are still valid])
140140

141-
OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])
141+
AS_IF([test $ompi_fortran_happy -eq 1],
142+
[OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])],
143+
[OMPI_FORTRAN_COMMON_ALIGNMENT=0])
142144
AC_SUBST([OMPI_FORTRAN_COMMON_ALIGNMENT])
143145

144146
# We want to set the #define's for all of these, so invoke the macros

0 commit comments

Comments
 (0)