-
Notifications
You must be signed in to change notification settings - Fork 16
/
configure.ac
68 lines (57 loc) · 2.34 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This is the main configure file for the hdf5_plugins project.
# Ed Hartnett 12/24/2019
AC_PREREQ([2.59])
# Initialize with name, version, and support email address.
AC_INIT([hdf5_plugins], [1.0], [])
AM_INIT_AUTOMAKE([foreign dist-zip])
# Keep libtool macros in an m4 directory.
AC_CONFIG_MACRO_DIR([m4])
# Set up libtool.
LT_PREREQ([2.4])
LT_INIT()
# If the env. variable HDF5_PLUGIN_DIR is set, or if
# --with-hdf5-plugin-dir=<directory>, use it as a place for the large
# (i.e. > 2 GiB) files created during the large file testing. This is
# necessary at the top level to provide the help message and --with
# option. If used, the option will be passed to the subdirs, and also
# handled by the configure in each filter subdirectory.
AC_MSG_CHECKING([where to put HDF5 plugins])
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])
HDF5_PLUGIN_DIR=${HDF5_PLUGIN_DIR-.}
AC_MSG_RESULT($HDF5_PLUGIN_DIR)
# Does the user want BZIP2?
AC_MSG_CHECKING([whether BZIP2 filter library should be built and installed])
AC_ARG_ENABLE([bzip2],
[AS_HELP_STRING([--disable-bzip2],
[Disable the build and install of bzip2 filter library.])])
test "x$enable_bzip2" = xno || enable_bzip2=yes
AC_MSG_RESULT($enable_bzip2)
AM_CONDITIONAL(BUILD_BZIP2, [test "x$enable_bzip2" = xyes])
# Does the user want LZ4?
AC_MSG_CHECKING([whether LZ4 filter library should be built and installed])
AC_ARG_ENABLE([lz4],
[AS_HELP_STRING([--disable-lz4],
[Disable the build and install of lz4 filter library.])])
test "x$enable_lz4" = xno || enable_lz4=yes
AC_MSG_RESULT($enable_lz4)
AM_CONDITIONAL(BUILD_LZ4, [test "x$enable_lz4" = xyes])
# Build the filter libraries as desired.
if test "x$enable_bzip2" = xyes; then
AC_CONFIG_SUBDIRS([BZIP2])
fi
if test "x$enable_lz4" = xyes; then
AC_CONFIG_SUBDIRS([LZ4])
fi
#AC_CONFIG_SUBDIRS([BLOSC])
#AC_CONFIG_SUBDIRS([BLOSC2])
#AC_CONFIG_SUBDIRS([BSHUF])
AC_CONFIG_SUBDIRS([JPEG])
#AC_CONFIG_SUBDIRS([LZF])
# These files will be created when the configure script is run.
AC_CONFIG_FILES([Makefile
libs/Makefile
])
AC_OUTPUT()