diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-09-22 16:17:55 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-09-22 16:17:55 (GMT) |
commit | 40d2c297866b1fbf7332467cc0ef874b34548fa7 (patch) | |
tree | a6cfa3fd9a35d204bb396bf4b25a3599f24e4e26 /test/testlibinfo.sh.in | |
parent | bb660b670b8b1cbc4aa5026a3b48fb1e921bf01a (diff) | |
download | hdf5-40d2c297866b1fbf7332467cc0ef874b34548fa7.zip hdf5-40d2c297866b1fbf7332467cc0ef874b34548fa7.tar.gz hdf5-40d2c297866b1fbf7332467cc0ef874b34548fa7.tar.bz2 |
[svn-r17504] Bug fix:
Test failed with libhdf5.so not found in MacOS which uses a different
suffix (*.dylib) for shared lib.
Solution:
Added code to setup shared lib file suffix according to OS types.
Tested:
Tejeda, jam, linew.
Diffstat (limited to 'test/testlibinfo.sh.in')
-rw-r--r-- | test/testlibinfo.sh.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in index d8cd7e5..97fb59d 100644 --- a/test/testlibinfo.sh.in +++ b/test/testlibinfo.sh.in @@ -78,6 +78,18 @@ else h5libdir=../src fi +# Different OS uses different naming for shared libs. +case `uname -s` in + Darwin) # MacOS + shlibsuffix=.dylib + break + ;; + *) # default + shlibsuffix=.so + break + ;; +esac + h5libsettings=../src/libhdf5.settings # Part 1: @@ -85,9 +97,9 @@ h5libsettings=../src/libhdf5.settings # libhdf5.settings file. # Check dynamic library file if built. if [ x-$Shared_Lib = x-yes ]; then - CHECK_LIBINFO ${h5libdir}/libhdf5.so + CHECK_LIBINFO ${h5libdir}/libhdf5${shlibsuffix} else - SKIP ${h5libdir}/libhdf5.so + SKIP ${h5libdir}/libhdf5${shlibsuffix} fi # Though rare, libhdf5.a may not have been built. |