summaryrefslogtreecommitdiffstats
path: root/hl/fortran
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2019-01-15 16:04:37 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2019-01-15 16:04:37 (GMT)
commit0bf3398a0d52cb07f66b7cd9f33fbca05b05dde8 (patch)
treeff4a8e312d56c8fe99a33d406df3d9bbda815a56 /hl/fortran
parente61b3a7de95c23f4f24282bad41c5154643741a5 (diff)
downloadhdf5-0bf3398a0d52cb07f66b7cd9f33fbca05b05dde8.zip
hdf5-0bf3398a0d52cb07f66b7cd9f33fbca05b05dde8.tar.gz
hdf5-0bf3398a0d52cb07f66b7cd9f33fbca05b05dde8.tar.bz2
Add check for existing links in hl/fortran/src/Makefile.am.
Diffstat (limited to 'hl/fortran')
-rw-r--r--hl/fortran/src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/hl/fortran/src/Makefile.am b/hl/fortran/src/Makefile.am
index 200a2ce..37e074c 100644
--- a/hl/fortran/src/Makefile.am
+++ b/hl/fortran/src/Makefile.am
@@ -55,10 +55,12 @@ libhdf5hl_fortran_la_LIBADD=$(LIBH5_HL) $(LIBH5F)
# actual lib file.
install-exec-hook:
cd $(DESTDIR)$(libdir) && \
- if test -f libhdf5hl_fortran.a; then \
+ if test -f libhdf5hl_fortran.a -a \
+ ! -f libhdf5_hl_fortran.a; then \
$(LN_S) libhdf5hl_fortran.a libhdf5_hl_fortran.a; \
fi; \
- if test -f libhdf5hl_fortran.so; then \
+ if test -f libhdf5hl_fortran.so -a \
+ ! -f libhdf5_hl_fortran.so; then \
$(LN_S) libhdf5hl_fortran.so libhdf5_hl_fortran.so; \
fi;