From 3bb9aaf4301d448e39ecfe31cf936aae737c5247 Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 13 Aug 2024 07:44:57 -0600 Subject: [PATCH] fixed --with-plugin-dir option to match cmake behavior --- configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1a1d7615e..b4939b293 100644 --- a/configure.ac +++ b/configure.ac @@ -1915,11 +1915,20 @@ fi AC_SUBST(STD_FILTERS,[$std_filters]) -# If user wants, then install selected standard filters +# The --with-plugin-dir gives the user control of the plugin +# directory. If set to 'yes' (the default), then first directory in +# the HDF5_PLUGIN_PATH, or /usr/local/hdf5/lib/plugin (the default +# HDF5 plugin dir) will be used. If another directory is provided, it +# will be used. If 'no', then plugins will not be installed. AC_MSG_CHECKING([whether and where we should install plugins]) -AC_ARG_WITH([plugin-dir], [AS_HELP_STRING([--with-plugin-dir=|no|--without-plugin-dir], +AC_ARG_WITH([plugin-dir], [AS_HELP_STRING([--with-plugin-dir=|yes|no|--without-plugin-dir], [Install selected standard filters in specified or default directory])], [],[with_plugin_dir=no]) +if test "x$have_zstd" = xyes; then + if test "x$with_plugin_dir" = xno; then + with_plugin_dir=yes + fi +fi AC_MSG_RESULT([$with_plugin_dir]) if test "x$with_plugin_dir" = xno ; then # option missing|disabled with_plugin_dir=no