diff options
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 9 | ||||
-rw-r--r-- | config/cmake/H5pubconf.h.in | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index 4b68b2e..140c51c 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -665,6 +665,15 @@ if (MINGW OR NOT WINDOWS) list (APPEND LINK_LIBS posix4) endif () endif () + +# Check for clock_gettime() CLOCK_MONOTONIC_COARSE +set (CMAKE_EXTRA_INCLUDE_FILES time.h) +check_type_size(CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_COARSE_SIZE) +if (HAVE_CLOCK_MONOTONIC_COARSE_SIZE) + set (${HDF_PREFIX}_HAVE_CLOCK_MONOTONIC_COARSE 1) +endif () +unset (CMAKE_EXTRA_INCLUDE_FILES) + #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- diff --git a/config/cmake/H5pubconf.h.in b/config/cmake/H5pubconf.h.in index 6731d67..847c835 100644 --- a/config/cmake/H5pubconf.h.in +++ b/config/cmake/H5pubconf.h.in @@ -101,6 +101,9 @@ /* Define to 1 if you have the `clock_gettime' function. */ #cmakedefine H5_HAVE_CLOCK_GETTIME @H5_HAVE_CLOCK_GETTIME@ +/* Define to 1 if CLOCK_MONOTONIC_COARSE is available */ +#cmakedefine H5_HAVE_CLOCK_MONOTONIC_COARSE @H5_HAVE_CLOCK_MONOTONIC_COARSE@ + /* Define if the function stack tracing code is to be compiled in */ #cmakedefine H5_HAVE_CODESTACK @H5_HAVE_CODESTACK@ @@ -249,6 +252,12 @@ /* Define to 1 if you have the <pthread.h> header file. */ #cmakedefine H5_HAVE_PTHREAD_H @H5_HAVE_PTHREAD_H@ +/* Define to 1 if 'pthread_condattr_setclock()' is available */ +#cmakedefine H5_HAVE_PTHREAD_CONDATTR_SETCLOCK @H5_HAVE_PTHREAD_CONDATTR_SETCLOCK@ + +/* Define to 1 if PTHREAD_MUTEX_ADAPTIVE_NP is available */ +#cmakedefine H5_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP @H5_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP@ + /* Define to 1 if you have the <pwd.h> header file. */ #cmakedefine H5_HAVE_PWD_H @H5_HAVE_PWD_H@ |