From 79fb21b7e904315de820c2bc75c4fe7ac10c95c9 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> Date: Thu, 23 Feb 2023 20:36:02 +0100 Subject: [PATCH] config: revert removal of macro definitions still used in the code --- m4/acx_options.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m4/acx_options.m4 b/m4/acx_options.m4 index 74e75c0f7..bd189fce0 100644 --- a/m4/acx_options.m4 +++ b/m4/acx_options.m4 @@ -206,6 +206,14 @@ 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])],,)]) +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])]) + +AS_IF([test "x$ENABLE_NC4HDF5" = "xyes"], + [AC_SEARCH_LIBS([H5get_libversion], [netcdf], + [AC_DEFINE([HAVE_H5GET_LIBVERSION],[1],[Define to 1 for H5get_libversion support])],,[-lhdf5])]) + AC_SUBST([ENABLE_NETCDF]) AC_SUBST([ENABLE_NC2]) AC_SUBST([ENABLE_NC4]) -- GitLab