summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2008-08-26 20:10:57 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2008-08-26 20:10:57 (GMT)
commit6b9b12d64394512c1d43635b66c1c142ff2cdd96 (patch)
treefbf43f92f694914a5bcf1e0a085ecb996da1e9c1 /configure.in
parent9559bd91306799c8353818f39939006de043c936 (diff)
downloadhdf5-6b9b12d64394512c1d43635b66c1c142ff2cdd96.zip
hdf5-6b9b12d64394512c1d43635b66c1c142ff2cdd96.tar.gz
hdf5-6b9b12d64394512c1d43635b66c1c142ff2cdd96.tar.bz2
[svn-r15540] Description:
Enable building shared library for fortran by adding the flag -fPIC to the compile flags for versions of Intel Fortran compiler >=9
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 514fcef..5e735bd 100644
--- a/configure.in
+++ b/configure.in
@@ -867,10 +867,14 @@ if test "X${HDF_FORTRAN}" = "Xyes"; then
H5_FORTRAN_SHARED="no"
fi
- if (${FC} -V 2>&1 | grep '^Intel(R) Fortran Compiler') > /dev/null; then
- H5_FORTRAN_SHARED="no"
+ if (${FC} -V 2>&1 | grep '^Intel(R) Fortran') > /dev/null; then
+ if (${FC} -v 2>&1 | grep '^Version 8.') > /dev/null; then
+ H5_FORTRAN_SHARED="no"
+ else
+dnl echo 'adding fortran compiler flag needed for building shared libraries'
+ FCFLAGS="${FCFLAGS} -fPIC"
+ fi
fi
-
if (${FC} +version 2>&1 | grep '^HP F90') > /dev/null; then
H5_FORTRAN_SHARED="no"
fi