Browse Source

configure.ac: set mpif90 as default MPI fortran compiler and indicate in summary if native fortran support is enabled

Nathalie Furmento 8 years ago
parent
commit
53eff7e16e
1 changed files with 8 additions and 1 deletions
  1. 8 1
      configure.ac

+ 8 - 1
configure.ac

@@ -2158,7 +2158,7 @@ if test "x$FC" != "x"; then
 					      if test x$enable_simgrid = xyes ; then
 					      if test x$enable_simgrid = xyes ; then
 						      DEFAULT_MPIFORT=smpifort
 						      DEFAULT_MPIFORT=smpifort
 					      else
 					      else
-						      DEFAULT_MPIFORT=mpifort
+						      DEFAULT_MPIFORT=mpif90
 					      fi
 					      fi
 					      # nothing was specified: default value is used
 					      # nothing was specified: default value is used
 					      AC_PATH_PROG(mpifort_path, $DEFAULT_MPIFORT, [no], [$simgrid_dir/bin:$PATH])
 					      AC_PATH_PROG(mpifort_path, $DEFAULT_MPIFORT, [no], [$simgrid_dir/bin:$PATH])
@@ -2179,6 +2179,11 @@ if test "x$FC" != "x"; then
 		fi
 		fi
 	fi
 	fi
 fi
 fi
+if test "x$enable_build_fortran" = "xyes" ; then
+   if test "x$FC" = "x" ; then
+      enable_build_fortran="no"
+   fi
+fi
 AM_CONDITIONAL([STARPU_HAVE_FC], [test "x$FC" != "x" -a "x$enable_build_fortran" = "xyes"])
 AM_CONDITIONAL([STARPU_HAVE_FC], [test "x$FC" != "x" -a "x$enable_build_fortran" = "xyes"])
 AM_CONDITIONAL([STARPU_HAVE_MPIFORT], [test "x$FC" != "x" -a "x$enable_build_fortran" = "xyes" -a "x$MPIFORT" != "x"])
 AM_CONDITIONAL([STARPU_HAVE_MPIFORT], [test "x$FC" != "x" -a "x$enable_build_fortran" = "xyes" -a "x$MPIFORT" != "x"])
 
 
@@ -2917,6 +2922,8 @@ AC_MSG_NOTICE([
                Scheduler Hypervisor:                        $build_sc_hypervisor
                Scheduler Hypervisor:                        $build_sc_hypervisor
                simgrid enabled:                             $enable_simgrid
                simgrid enabled:                             $enable_simgrid
                ayudame enabled:                             $ac_cv_header_Ayudame_h
                ayudame enabled:                             $ac_cv_header_Ayudame_h
+	       Native fortran support:                      $enable_build_fortran
+	       Native MPI fortran support:                  $use_mpi_fort
 ])
 ])
 
 
 if test "$build_socl" = "yes" -a "$run_socl_check" = "no" ; then
 if test "$build_socl" = "yes" -a "$run_socl_check" = "no" ; then