]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit 'ec903058447ad5be34d89533962e9ae1aa1c78f7'
authorClément Bœsch <u@pkh.me>
Mon, 20 Mar 2017 10:04:50 +0000 (11:04 +0100)
committerClément Bœsch <u@pkh.me>
Mon, 20 Mar 2017 10:04:50 +0000 (11:04 +0100)
* commit 'ec903058447ad5be34d89533962e9ae1aa1c78f7':
  configure: Simplify clock_gettime() test

nanosleep check also updated.

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
configure

diff --cc configure
index c6eba84423a689c035b1102d9200bbf2eafe1be3,7ad920f4be5b49615e05bf7d92fa0e71411fe2a1..4eb116b2bbfb550d74c2ea204417cd84d83922bd
+++ b/configure
@@@ -5578,9 -4471,10 +5578,10 @@@ check_func_headers malloc.h _aligned_ma
  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_lib2 time.h clock_gettime -lrt && LIBRT="-lrt"; }
 -
 +check_func  access
 +check_func_headers stdlib.h arc4random
- 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
  check_func  gethrtime
@@@ -5593,10 -4489,9 +5594,11 @@@ check_func  mkstem
  check_func  mmap
  check_func  mprotect
  # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
- check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
 -check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt; }
++check_func_headers time.h nanosleep ||
++    { check_lib2 time.h nanosleep -lrt && LIBRT="-lrt"; }
  check_func  sched_getaffinity
  check_func  setrlimit
 +check_struct "sys/stat.h" "struct stat" st_mtim.tv_nsec -D_BSD_SOURCE
  check_func  strerror_r
  check_func  sysconf
  check_func  sysctl