From 311f61e1b4d508eb31c4c82c3dcd8137da4111d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 30 Dec 2013 00:47:12 +0100 Subject: [PATCH] configure: check that pthreads is compatible with compiler. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In particular the mutex initialization for example won't actually compile with e.g. gcc 2.95. Signed-off-by: Reimar Döffinger --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 2604ae7bb4..de2d87a4ee 100755 --- a/configure +++ b/configure @@ -4359,6 +4359,7 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then elif ! check_func pthread_join && ! check_func pthread_create; then disable pthreads fi + check_code cc "pthread.h" "static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER" || disable pthreads fi for thread in $THREADS_LIST; do