Commit 29548d2f authored by Uwe Schulzweida's avatar Uwe Schulzweida

Added check for NetCDF4 function nc_def_var_szip().

parent 47ac3c2a
......@@ -158,6 +158,10 @@ AS_VAR_IF([ENABLE_NETCDF], [yes],
[AC_DEFINE([HAVE_NC4SZLIB],[1],[Define to 1 for NetCDF4/szlib support])
ENABLE_NC4SZLIB=yes])])
AS_IF([test "x$ENABLE_NC4SZLIB" = "xyes"],
[AC_SEARCH_LIBS([nc_def_var_szip], [netcdf],
[AC_DEFINE([HAVE_NC_DEF_VAR_SZIP],[1],[Define to 1 for NetCDF4 nc_def_var_szip support])],,[-lhdf5])])
AS_IF([test "x$ENABLE_NC4HDF5" = "xyes"],
[AC_SEARCH_LIBS([H5TS_mutex_lock], [netcdf],
[AC_DEFINE([HAVE_NC4HDF5_THREADSAFE],[1],[Define to 1 for NetCDF4/HDF5 threadsafe support])],,[-lhdf5])])
......
......@@ -39,7 +39,7 @@ void cdfDefVarDeflate(int ncid, int ncvarID, int deflate_level)
void cdfDefVarSzip(int ncid, int ncvarID, int pixels_per_block)
{
#ifdef HAVE_NC4SZLIB
#ifdef HAVE_NC_DEF_VAR_SZIP
// Set options_mask.
/*
H5_SZIP_ALLOW_K13_OPTION_MASK 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment