From 3467f167b6b8bfc6d5ade96c1c724614f91c1b85 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 19 Feb 2015 22:30:45 +0000
Subject: Haiku patch


diff --git a/configure.ac b/configure.ac
index d402924..c18efa6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -190,7 +190,7 @@ AC_PROG_INSTALL
 
 AC_CHECK_HEADERS()
 
-THREAD_LIBS=-lpthread
+AC_CHECK_LIB(pthread,pthread_self,THREAD_LIBS=-lpthread)
 AC_SUBST(THREAD_LIBS)
 
 TARGET_SHIZZLE
-- 
1.8.3.4

