diff --git a/Make.inc.in b/Make.inc.in index b6ae650f..5741fca7 100755 --- a/Make.inc.in +++ b/Make.inc.in @@ -23,7 +23,7 @@ EXTRA_OPT=@EXTRA_OPT@ MPFC=@MPIFC@ MPCC=@MPICC@ -FLINK=$(MPFC) +FLINK=@FLINK@ LIBS=@LIBS@ diff --git a/configure b/configure index 55edcc5c..e70bbfb7 100755 --- a/configure +++ b/configure @@ -6895,6 +6895,7 @@ FDEFINES="$psblas_cv_define_prepend-DIPK${pac_cv_ipk_size} $FDEFINES"; FDEFINES="$psblas_cv_define_prepend-DLPK${pac_cv_lpk_size} $FDEFINES"; CDEFINES="-DIPK${pac_cv_ipk_size} -DLPK${pac_cv_lpk_size} $CDEFINES" +FLINK="$MPIFC" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want openmp " >&5 $as_echo_n "checking whether we want openmp ... " >&6; } # Check whether --enable-openmp was given. @@ -7077,6 +7078,7 @@ if test x"$pac_cv_openmp" == x"yes" ; then CDEFINES="-DOPENMP $CDEFINES"; FCOPT="$FCOPT $pac_cv_openmp_fcopt"; CCOPT="$CCOPT $pac_cv_openmp_ccopt"; + FLINK="$FLINK $pac_cv_openmp_fcopt"; fi # # Tests for support of various Fortran features; some of them are critical, diff --git a/configure.ac b/configure.ac index 01e9e133..cc354ba4 100755 --- a/configure.ac +++ b/configure.ac @@ -498,12 +498,14 @@ FDEFINES="$psblas_cv_define_prepend-DIPK${pac_cv_ipk_size} $FDEFINES"; FDEFINES="$psblas_cv_define_prepend-DLPK${pac_cv_lpk_size} $FDEFINES"; CDEFINES="-DIPK${pac_cv_ipk_size} -DLPK${pac_cv_lpk_size} $CDEFINES" +FLINK="$MPIFC" PAC_ARG_OPENMP() 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"; + FLINK="$FLINK $pac_cv_openmp_fcopt"; fi # # Tests for support of various Fortran features; some of them are critical,