Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > fefa3a8d9b9b9b1516144df6351150ea > files > 1

mingw-gstreamer-0.10.36-7.mga5.src.rpm

From e2f2ee3582731fd52e5b93a0a82fdf6f4156bce2 Mon Sep 17 00:00:00 2001
From: Руслан Ижбулатов <lrn1986@gmail.com>
Date: Mon, 08 Apr 2013 09:14:35 +0000
Subject: 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
---
diff --git a/configure.ac b/configure.ac
index 1063828..34b7448 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"
+    ])
   ])
 ])
 
--
cgit v0.9.0.2-2-gbebe