1 # timer_time.m4 serial 1
2 dnl Copyright (C) 2011 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Check for timer_settime, and set LIB_TIMER_TIME.
9 AC_DEFUN([gl_TIMER_TIME],
11 dnl Based on clock_time.m4. See details there.
13 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
16 AC_SUBST([LIB_TIMER_TIME])
18 AC_SEARCH_LIBS([timer_settime], [rt posix4],
19 [test "$ac_cv_search_timer_settime" = "none required" ||
20 LIB_TIMER_TIME=$ac_cv_search_timer_settime])
21 AC_CHECK_FUNCS([timer_settime])