summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-07-07 21:38:47 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-07-07 21:38:47 (GMT)
commit188c43b8ee78d830c22f30fb9adb802e46722fcd (patch)
tree70ff54aaf1b32ffe230484afa3b1c783dddf3aa6 /configure.ac
parentc5af29321baa77d1c5926bd1e0d16d01128de6b5 (diff)
parentd9105b2fcf04f36ea348bf9726a49c05cacc0b78 (diff)
downloadhdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.zip
hdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.tar.gz
hdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.tar.bz2
Merge pull request #2680 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit 'd9105b2fcf04f36ea348bf9726a49c05cacc0b78': Fixes Autotools builds on Solaris after monotonic timer changes
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d7e3cb5..e16cbba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1249,6 +1249,13 @@ case "$host_cpu-$host_vendor-$host_os" in
## VFD on Linux systems.
H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS"
;;
+
+ *solaris*)
+ ## Solaris also needs _POSIX_C_SOURCE set correctly to pick up
+ ## clock_gettime().
+ H5_CPPFLAGS="-D_POSIX_C_SOURCE=200112L $H5_CPPFLAGS"
+ H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS"
+ ;;
esac
## Need to add the AM_ and H5_ into CFLAGS/CPPFLAGS to make them visible