summaryrefslogtreecommitdiffstats
path: root/fortran/src/h5fc.in
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-12-13 17:07:22 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-12-13 17:07:22 (GMT)
commitf61ad8556593ae97e58768f0b610a0179730092b (patch)
tree99fa78147e150ec47a49496366c573f6e0eea9d9 /fortran/src/h5fc.in
parentfc01012cd541837f15998f2be9c108404cb4b087 (diff)
downloadhdf5-f61ad8556593ae97e58768f0b610a0179730092b.zip
hdf5-f61ad8556593ae97e58768f0b610a0179730092b.tar.gz
hdf5-f61ad8556593ae97e58768f0b610a0179730092b.tar.bz2
[svn-r9659] Purpose:
added support for the hl library in the fortran h5fc script Description: Solution: Platforms tested: linux Misc. update:
Diffstat (limited to 'fortran/src/h5fc.in')
-rwxr-xr-xfortran/src/h5fc.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in
index 382521d..145ae57 100755
--- a/fortran/src/h5fc.in
+++ b/fortran/src/h5fc.in
@@ -27,6 +27,7 @@ prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
includedir="@includedir@"
+HL="@HL@"
############################################################################
## ##
@@ -218,7 +219,12 @@ if test "x$do_link" = "xyes"; then
fmodules="${F9XMODFLAG}${libdir}"
fi
- link_args="$link_args ${libdir}/libhdf5_fortran.a ${libdir}/libhdf5.a"
+ # conditionnaly link with the hl library
+ if test "X$HL" = "Xhl"; then
+ link_args="$link_args ${libdir}/libhdf5_fortran.a ${libdir}/libhdf5.a ${libdir}/libhdf5hl_fortran.a ${libdir}/libhdf5_hl.a"
+ else
+ link_args="$link_args ${libdir}/libhdf5_fortran.a ${libdir}/libhdf5.a"
+ fi
link_args="$link_args $LIBS"
$SHOW $FLINKER ${FFLAGS} ${F9XSUFFIXFLAG} ${fmodules} ${LDFLAGS} $link_objs $link_args