diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-12-08 20:56:28 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-12-08 20:56:28 (GMT) |
commit | 25486d50895fa4a30809d289b9aff4de583a9b84 (patch) | |
tree | e671da73eed839a04261cb17a6604ef21da6a5ee /configure | |
parent | fc38cc4d36abdf26d48ba6bb778702d30bee45b0 (diff) | |
download | hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.zip hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.tar.gz hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.tar.bz2 |
[svn-r19879] Purpose:
Improve portability of flushrefresh test.
Description:
The flush/refresh API test was hanging on linew because
Solaris's 'date' tool does not recognize the "+%s" option,
which returns time since the epoch on other UNIXes.
There doesn't seem to be a good way to unify the tools,
however, Perl can be easily used for this function. I've
modified configure to always check for the existence of
Perl (previously it only did so if GNU compilers were being
used), and the flush/refresh test script now uses perl to
perform this timestamping functionality rather than date,
by default. (if Perl is not detected by configure, the
script will use date as it did prior to this modification).
Fixed a few other compatibility issues w/ Solaris in passing:
- fixed 'head' and 'tail' parameters to be more portable
- avoid passing NULL to an fprintf call in flushrefresh.c
Tested:
- Tested testflushrefresh.sh on jam, linew, heiwa, liberty,
duty, ember, and abe.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 19714 2010-11-02 19:00:56Z mamcgree . +# From configure.in Id: configure.in 19715 2010-11-02 20:14:08Z koziol . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67 for HDF5 1.9.79-FA_a5. # @@ -7072,9 +7072,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu - PERL="" -if test "X$GCC" = "Xyes"; then - for ac_prog in perl +for ac_prog in perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -7116,7 +7114,6 @@ fi test -n "$PERL" && break done -fi if test -z "$AR"; then |