Skip to content

Commit

Permalink
fixing configure issues
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Sep 12, 2024
1 parent 62a1162 commit 38dcab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ AC_MSG_RESULT($enable_dap)
if test "x$enable_remote_functionality" = xno ; then
AC_MSG_WARN([All network access is disabled => DAP support disabled.])
enable_dap=no
AC_MSG_WARN([All network access is disabled => NCZARR support disabled.])
enable_nczarr=no
fi

AC_MSG_CHECKING([whether netcdf zarr storage format should be disabled])
Expand Down Expand Up @@ -664,6 +666,13 @@ AC_ARG_ENABLE([quantize],
[disable quantize support. It is safe to leave this on unless you specifically need to disable it.])])
test "x$enable_quantize" = xno || enable_quantize=yes

# If HDF5 and nczarr are disabled, there is no quantize.
if test "x${enable_hdf5}" = xno; then
if test "x${enable_nczarr}" = xno; then
enable_quantize=no
fi
fi

AC_MSG_RESULT($enable_quantize)
if test "x${enable_quantize}" = xyes; then
AC_DEFINE([NETCDF_ENABLE_QUANTIZE], [1], [if true, enable quantize support])
Expand Down

0 comments on commit 38dcab6

Please sign in to comment.