summaryrefslogtreecommitdiffstats
path: root/config/solaris2.x
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2010-05-17 22:23:23 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2010-05-17 22:23:23 (GMT)
commita41fb65b7ca24b5a2a6d4a73af135caac39bb7ea (patch)
treefa4a0d4f5cad3429794ef2c73fe355467eb89092 /config/solaris2.x
parentb85900177f4b1dc58a6a295e58047b1e51b02e89 (diff)
downloadhdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.zip
hdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.tar.gz
hdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.tar.bz2
[svn-r18836] Added code to config files, libhdf5.settings.in and configure.in to add compiler version information for fortran and C++ in the settings file and the configure output for our common compilers on linux, solaris, and mac(gnu only).
Tested: amani, jam, linew (h5committest) and with configure on these machines and tejeda.
Diffstat (limited to 'config/solaris2.x')
-rw-r--r--config/solaris2.x40
1 files changed, 40 insertions, 0 deletions
diff --git a/config/solaris2.x b/config/solaris2.x
index 5ef6415..cea71bd 100644
--- a/config/solaris2.x
+++ b/config/solaris2.x
@@ -111,3 +111,43 @@ if test -z "$cxx_flags_set"; then
PROFILE_CPPFLAGS=
cxx_flags_set=yes
fi
+
+# compiler version strings
+case $CC in
+ *cc*)
+ cc_version_info=`$CC $CFLAGS $H5_CFLAGS -V 2>&1 | grep 'Sun' |\
+ sed 's/.*\(Sun.*\)/\1 /'`
+ ;;
+
+ *)
+ echo "No match to get cc_version_info for $CC"
+ ;;
+esac
+echo "C compiler '$CC' is $cc_version_info"
+
+case $FC in
+ # The PGI and Intel compilers are automatically detected below
+ *f90*)
+ fc_version_info=`$FC $FCFLAGS $H5_FCFLAGS -V 2>&1 | grep 'Sun' |\
+ sed 's/.*\(Sun.*\)/\1 /'`
+ ;;
+
+ *)
+ echo "No match to get fc_version_info for $FC"
+ ;;
+esac
+echo "Fortran compiler '$FC' is $fc_version_info"
+
+# get c++ version info
+case $CXX in
+ *CC*)
+ cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS -V 2>&1 | grep 'Sun' |\
+ sed 's/.*\(Sun.*\)/\1 /'`
+ ;;
+
+ *)
+ echo "No match to get cxx_version_info for $CXX"
+ ;;
+esac
+
+