diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2016-03-07 22:03:57 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2016-03-07 22:03:57 (GMT) |
commit | 2c36685010638e6bfcdd4ec74194cd200081668b (patch) | |
tree | 2f8a2d904c2bdcfeccf97f17f9ea2cec5f9ada52 /test/tcheck_version.c | |
parent | b99b5d494e4aa86901d7a68d4a31de96d11c83c7 (diff) | |
download | hdf5-2c36685010638e6bfcdd4ec74194cd200081668b.zip hdf5-2c36685010638e6bfcdd4ec74194cd200081668b.tar.gz hdf5-2c36685010638e6bfcdd4ec74194cd200081668b.tar.bz2 |
[svn-r29326] HDFFV-9536: Changed H5check_version() to use libtool shared library version numbers instead of the library version numbers.
bin/h5vers:
Changed to copy the shared lib version from lt_vers.am to H5public.h
(Thanks to Larry who made the changes.)
config/lt_vers.am:
cosmetic change, nothing material.
src/H5public.h:
Changed by bin/h5vers.
src/H5.c:
Changed H5check_version() to use shared library version for compatibility
checking.
test/tcheck_version.c:
test/testcheck_version.sh.in:
Changed to use shared library version numbers instead of the HDF5 library
version numbers for testing.
Tested: tested in Jam (C only), platypus and osx1010dev (enable fortran and C++).
Diffstat (limited to 'test/tcheck_version.c')
-rw-r--r-- | test/tcheck_version.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/tcheck_version.c b/test/tcheck_version.c index a75d642..48d5523 100644 --- a/test/tcheck_version.c +++ b/test/tcheck_version.c @@ -39,9 +39,9 @@ void parse(int ac, char **av); void abort_intercept (int H5_ATTR_UNUSED sig); /* global variables */ -unsigned major = H5_VERS_MAJOR; -unsigned minor = H5_VERS_MINOR; -unsigned release = H5_VERS_RELEASE; +unsigned interface = LT_VERS_INTERFACE; +unsigned revision = LT_VERS_REVISION; +unsigned age = LT_VERS_AGE; void showhelp(void) @@ -50,9 +50,9 @@ showhelp(void) printf("\t-h\tShow this page and version information\n"); printf("\t-t<vers>: Test by changing (adding 1 to) the <vers> to trigger\n"); printf("\t\t the warning. <vers> can be:\n"); - printf("\t\t\tM for Major version number (%d)\n", H5_VERS_MAJOR); - printf("\t\t\tm for Minor version number (%d)\n", H5_VERS_MINOR); - printf("\t\t\tr for Release number (%d)\n", H5_VERS_RELEASE); + printf("\t\t\tI for Interface number (%d)\n", LT_VERS_INTERFACE); + printf("\t\t\tA for Age number (%d)\n", LT_VERS_AGE); + printf("\t\t\tR for Revision number (%d)\n", LT_VERS_REVISION); } @@ -70,14 +70,14 @@ parse(int ac, char **av) switch(*(++pt)) { case 't': /* option -t */ switch(*(++pt)) { - case 'M': - major++; + case 'I': + interface++; break; - case 'm': - minor++; + case 'R': + revision++; break; - case 'r': - release++; + case 'A': + age++; break; default: fprintf(stderr, "Unknown -v parameter (%s). Aborted.\n", *av); @@ -115,7 +115,7 @@ main(int ac, char **av) { parse(ac, av); HDsignal(SIGABRT, &abort_intercept); - H5check_version(major, minor, release); + H5check_interface_compatibility(interface, age, revision); HDsignal(SIGABRT, SIG_DFL); return 0; } |