use f95 (gfortran as default f90 compiler)
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 19:43:46 +0000 (19:43 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 19:43:46 +0000 (19:43 +0000)
src/arch/net-linux-x86_64/conv-mach.sh

index db7bb275340f13541d8639fcec581c1c896364fb..31c8937ee60cf9081baceabfd74f6ce5f9895882 100644 (file)
@@ -26,13 +26,27 @@ CMK_SEQ_CXX="$CMK_NATIVE_CXX"
 CMK_SEQ_LD="$CMK_NATIVE_LD"
 CMK_SEQ_LDXX="$CMK_NATIVE_LDXX"
 
-CMK_CF77="g77 "
-CMK_CF90="f90 "
-CMK_CF90_FIXED="$CMK_CF90 -W132 "
-CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
-CMK_F77LIBS="-lg2c "
-CMK_F90_USE_MODDIR=1
-CMK_F90_MODINC="-p"
-
 CMK_QT='generic64'
 
+CMK_CF90=`which f95 2>/dev/null`
+if test -n "$CMK_CF90"
+then
+#    CMK_FPP="/lib/cpp -P -CC"
+#    CMK_CF90="$CMK_CF90 -fpic -fautomatic -fdollar-ok "
+#    CMK_CF90_FIXED="$CMK_CF90 -ffixed-form "
+#    CMK_F90LIBS="-lgfortran "
+#    CMK_F90_USE_MODDIR=1
+#    CMK_F90_MODINC="-I"
+#    CMK_MOD_NAME_ALLCAPS=
+#    CMK_MOD_EXT="mod"
+    . $CHARMINC/conv-mach-gfortran.sh
+else
+    CMK_CF77="g77 "
+    CMK_CF90="f90 "
+    CMK_CF90_FIXED="$CMK_CF90 -W132 "
+    CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
+    CMK_F77LIBS="-lg2c "
+    CMK_F90_USE_MODDIR=1
+    CMK_F90_MODINC="-p"
+fi
+