You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
428 B

#!/bin/sh
if [ "x$FORTRAN_COMPILER" = "xIFORT" ] ; then
ifort --version 2>&1 > ifort.tmp
echo "#define FORTRAN_VERSION \"`head -1 ifort.tmp`\""
rm -f ifort.tmp
return 0
fi
if [ "x$FORTRAN_COMPILER" = "xGFORTRAN" ] ; then
gfortran --version 2>&1 > gfortran.tmp
echo "#define FORTRAN_VERSION \"gfortran `head -1 gfortran.tmp`\""
rm gfortran.tmp
return 0
fi
echo "FORTRAN_COMPILER must be set"
return 1