Skip to content
Snippets Groups Projects
Commit 43f4288c authored by Andreas Korpi-Lagg's avatar Andreas Korpi-Lagg
Browse files

version check for gfortran>=10 in configure.ac

parent bf11b280
No related branches found
No related tags found
No related merge requests found
...@@ -135,10 +135,15 @@ case $FC in ...@@ -135,10 +135,15 @@ case $FC in
PPFLAGS=$PPFLAGS" "$PP"GNU" PPFLAGS=$PPFLAGS" "$PP"GNU"
FCFLAGS=" " FCFLAGS=" "
AR="ar" AR="ar"
if $debug ;then if $debug ;then
OPTFLAGS="-O3 -O4 -O5 -ffast-math -fallow-argument-mismatch " OPTFLAGS="-O3 -O4 -O5 -ffast-math "
else else
OPTFLAGS="-O2 -g3 -fallow-argument-mismatch " OPTFLAGS="-O2 -g3 "
fi
gfortranversion=$(gfortran -dumpversion)
gfortran10=$(echo "${gfortranversion%%.*}")
if test $gfortran10 -ge 10 ;then
OPTFLAGS=$OPTFLAGS" -fallow-argument-mismatch "
fi fi
EXEADD=".gfortran"$EXEADD EXEADD=".gfortran"$EXEADD
DISLINSUB="gf" DISLINSUB="gf"
......
...@@ -11,10 +11,6 @@ cfitsio=/opt/local/cfitsio/cfitsio-3.350 ...@@ -11,10 +11,6 @@ cfitsio=/opt/local/cfitsio/cfitsio-3.350
dislin=/opt/local/dislin dislin=/opt/local/dislin
motif=/usr/lib64 motif=/usr/lib64
#create ifort MPI version
./configure --with-mpi --with-cfitsio=$cfitsio
make clean all install
#create ifort version with X11 #create ifort version with X11
./configure FC=ifort --with-dislin=$dislin --with-cfitsio=$cfitsio --with-openmotif=$motif ./configure FC=ifort --with-dislin=$dislin --with-cfitsio=$cfitsio --with-openmotif=$motif
make clean all install make clean all install
...@@ -30,5 +26,11 @@ make clean all install ...@@ -30,5 +26,11 @@ make clean all install
#create gfortran MPI version #create gfortran MPI version
module unload intel openmpi_intel module unload intel openmpi_intel
module load openmpi_gcc module load openmpi_gcc
./configure --with-mpi --with-cfitsio=$cfitsio ./configure FC=gfortran --with-mpi --with-cfitsio=$cfitsio
make clean all install
#create ifort MPI version
module unload openmpi_gcc
module load intel openmpi_intel
./configure FC=ifort --with-mpi --with-cfitsio=$cfitsio
make clean all install make clean all install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment