Skip to content

Commit 34b70be

Browse files
authored
Merge pull request #13268 from janjust/fortran-common-alignment-fix
v5.0.x: configury: fix Fortran common alignment detection
2 parents e457150 + 52acc89 commit 34b70be

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
@@ -142,7 +142,9 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
142142
OMPI_FORTRAN_IKINDS=
143143
OMPI_FORTRAN_RKINDS=
144144
OMPI_FORTRAN_CKINDS=
145-
OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])
145+
AS_IF([test $ompi_fortran_happy -eq 1],
146+
[OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])],
147+
[OMPI_FORTRAN_COMMON_ALIGNMENT=0])
146148
AC_SUBST([OMPI_FORTRAN_COMMON_ALIGNMENT])
147149

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

0 commit comments

Comments
 (0)