mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
fix check for when libc already has clock_gettime / clock_getcpuclockid
* acinclude.m4 (gl_CLOCK_TIME): If both clock_gettime and clock_getcpuclockid are present without -lrt and -lposix4, don't add any libs to LIB_CLOCK_GETTIME. Thanks to taylanbarirli@gmail.com.
This commit is contained in:
parent
5f6ffd6652
commit
bc02028b52
1 changed files with 2 additions and 1 deletions
|
@ -614,7 +614,8 @@ AC_DEFUN([gl_CLOCK_TIME],
|
|||
AC_SEARCH_LIBS([clock_getcpuclockid], [rt posix4],
|
||||
[test "$ac_cv_search_clock_getcpuclockid" = "none required" \
|
||||
|| LIB_CLOCK_GETTIME=$ac_cv_search_clock_getcpuclockid],
|
||||
[LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
|
||||
[test "$ac_cv_search_clock_gettime" = "none required" \
|
||||
|| LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
|
||||
else
|
||||
LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
|
||||
fi])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue