From 288e3cd34144fb77f15feeb151445e9e96546089 Mon Sep 17 00:00:00 2001 From: Salvatore Filippone Date: Mon, 2 Nov 2020 16:17:31 +0100 Subject: [PATCH] Add -DOPENMP defines --- configure | 10 ++++++---- configure.ac | 9 ++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 4bd53950..55edcc5c 100755 --- a/configure +++ b/configure @@ -7072,10 +7072,12 @@ $as_echo "no." >&6; } fi -FCOPT="$FCOPT $pac_cv_openmp_fcopt"; -CCOPT="$CCOPT $pac_cv_openmp_ccopt"; -{ $as_echo "$as_me:${as_lineno-$LINENO}: \"FLAGS: $FCOPT $OPENMP_FFLAGS\"" >&5 -$as_echo "$as_me: \"FLAGS: $FCOPT $OPENMP_FFLAGS\"" >&6;} +if test x"$pac_cv_openmp" == x"yes" ; then + FDEFINES="$psblas_cv_define_prepend-DOPENMP $FDEFINES"; + CDEFINES="-DOPENMP $CDEFINES"; + FCOPT="$FCOPT $pac_cv_openmp_fcopt"; + CCOPT="$CCOPT $pac_cv_openmp_ccopt"; +fi # # Tests for support of various Fortran features; some of them are critical, # some optional diff --git a/configure.ac b/configure.ac index 27d62789..01e9e133 100755 --- a/configure.ac +++ b/configure.ac @@ -499,9 +499,12 @@ FDEFINES="$psblas_cv_define_prepend-DLPK${pac_cv_lpk_size} $FDEFINES"; CDEFINES="-DIPK${pac_cv_ipk_size} -DLPK${pac_cv_lpk_size} $CDEFINES" PAC_ARG_OPENMP() -FCOPT="$FCOPT $pac_cv_openmp_fcopt"; -CCOPT="$CCOPT $pac_cv_openmp_ccopt"; -AC_MSG_NOTICE(["FLAGS: $FCOPT $OPENMP_FFLAGS"]) +if test x"$pac_cv_openmp" == x"yes" ; then + FDEFINES="$psblas_cv_define_prepend-DOPENMP $FDEFINES"; + CDEFINES="-DOPENMP $CDEFINES"; + FCOPT="$FCOPT $pac_cv_openmp_fcopt"; + CCOPT="$CCOPT $pac_cv_openmp_ccopt"; +fi # # Tests for support of various Fortran features; some of them are critical, # some optional