configure: Also check for clock_gettime in libpthread

libwinpthreads provides POSIX time API.
It also provides libpthread alias for itself, for compatibility, so that
is what we will link with.

Fixes #697550
This commit is contained in:
Руслан Ижбулатов 2013-04-08 13:14:35 +04:00 committed by Sebastian Dröge
parent e745a2bcf0
commit e2f2ee3582

View file

@ -458,6 +458,11 @@ AC_CHECK_FUNCS(clock_gettime, [], [
AC_CHECK_LIB(rt, clock_gettime, [
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
LIBS="$LIBS -lrt"
], [
AC_CHECK_LIB(pthread, clock_gettime, [
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
LIBS="$LIBS -lpthread"
])
])
])