From: Martin Ling Date: Sun, 23 Sep 2018 16:22:20 +0000 (+0100) Subject: configure: Check whether clock_gettime is available. X-Git-Tag: libserialport-0.1.2~84 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=46bdc20c26c595e958d33a72f5eb1c8055594a88;p=libserialport.git configure: Check whether clock_gettime is available. --- diff --git a/configure.ac b/configure.ac index 3e19f41..3baeaab 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,10 @@ AC_CHECK_TYPES([struct serial_struct],,, [[#include ]]) # Check for realpath(). AC_CHECK_FUNC([realpath], [AC_DEFINE(HAVE_REALPATH, 1, [realpath is available.])], []) +# Check for clock_gettime(). +AC_CHECK_FUNC([clock_gettime], + [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [clock_gettime is available.])], []) + AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [ sp_saved_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -Werror"