[svn-r13181] Added a configure check to prevent a failure on Cygwin.
It seems that while Cygwin supports the time command, it has trouble with the syntax srcdir="../../hdf5/test" time ./testhdf5 and complains. The solution is to test the above case in configure and not to use the time command if it fails; Cygwin is fine with srcdir="../../hdf5/test" ./testhdf5 Tested on Cygwin and kagiso. This feature shouldn't be a major compatibility problem since every platform but Cygwin is already fine with the current syntax.
This commit is contained in:
@@ -237,6 +237,7 @@ SIZE_T = @SIZE_T@
|
||||
STATIC_SHARED = @STATIC_SHARED@
|
||||
STRIP = @STRIP@
|
||||
TESTPARALLEL = @TESTPARALLEL@
|
||||
TIME = @TIME@
|
||||
TR = @TR@
|
||||
TRACE_API = @TRACE_API@
|
||||
USE_FILTER_DEFLATE = @USE_FILTER_DEFLATE@
|
||||
@@ -300,7 +301,6 @@ target_alias = @target_alias@
|
||||
# Shell commands used in Makefiles
|
||||
RM = rm -f
|
||||
CP = cp
|
||||
TIME = time
|
||||
|
||||
# Some machines need a command to run executables; this is that command
|
||||
# so that our tests will run.
|
||||
|
||||
Reference in New Issue
Block a user