From cce3103bb49832dd9d2549aa9afe3eb8a82896af Mon Sep 17 00:00:00 2001 From: sfilippone Date: Sat, 25 Nov 2023 20:06:26 +0100 Subject: [PATCH] Fix CXXDEFINES --- configure | 2 ++ configure.ac | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 752fe192..504dbf4c 100755 --- a/configure +++ b/configure @@ -7532,6 +7532,8 @@ fi # Custom test : do we have a module or include for MPI Fortran interface? if test x"$pac_cv_serial_mpi" == x"yes" ; then FDEFINES="$psblas_cv_define_prepend-DSERIAL_MPI $psblas_cv_define_prepend-DMPI_MOD $FDEFINES"; + CDEFINES="-DSERIAL_MPI $CDEFINES" + CXXDEFINES="-DSERIAL_MPI $CXXDEFINES" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MPI Fortran 2008 interface" >&5 printf %s "checking MPI Fortran 2008 interface... " >&6; } diff --git a/configure.ac b/configure.ac index d8a02a50..47b94e7a 100755 --- a/configure.ac +++ b/configure.ac @@ -513,6 +513,7 @@ fi # Custom test : do we have a module or include for MPI Fortran interface? if test x"$pac_cv_serial_mpi" == x"yes" ; then FDEFINES="$psblas_cv_define_prepend-DSERIAL_MPI $psblas_cv_define_prepend-DMPI_MOD $FDEFINES"; + CDEFINES="-DSERIAL_MPI $CDEFINES" else PAC_FORTRAN_CHECK_HAVE_MPI_MOD_F08() if test x"$pac_cv_mpi_f08" == x"yes" ; then @@ -847,9 +848,9 @@ AC_SUBST(FINCLUDES) PSBLASRULES=' PSBLDLIBS=$(LAPACK) $(BLAS) $(METIS_LIB) $(AMD_LIB) $(LIBS) -CXXDEFINES=$(PSBCXXDEFINES) CDEFINES=$(PSBCDEFINES) FDEFINES=$(PSBFDEFINES) +CXXDEFINES=$(PSBCXXDEFINES) # These should be portable rules, arent they?