configure: Fix sem_timedwait probe
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 23 Apr 2017 14:10:20 +0000 (14:10 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 24 Apr 2017 22:38:07 +0000 (00:38 +0200)
It requires pthreads.

configure

index 967d7d9..c7d0363 100755 (executable)
--- a/configure
+++ b/configure
@@ -4693,7 +4693,7 @@ if ! disabled pthreads && ! enabled w32threads; then
 fi
 
 enabled pthreads &&
-    check_builtin sem_timedwait semaphore.h "sem_t *s; sem_init(s,0,0); sem_timedwait(s,0); sem_destroy(s)"
+    check_builtin sem_timedwait semaphore.h "sem_t *s; sem_init(s,0,0); sem_timedwait(s,0); sem_destroy(s)" $pthreads_extralibs
 
 disabled  zlib || check_lib  zlib  zlib.h      zlibVersion -lz
 disabled bzlib || check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2