mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
make ncdumpchunks conditional
This commit is contained in:
parent
68a98f6e81
commit
c4faca3bcc
10
configure.ac
10
configure.ac
@ -498,7 +498,7 @@ else
|
||||
AC_DEFINE_UNQUOTED(USE_NETCDF_2, 1, [build the netCDF version 2 API])
|
||||
fi
|
||||
|
||||
# Does the user want to disable ncgen/ncdump/nccopy?
|
||||
# Does the user want to disable ncgen/ncdump/nccopy/...?
|
||||
AC_MSG_CHECKING([whether the ncgen/ncdump/nccopy should be built])
|
||||
AC_ARG_ENABLE([utilities],
|
||||
[AS_HELP_STRING([--disable-utilities],
|
||||
@ -1105,7 +1105,15 @@ if test "x$enable_hdf5" = xyes; then
|
||||
AC_DEFINE([USE_SZIP], [1], [if true, compile in szip compression in netCDF-4 variables])
|
||||
fi
|
||||
AC_MSG_RESULT([$enable_szlib])
|
||||
|
||||
if test "x$nc_build_utilities" = xyes ; then
|
||||
# See if H5Dread_chunk is available
|
||||
AC_SEARCH_LIBS([H5Dread_chunk],[hdf5_hldll hdf5_hl], [enable_readchunks=yes], [enable_readdhunks=no])
|
||||
else
|
||||
enable_readchunks=no
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_NCDUMPCHUNKS, [test "x$enable_readchunks" = xyes ])
|
||||
|
||||
# If the user wants hdf4 built in, check it out.
|
||||
if test "x$enable_hdf4" = xyes; then
|
||||
|
@ -23,7 +23,7 @@ OBSOLETE = odom.c odom.h jdatastd.c jdatajni.c genjni.c cdfdata.c cmldata.c
|
||||
|
||||
# Given a netcdf4 file, dump the actual chunk contents.
|
||||
# Used to validate nczarr chunking code.
|
||||
if USE_HDF5
|
||||
if ENABLE_NCDUMPCHUNKS
|
||||
noinst_PROGRAMS = ncdumpchunks
|
||||
ncdumpchunks_SOURCES = ncdumpchunks.c
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user