summaryrefslogtreecommitdiffstats
path: root/fortran/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-02-18 01:44:36 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-02-18 01:44:36 (GMT)
commit1990d350ec77c802abff435ed98d4c1e4af5631b (patch)
tree657024a27630ddcfa904df49c12f12400fd3a706 /fortran/config
parent51513772b6eb711360ea9513eccf2de86d4b74b0 (diff)
downloadhdf5-1990d350ec77c802abff435ed98d4c1e4af5631b.zip
hdf5-1990d350ec77c802abff435ed98d4c1e4af5631b.tar.gz
hdf5-1990d350ec77c802abff435ed98d4c1e4af5631b.tar.bz2
[svn-r13325] Changed default fortran compiler to g95 if gcc is used.
Tested platform: kagiso.
Diffstat (limited to 'fortran/config')
-rw-r--r--fortran/config/linux-gnulibc110
1 files changed, 7 insertions, 3 deletions
diff --git a/fortran/config/linux-gnulibc1 b/fortran/config/linux-gnulibc1
index 05219a6..39c1eee 100644
--- a/fortran/config/linux-gnulibc1
+++ b/fortran/config/linux-gnulibc1
@@ -35,10 +35,14 @@ fi
. $srcdir/config/intel-flags
-# The default Fortran 90 compiler
-if test "X-" = "X-$F9X"; then
+# Use default Fortran 90 compiler according to what C compiler is used.
+if test "X-" = "X-$FC"; then
case $CC_BASENAME in
- gcc*|pgcc*)
+ gcc*)
+ F9X=g95
+ F9X_BASENAME=g95
+ ;;
+ pgcc*)
F9X=pgf90
F9X_BASENAME=pgf90
;;