|
From: <sv...@va...> - 2008-04-28 16:23:21
|
Author: bart Date: 2008-04-28 17:22:53 +0100 (Mon, 28 Apr 2008) New Revision: 7953 Log: Added configure test for CLOCK_MONOTONIC. Modified: trunk/configure.in Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2008-04-28 10:32:32 UTC (rev 7952) +++ trunk/configure.in 2008-04-28 16:22:53 UTC (rev 7953) @@ -560,6 +560,26 @@ fi +# Check for CLOCK_MONOTONIC + +AC_MSG_CHECKING([for CLOCK_MONOTONIC]) + +AC_TRY_COMPILE( +[ +#include <time.h> +], [ + struct timespec t; + clock_gettime(CLOCK_MONOTONIC, &t); + return 0; +], +[ +AC_MSG_RESULT([yes]) +AC_DEFINE([HAVE_CLOCK_MONOTONIC], 1, + [Define to 1 if you have the `CLOCK_MONOTONIC' constant.]) +], [ +AC_MSG_RESULT([no]) +]) + # Check whether pthread_mutex_t has a member called __m_kind. AC_MSG_CHECKING([for pthread_mutex_t::__m_kind]) |