diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-12 22:01:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-12 22:01:35 (GMT) |
commit | b4e029c70b5d23cde5b58d23bf244eac3b1b9077 (patch) | |
tree | 78a5382d3b22543b70b1612249c04e5d0c37b1e5 | |
parent | a73ea1b4f06635fa712d93f3d956fbede0bd8294 (diff) | |
download | hdf5-b4e029c70b5d23cde5b58d23bf244eac3b1b9077.zip hdf5-b4e029c70b5d23cde5b58d23bf244eac3b1b9077.tar.gz hdf5-b4e029c70b5d23cde5b58d23bf244eac3b1b9077.tar.bz2 |
[svn-r13971] Description:
Add --enable-deprecated-symbols configure option, to allow users to
remove deprecated public API symbols at configure time.
Add bin/make_vers script to bin/reconfigure actions.
Run bin/reconfigure to regenerate autotool components.
Tested on:
Mac OS X/32 10.4.10 (amazon)
FreeBSD/32 6.2 (duty)
Linux/32 2.6 (kagiso)
45 files changed, 161 insertions, 49 deletions
diff --git a/Makefile.in b/Makefile.in index d43766f..4404179 100644 --- a/Makefile.in +++ b/Makefile.in @@ -137,6 +137,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/bin/make_vers b/bin/make_vers index 465a308..7f612b4 100755 --- a/bin/make_vers +++ b/bin/make_vers @@ -86,9 +86,9 @@ sub print_checkoptions ($) { # Print the option checking print $fh "\n/* Issue error if contradicting macros have been defined. */\n"; - print $fh "#if defined(H5_USE_16_API) && defined(H5_WITHOUT_DEPRECATED_APIS)\n"; + print $fh "#if defined(H5_USE_16_API) && defined(H5_NO_DEPRECATED_SYMBOLS)\n"; print $fh "#error \"Can't choose old API versions when deprecated APIs are disabled\"\n"; - print $fh "#endif /* defined(H5_USE_16_API) && defined(H5_WITHOUT_DEPRECATED_APIS) */\n"; + print $fh "#endif /* defined(H5_USE_16_API) && defined(H5_NO_DEPRECATED_SYMBOLS) */\n"; } ############################################################################## diff --git a/bin/reconfigure b/bin/reconfigure index 5c4a7b1..3ead9a9 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -118,11 +118,18 @@ echo echo " Running trace script:" bin/trace src/H5*.c || exit 1 -# Run make_error -# make_error automatically generates the H5E headers that create error message +# Run make_err +# make_err automatically generates the H5E headers that create error message # types for HDF5. echo echo " Running error generation script:" bin/make_err src/H5err.txt || exit 1 +# Run make_vers +# make_vers automatically generates the public headers that define the API version +# macros for HDF5. +echo +echo " Running API version generation script:" +bin/make_vers src/H5vers.txt || exit 1 + exit 0 diff --git a/c++/Makefile.in b/c++/Makefile.in index 9a8cc71..76dd802 100644 --- a/c++/Makefile.in +++ b/c++/Makefile.in @@ -108,6 +108,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in index edf1ee6..c5071be 100644 --- a/c++/examples/Makefile.in +++ b/c++/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in index 2f3825d..1b39cda 100644 --- a/c++/src/Makefile.in +++ b/c++/src/Makefile.in @@ -138,6 +138,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in index 1cfe7e6..beddb9e 100644 --- a/c++/test/Makefile.in +++ b/c++/test/Makefile.in @@ -124,6 +124,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 13925 2007-06-28 20:36:08Z mcgreevy . +# From configure.in Id: configure.in 13928 2007-06-29 20:52:56Z mcgreevy . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for HDF5 1.8.0-beta2post1. # @@ -943,6 +943,7 @@ HL HL_FOR BUILD_ALL_CONDITIONAL_TRUE BUILD_ALL_CONDITIONAL_FALSE +DEPRECATED_SYMBOLS BUILD_CXX_CONDITIONAL_TRUE BUILD_CXX_CONDITIONAL_FALSE BUILD_PARALLEL_CONDITIONAL_TRUE @@ -1620,6 +1621,8 @@ Optional Features: --enable-hl Enable the high level library [default=yes] --enable-build-all Build helper programs that only developers should need [default=no] + --enable-deprecated-symbols + Enable deprecated public API symbols [default=yes] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -7921,7 +7924,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 7924 "configure"' > conftest.$ac_ext + echo '#line 7927 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -10195,11 +10198,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10198: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10201: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:10202: \$? = $ac_status" >&5 + echo "$as_me:10205: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -10463,11 +10466,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10466: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10469: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:10470: \$? = $ac_status" >&5 + echo "$as_me:10473: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -10567,11 +10570,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10570: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10573: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:10574: \$? = $ac_status" >&5 + echo "$as_me:10577: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -12947,7 +12950,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 12950 "configure" +#line 12953 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13047,7 +13050,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 13050 "configure" +#line 13053 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15399,11 +15402,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15402: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15405: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15406: \$? = $ac_status" >&5 + echo "$as_me:15409: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -15503,11 +15506,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15506: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15509: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:15510: \$? = $ac_status" >&5 + echo "$as_me:15513: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -17073,11 +17076,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17076: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17079: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17080: \$? = $ac_status" >&5 + echo "$as_me:17083: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -17177,11 +17180,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17180: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17183: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:17184: \$? = $ac_status" >&5 + echo "$as_me:17187: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -19375,11 +19378,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19378: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19381: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19382: \$? = $ac_status" >&5 + echo "$as_me:19385: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19643,11 +19646,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19646: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19649: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19650: \$? = $ac_status" >&5 + echo "$as_me:19653: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19747,11 +19750,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19750: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19753: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19754: \$? = $ac_status" >&5 + echo "$as_me:19757: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -52507,6 +52510,35 @@ fi +{ echo "$as_me:$LINENO: checking if deprecated public symbols are available" >&5 +echo $ECHO_N "checking if deprecated public symbols are available... $ECHO_C" >&6; }; +# Check whether --enable-deprecated-symbols was given. +if test "${enable_deprecated_symbols+set}" = set; then + enableval=$enable_deprecated_symbols; DEPREC_SYMBOLS=$enableval +else + DEPREC_SYMBOLS=yes +fi + + +case "X-$DEPREC_SYMBOLS" in + X-yes) + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + DEPRECATED_SYMBOLS=yes + ;; + X-no|*) + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + DEPRECATED_SYMBOLS=no + +cat >>confdefs.h <<\_ACEOF +#define NO_DEPRECATED_SYMBOLS 1 +_ACEOF + + ;; +esac + + if test "X$HDF_CXX" = "Xyes"; then BUILD_CXX_CONDITIONAL_TRUE= BUILD_CXX_CONDITIONAL_FALSE='#' @@ -53558,6 +53590,7 @@ HL!$HL$ac_delim HL_FOR!$HL_FOR$ac_delim BUILD_ALL_CONDITIONAL_TRUE!$BUILD_ALL_CONDITIONAL_TRUE$ac_delim BUILD_ALL_CONDITIONAL_FALSE!$BUILD_ALL_CONDITIONAL_FALSE$ac_delim +DEPRECATED_SYMBOLS!$DEPRECATED_SYMBOLS$ac_delim BUILD_CXX_CONDITIONAL_TRUE!$BUILD_CXX_CONDITIONAL_TRUE$ac_delim BUILD_CXX_CONDITIONAL_FALSE!$BUILD_CXX_CONDITIONAL_FALSE$ac_delim BUILD_PARALLEL_CONDITIONAL_TRUE!$BUILD_PARALLEL_CONDITIONAL_TRUE$ac_delim @@ -53572,7 +53605,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 @@ -54311,6 +54344,9 @@ IF_YES_NO "$enable_static" PRINT_N " Statically Linked Executables" IF_YES_NO "$STATIC_EXEC" +PRINT_N " With Deprecated Public Symbols" +IF_YES_NO "$DEPRECATED_SYMBOLS" + PRINT_N " Tracing" IF_YES_NO "$TRACE_API" diff --git a/configure.in b/configure.in index 0512054..2f8bf37 100644 --- a/configure.in +++ b/configure.in @@ -95,7 +95,7 @@ dnl DEFAULT_LIBS="" dnl Support F9X variable to define Fortran compiler if FC variable is -dnl not used. This should be depreciated in the future. +dnl not used. This should be deprecated in the future. if test "x" = "x$FC"; then FC=${F9X} fi @@ -3679,6 +3679,30 @@ fi AM_CONDITIONAL([BUILD_ALL_CONDITIONAL], [test "X$BUILD_ALL" = "Xyes"]) dnl ---------------------------------------------------------------------- +dnl Enable deprecated public API symbols +dnl +AC_SUBST([DEPRECATED_SYMBOLS]) +AC_MSG_CHECKING([if deprecated public symbols are available]); +AC_ARG_ENABLE([deprecated-symbols], + [AC_HELP_STRING([--enable-deprecated-symbols], + [Enable deprecated public API symbols [default=yes]])], + [DEPREC_SYMBOLS=$enableval], + [DEPREC_SYMBOLS=yes]) + +case "X-$DEPREC_SYMBOLS" in + X-yes) + AC_MSG_RESULT([yes]) + DEPRECATED_SYMBOLS=yes + ;; + X-no|*) + AC_MSG_RESULT([no]) + DEPRECATED_SYMBOLS=no + AC_DEFINE([NO_DEPRECATED_SYMBOLS], [1], + [Define if deprecated public API symbols are disabled]) + ;; +esac + +dnl ---------------------------------------------------------------------- dnl Create automake conditionals to tell automake makefiles which directories dnl need to be compiled @@ -3926,6 +3950,9 @@ IF_YES_NO "$enable_static" PRINT_N " Statically Linked Executables" IF_YES_NO "$STATIC_EXEC" +PRINT_N " With Deprecated Public Symbols" +IF_YES_NO "$DEPRECATED_SYMBOLS" + PRINT_N " Tracing" IF_YES_NO "$TRACE_API" diff --git a/examples/Makefile.in b/examples/Makefile.in index ef6acf1..2788226 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/fortran/Makefile.in b/fortran/Makefile.in index 5a0fef8..8262d8d 100644 --- a/fortran/Makefile.in +++ b/fortran/Makefile.in @@ -112,6 +112,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/fortran/examples/Makefile.in b/fortran/examples/Makefile.in index ae32620..dd9e49d 100644 --- a/fortran/examples/Makefile.in +++ b/fortran/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/fortran/src/Makefile.in b/fortran/src/Makefile.in index e2428e5..c1600ae 100644 --- a/fortran/src/Makefile.in +++ b/fortran/src/Makefile.in @@ -165,6 +165,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/fortran/test/Makefile.in b/fortran/test/Makefile.in index 2f6ee47..5ffa981 100644 --- a/fortran/test/Makefile.in +++ b/fortran/test/Makefile.in @@ -158,6 +158,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/fortran/testpar/Makefile.in b/fortran/testpar/Makefile.in index 338a1a8..bee89db 100644 --- a/fortran/testpar/Makefile.in +++ b/fortran/testpar/Makefile.in @@ -115,6 +115,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/Makefile.in b/hl/Makefile.in index 32c02b3..02a86a9 100755 --- a/hl/Makefile.in +++ b/hl/Makefile.in @@ -112,6 +112,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/c++/Makefile.in b/hl/c++/Makefile.in index 81cb283..9320b42 100644 --- a/hl/c++/Makefile.in +++ b/hl/c++/Makefile.in @@ -108,6 +108,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/c++/examples/Makefile.in b/hl/c++/examples/Makefile.in index fe344d9..6eaac65 100644 --- a/hl/c++/examples/Makefile.in +++ b/hl/c++/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/c++/src/Makefile.in b/hl/c++/src/Makefile.in index 35f1148..9657e87 100644 --- a/hl/c++/src/Makefile.in +++ b/hl/c++/src/Makefile.in @@ -127,6 +127,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/c++/test/Makefile.in b/hl/c++/test/Makefile.in index d619d7b..7e38e29 100644 --- a/hl/c++/test/Makefile.in +++ b/hl/c++/test/Makefile.in @@ -118,6 +118,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/examples/Makefile.in b/hl/examples/Makefile.in index 64fda22..edc4d59 100644 --- a/hl/examples/Makefile.in +++ b/hl/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/fortran/Makefile.in b/hl/fortran/Makefile.in index db9c4c6..08aeebe 100644 --- a/hl/fortran/Makefile.in +++ b/hl/fortran/Makefile.in @@ -112,6 +112,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/fortran/examples/Makefile.in b/hl/fortran/examples/Makefile.in index 693357f..6af4517 100644 --- a/hl/fortran/examples/Makefile.in +++ b/hl/fortran/examples/Makefile.in @@ -102,6 +102,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/fortran/src/Makefile.in b/hl/fortran/src/Makefile.in index bf9ac00..52a4988 100644 --- a/hl/fortran/src/Makefile.in +++ b/hl/fortran/src/Makefile.in @@ -132,6 +132,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/fortran/test/Makefile.in b/hl/fortran/test/Makefile.in index 3233ade..e474329 100644 --- a/hl/fortran/test/Makefile.in +++ b/hl/fortran/test/Makefile.in @@ -122,6 +122,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/src/Makefile.in b/hl/src/Makefile.in index 670932f..b6a1cb7 100644 --- a/hl/src/Makefile.in +++ b/hl/src/Makefile.in @@ -128,6 +128,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/test/Makefile.in b/hl/test/Makefile.in index 08276d4..d187676 100644 --- a/hl/test/Makefile.in +++ b/hl/test/Makefile.in @@ -138,6 +138,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/tools/Makefile.in b/hl/tools/Makefile.in index aa08313..45b21b1 100644 --- a/hl/tools/Makefile.in +++ b/hl/tools/Makefile.in @@ -109,6 +109,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/hl/tools/gif2h5/Makefile.in b/hl/tools/gif2h5/Makefile.in index f8befa4..8cf0b32 100644 --- a/hl/tools/gif2h5/Makefile.in +++ b/hl/tools/gif2h5/Makefile.in @@ -130,6 +130,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/perform/Makefile.in b/perform/Makefile.in index 496d2ee..8eb46b4 100644 --- a/perform/Makefile.in +++ b/perform/Makefile.in @@ -153,6 +153,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/src/H5config.h.in b/src/H5config.h.in index a4ce02f..06e1972 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -441,6 +441,9 @@ /* Define if your system can handle special collective IO properly. */ #undef MPI_SPECIAL_COLLECTIVE_IO_WORKS +/* Define if deprecated public API symbols are disabled */ +#undef NO_DEPRECATED_SYMBOLS + /* Define if shared writing must be disabled (CodeWarrior only) */ #undef NO_SHARED_WRITING diff --git a/src/H5version.h b/src/H5version.h index a74857b..6b27ce3 100644 --- a/src/H5version.h +++ b/src/H5version.h @@ -21,9 +21,9 @@ #define _H5version_H /* Issue error if contradicting macros have been defined. */ -#if defined(H5_USE_16_API) && defined(H5_WITHOUT_DEPRECATED_APIS) +#if defined(H5_USE_16_API) && defined(H5_NO_DEPRECATED_SYMBOLS) #error "Can't choose old API versions when deprecated APIs are disabled" -#endif /* defined(H5_USE_16_API) && defined(H5_WITHOUT_DEPRECATED_APIS) */ +#endif /* defined(H5_USE_16_API) && defined(H5_NO_DEPRECATED_SYMBOLS) */ /* If a particular "global" version of the library's interfaces is chosen, * set the versions for the API routines affected. diff --git a/src/Makefile.in b/src/Makefile.in index c6284b6..5f8d79a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -183,6 +183,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ @@ -442,14 +443,15 @@ libhdf5_la_SOURCES = H5.c H5checksum.c H5dbg.c H5system.c H5timer.c H5trace.c \ # Public headers -include_HEADERS = H5public.h H5version.h H5Apublic.h H5ACpublic.h \ - H5Cpublic.h H5Dpublic.h \ +include_HEADERS = hdf5.h H5api_adpt.h H5pubconf.h H5public.h H5version.h \ + H5Apublic.h H5ACpublic.h \ + H5Cpublic.h H5Dpublic.h \ H5Epubgen.h H5Epublic.h H5Fpublic.h H5FDpublic.h H5FDcore.h H5FDdirect.h \ H5FDfamily.h H5FDlog.h H5FDmpi.h H5FDmpio.h H5FDmpiposix.h \ H5FDmulti.h H5FDsec2.h H5FDstdio.h H5FDstream.h \ H5Gpublic.h H5Ipublic.h H5Lpublic.h \ H5MMpublic.h H5Opublic.h H5Ppublic.h H5Rpublic.h H5Spublic.h \ - H5Tpublic.h H5Zpublic.h H5pubconf.h hdf5.h H5api_adpt.h + H5Tpublic.h H5Zpublic.h # install libhdf5.settings in lib directory @@ -1062,21 +1064,8 @@ help: # http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have # access to either file, you may request a copy from help@hdfgroup.org. -# API version macro generation -# -$(top_srcdir)/src/H5version.h: $(top_srcdir)/src/H5vers.txt - perl $(top_srcdir)/bin/make_vers $? - -# Error header generation -# -# Actually, H5Einit.h, H5Eterm.h, H5Edefin.h and H5Epubgen.h all -# depend on H5err.txt, but the perl script generates them all, so just -# list one here. -$(top_srcdir)/src/H5Edefin.h: $(top_srcdir)/src/H5err.txt - perl $(top_srcdir)/bin/make_err $? - # Number format detection -# The LD_LIBRARY_PATH setting is a klutch. +# The LD_LIBRARY_PATH setting is a kludge. # Things should have been all set during H5detect making. # Remove the generated .c file if errors occur unless HDF5_Make_Ignore # is set to ignore the error. @@ -1087,6 +1076,18 @@ H5Tinit.c: H5detect$(EXEEXT) (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ ($(RM) $@ ; exit 1) +# Error header generation +# +# Actually, H5Einit.h, H5Eterm.h, H5Edefin.h and H5Epubgen.h all +# depend on H5err.txt, but the perl script generates them all, so just +# list one here. +$(top_srcdir)/src/H5Edefin.h: $(top_srcdir)/src/H5err.txt + perl $(top_srcdir)/bin/make_err $? + +# API version macro generation +$(top_srcdir)/src/H5version.h: $(top_srcdir)/src/H5vers.txt + perl $(top_srcdir)/bin/make_vers $? + # Add TRACE macros to library source files. This is done via the trace script # in the hdf5/bin directory. If the file contains HDF5 API macros, a "clean" # version of the source file is saved with a tilde (~) after its name and diff --git a/test/Makefile.in b/test/Makefile.in index 1f6f193..ca31aec 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -392,6 +392,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/testpar/Makefile.in b/testpar/Makefile.in index 49adf76..0646f4d 100644 --- a/testpar/Makefile.in +++ b/testpar/Makefile.in @@ -145,6 +145,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/Makefile.in b/tools/Makefile.in index 9c97e0c..f61724c 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -109,6 +109,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5copy/Makefile.in b/tools/h5copy/Makefile.in index fc8dfcd..55d5eea 100644 --- a/tools/h5copy/Makefile.in +++ b/tools/h5copy/Makefile.in @@ -126,6 +126,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5diff/Makefile.in b/tools/h5diff/Makefile.in index 0b68c42..3b9e4c2 100644 --- a/tools/h5diff/Makefile.in +++ b/tools/h5diff/Makefile.in @@ -133,6 +133,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5dump/Makefile.in b/tools/h5dump/Makefile.in index 51dcc4e..46f37db 100644 --- a/tools/h5dump/Makefile.in +++ b/tools/h5dump/Makefile.in @@ -131,6 +131,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5import/Makefile.in b/tools/h5import/Makefile.in index 097075a..86f2f7e 100755 --- a/tools/h5import/Makefile.in +++ b/tools/h5import/Makefile.in @@ -126,6 +126,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5jam/Makefile.in b/tools/h5jam/Makefile.in index a4b7142..63a9819 100644 --- a/tools/h5jam/Makefile.in +++ b/tools/h5jam/Makefile.in @@ -137,6 +137,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5ls/Makefile.in b/tools/h5ls/Makefile.in index 50a2f6d..36c868f 100644 --- a/tools/h5ls/Makefile.in +++ b/tools/h5ls/Makefile.in @@ -120,6 +120,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/h5repack/Makefile.in b/tools/h5repack/Makefile.in index b9028b5..626ba92 100644 --- a/tools/h5repack/Makefile.in +++ b/tools/h5repack/Makefile.in @@ -140,6 +140,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/lib/Makefile.in b/tools/lib/Makefile.in index 2d09465..be0eb93 100644 --- a/tools/lib/Makefile.in +++ b/tools/lib/Makefile.in @@ -125,6 +125,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ diff --git a/tools/misc/Makefile.in b/tools/misc/Makefile.in index 17e124e..2c1424c 100644 --- a/tools/misc/Makefile.in +++ b/tools/misc/Makefile.in @@ -149,6 +149,7 @@ CYGPATH_W = @CYGPATH_W@ DEBUG_PKG = @DEBUG_PKG@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DEPRECATED_SYMBOLS = @DEPRECATED_SYMBOLS@ DYNAMIC_DIRS = @DYNAMIC_DIRS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ |