Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions BZIP2/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Allen Byrne, Ed Hartnett 1/14/19

# Initialize autoconf.
AC_PREREQ(2.59)
AC_INIT(H5BZ2, 1.0, [email protected])
AC_CONFIG_HEADER([bzip_config.h])
AC_PREREQ([2.71])
AC_INIT([H5BZ2],[1.0],[[email protected]])
AC_CONFIG_HEADERS([bzip_config.h])
AC_CONFIG_MACRO_DIR([m4])

# Initialize automake.
Expand All @@ -23,17 +23,17 @@ AC_PROG_INSTALL
# Initialize libtool, checking for dlopen.
LT_INIT(dlopen)

# If the env. variable HDF5_PLUGIN_DIR is set, or if
# --with-hdf5-plugin-dir=<directory>, use it as a place for the large
# If the env. variable HDF5_PLUGIN_PATH is set, or if
# --with-hdf5-plugin-path=<directory>, use it as a place for the large
# (i.e. > 2 GiB) files created during the large file testing.
AC_MSG_CHECKING([where to put HDF5 plugins])
HDF5_PLUGIN_DIR=${HDF5_PLUGIN_DIR-'/usr/local/hdf5/lib/plugin'}
AC_ARG_WITH([hdf5-plugin-dir],
[AS_HELP_STRING([--with-hdf5-plugin-dir=<directory>],
[specify HDF5 plugin directory (defaults to /usr/local/hdf5/lib/plugin, or value of HDF5_PLUGIN_DIR, if set)])],
[HDF5_PLUGIN_DIR=$with_hdf5_plugin_dir])
AC_MSG_RESULT($HDF5_PLUGIN_DIR)
AC_SUBST([HDF5_PLUGIN_DIR])
HDF5_PLUGIN_PATH=${HDF5_PLUGIN_PATH-'/usr/local/hdf5/lib/plugin'}
AC_ARG_WITH([hdf5-plugin-path],
[AS_HELP_STRING([--with-hdf5-plugin-path=<directory>],
[specify HDF5 plugin directory (defaults to /usr/local/hdf5/lib/plugin, or value of HDF5_PLUGIN_PATH, if set)])],
[HDF5_PLUGIN_PATH=$with_hdf5_plugin_path])
AC_MSG_RESULT($HDF5_PLUGIN_PATH)
AC_SUBST([HDF5_PLUGIN_PATH])

# Is the bzip2 library and header present?
AC_CHECK_HEADERS([bzlib.h], [], [AC_MSG_ERROR([bzlib.h is required, set CPPFLAGS.])])
Expand All @@ -46,8 +46,6 @@ AC_CHECK_LIB([m], [floor], [], [AC_MSG_ERROR([Math library is required.])])
AC_CHECK_HEADERS([hdf5.h], [], [AC_MSG_ERROR([hdf5.h is required, set CPPFLAGS.])])
AC_SEARCH_LIBS([H5Fflush], [hdf5dll hdf5], [], [AC_MSG_ERROR([libhdf5 is required, set LDFLAGS.])])

# Check for other header files we need.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
Expand Down
11 changes: 9 additions & 2 deletions BZIP2/example/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
# Link to our filter library.
LDADD = ${top_builddir}/src/libh5bz2.la

# Build example program.
noinst_PROGRAMS = h5ex_d_bzip2
# Build example program and run it as a test.
check_PROGRAMS = h5ex_d_bzip2
TESTS = run_tests.sh

# Clean up HDF5 file created by example.
CLEANFILES = *.h5

EXTRA_DIST = run_tests.sh


Loading