diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2020-04-08 21:51:38 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:34:20 (GMT) |
commit | 094effdf0d2381a7c8793f4ac1c21258e8b19646 (patch) | |
tree | c2fc08965b8be6ec245e854c7cb012d3731ea1cc /config | |
parent | a3f6f24c82bb75733a669805c3a2522e3b7d35de (diff) | |
download | hdf5-094effdf0d2381a7c8793f4ac1c21258e8b19646.zip hdf5-094effdf0d2381a7c8793f4ac1c21258e8b19646.tar.gz hdf5-094effdf0d2381a7c8793f4ac1c21258e8b19646.tar.bz2 |
Add enable-mirror-vfd flag to configure options.
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index 1c3d5f9..5a401f7 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -175,11 +175,17 @@ endif () # Check whether we can build the Mirror VFD # Header-check flags set in config/cmake_ext_mod/ConfigureChecks.cmake # ---------------------------------------------------------------------- -if ( ${HDF_PREFIX}_HAVE_NETINET_IN_H AND - ${HDF_PREFIX}_HAVE_NETDB_H AND - ${HDF_PREFIX}_HAVE_ARPA_INET_H AND - ${HDF_PREFIX}_HAVE_SYS_SOCKET_H) - set (${HDF_PREFIX}_HAVE_MIRROR_VFD 1) +option (HDF5_ENABLE_MIRROR_VFD "Build the Mirror Virtual File Driver" OFF) +if (H5FD_ENABLE_MIRROR_VFD) + if ( ${HDF_PREFIX}_HAVE_NETINET_IN_H AND + ${HDF_PREFIX}_HAVE_NETDB_H AND + ${HDF_PREFIX}_HAVE_ARPA_INET_H AND + ${HDF_PREFIX}_HAVE_SYS_SOCKET_H AND + ${HDF_PREFIX}_HAVE_FORK) + set (${HDF_PREFIX}_HAVE_MIRROR_VFD 1) + else() + message(STATUS "The socket-based Mirror VFD was requested but cannot be built. System prerequisites are not met.") + endif() endif() #----------------------------------------------------------------------------- |