X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/70221324f0971ccf4ac4017da5e34297b1e2af65..8039afaf2c8b0a9bb3359206719859b0da53ea7c:/configure.ac diff --git a/configure.ac b/configure.ac index c9107c5b..3c8cb375 100644 --- a/configure.ac +++ b/configure.ac @@ -224,6 +224,13 @@ AC_SUBST([limits]) dnl Functions used for noise-gathering. AC_CHECK_FUNCS([setgroups]) AC_CHECK_HEADERS([linux/random.h]) +mdw_ORIG_LIBS=$LIBS LIBS=$CATACOMB_LIBS +AC_SEARCH_LIBS([clock_gettime], [rt]) +CATACOMB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS +if test $ac_cv_search_clock_gettime != no; then + AC_DEFINE([HAVE_CLOCK_GETTIME], [1], + [Define if you have the \`clock_gettime' function.]) +fi AC_CHECK_FUNCS([getentropy]) AC_CACHE_CHECK([whether the freewheel noise generator will work], [catacomb_cv_freewheel],