From 14332c0c46cbfba07e2a618a8b6267b56c4315a4 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Sun, 18 May 2025 00:08:22 +0900 Subject: [PATCH] configury: fix Fortran common alignment detection Do not try to detect Fortran common alignment if no Fortran compiler is available. Ref. #13257 :bot:notacherrypick Signed-off-by: Gilles Gouaillardet --- config/ompi_setup_mpi_fortran.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/ompi_setup_mpi_fortran.m4 b/config/ompi_setup_mpi_fortran.m4 index 8e2da80bc99..99b74bc6500 100644 --- a/config/ompi_setup_mpi_fortran.m4 +++ b/config/ompi_setup_mpi_fortran.m4 @@ -142,7 +142,9 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[ OMPI_FORTRAN_IKINDS= OMPI_FORTRAN_RKINDS= OMPI_FORTRAN_CKINDS= - OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT]) + AS_IF([test $ompi_fortran_happy -eq 1], + [OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])], + [OMPI_FORTRAN_COMMON_ALIGNMENT=0]) AC_SUBST([OMPI_FORTRAN_COMMON_ALIGNMENT]) # We want to set the #define's for all of these, so invoke the macros