summaryrefslogtreecommitdiffstats
path: root/examples/testh5cc.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'examples/testh5cc.sh.in')
-rw-r--r--examples/testh5cc.sh.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in
index 0e2b851..d3f1cfc 100644
--- a/examples/testh5cc.sh.in
+++ b/examples/testh5cc.sh.in
@@ -23,6 +23,8 @@
# Added version compatibility tests.
#
+srcdir=@srcdir@
+
# Initializations
TESTNAME=h5cc
EXIT_SUCCESS=0
@@ -53,11 +55,6 @@ H5_USE_16_API_DEFAULT=`grep '#define H5_USE_16_API_DEFAULT ' ../src/H5pubconf.h`
myos=`uname -s`
myhostnama=`uname -n`
-# The build (current) directory might be different than the source directory.
-if test -z "$srcdir"; then
- srcdir=.
-fi
-
# Generate some source files and library for tests.
suffix=c # source file suffix
hdf5main=${H5TOOL}_hdf5main.$suffix