--- configure.orig	2014-09-28 09:31:41.079343419 +0200
+++ configure	2014-09-28 09:31:41.243342071 +0200
@@ -26730,9 +26728,12 @@
   *android*)
     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
     ;;
-  *-*-freebsd*|*-*-linux*)
+  *-*-linux*)
     G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
     ;;
+  *-*-freebsd*)
+    LDFLAGS="$LDFLAGS -pthread"
+    ;;    
   *)
     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
     ;;
