]>
Commit | Line | Data |
---|---|---|
4d61ade1 AS |
1 | dnl # |
2 | dnl # Check if librt is required for clock_gettime. | |
3 | dnl # clock_gettime is generally available in libc on modern systems. | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_CONFIG_USER_CLOCK_GETTIME], [ | |
6 | AC_CHECK_FUNC([clock_gettime], [], [ | |
7 | AC_CHECK_LIB([rt], [clock_gettime], [ | |
8 | AC_SUBST([LIBCLOCK_GETTIME], [-lrt])], [ | |
9 | AC_MSG_FAILURE([*** clock_gettime is missing in libc and librt]) | |
10 | ]) | |
11 | ]) | |
12 | ]) |