summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2013-04-08 13:14:35 +0400
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-09 20:34:35 +0200
commite2f2ee3582731fd52e5b93a0a82fdf6f4156bce2 (patch)
tree5d794c83eed0b1a048952ba3e46ff28a8f09872e
parente745a2bcf07eb7ecafcb92428b4d2907ff22b124 (diff)
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
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1063828f0a..34b7448b0e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"
+ ])
])
])