pandora_clock_gettime.m4 603 B

123456789101112131415
  1. dnl Copyright (C) 2010 Monty Taylor
  2. dnl This file is free software; Monty Taylor
  3. dnl gives unlimited permission to copy and/or distribute it,
  4. dnl with or without modifications, as long as this notice is preserved.
  5. #--------------------------------------------------------------------
  6. # Check for clock_gettime
  7. #--------------------------------------------------------------------
  8. AC_DEFUN([PANDORA_CLOCK_GETTIME],[
  9. AC_SEARCH_LIBS([clock_gettime],[rt])
  10. AS_IF([test "x${ac_cv_search_clock_gettime}" != "xno"],[
  11. AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Have a working clock_gettime function])
  12. ])
  13. ])