configure.ac

- set Fortran compiler with AC_PROG_FC, closing #7
This commit is contained in:
2017-06-23 15:22:33 +02:00
parent 7d73439b10
commit 20424235e8
+7
View File
@@ -119,18 +119,25 @@ if test "x$ENABLE_PARALLEL" = "xyes"; then
if test "x$MPICXX" != "x"; then
CXX=$MPICXX
fi
if test "x$MPIFC" != "x"; then
FC=$MPIFC
fi
c_compilers="mpicc cc"
cxx_compilers="mpic++ CC"
fc_compiler="mpifort"
else
c_compilers="pgcc pathcc icc gcc cc_r cc"
cxx_compilers="pgcc pathcc icc g++ cc_r c++"
fc_compiler="ifort gfortran g95"
fi
AC_PROG_CC($c_compilers)
AC_PROG_CXX($cxx_compilers)
AC_PROG_FC($fc_compiler)
CC=`which $CC`
CXX=`which $CXX`
FC=`which $FC`
AC_PROG_CC_C99
if test "x$ac_cv_prog_cc_c99" = "xno"; then