From: Руслан Ижбулатов Date: Mon, 8 Apr 2013 09:14:35 +0000 (+0400) Subject: configure: Also check for clock_gettime in libpthread X-Git-Tag: 1.1.1~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f2ee3582731fd52e5b93a0a82fdf6f4156bce2;p=platform%2Fupstream%2Fgstreamer.git 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" + ]) ]) ])