update NEWS.stable
[gnulib.git] / m4 / timer_time.m4
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.
6
7 # Check for timer_settime, and set LIB_TIMER_TIME.
8
9 AC_DEFUN([gl_TIMER_TIME],
10 [
11   dnl Based on clock_time.m4. See details there.
12
13   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
14
15   LIB_TIMER_TIME=
16   AC_SUBST([LIB_TIMER_TIME])
17   gl_saved_libs=$LIBS
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])
22   LIBS=$gl_saved_libs
23 ])