[FFmpeg-cvslog] configure: Simplify clock_gettime() test

Diego Biurrun git at videolan.org
Mon Mar 20 12:06:34 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Sep  5 13:13:50 2016 +0200| [ec903058447ad5be34d89533962e9ae1aa1c78f7] | committer: Diego Biurrun

configure: Simplify clock_gettime() test

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec903058447ad5be34d89533962e9ae1aa1c78f7
---

 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index ea2b131..7ad920f4 100755
--- a/configure
+++ b/configure
@@ -4472,7 +4472,8 @@ check_func  ${malloc_prefix}memalign            && enable memalign
 check_func  ${malloc_prefix}posix_memalign      && enable posix_memalign
 
 check_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" &&
-    check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
+    check_func_headers time.h clock_gettime ||
+        { check_lib2 time.h clock_gettime -lrt && LIBRT="-lrt"; }
 
 check_func  fcntl
 check_func  fork



More information about the ffmpeg-cvslog mailing list