Index: ubuntu/libraries/unix/configure
===================================================================
--- ubuntu.orig/libraries/unix/configure	2011-01-13 10:50:13.070628226 +0000
+++ ubuntu/libraries/unix/configure	2011-01-13 10:50:17.640983887 +0000
@@ -6654,6 +6654,9 @@
 	PTHREAD_CFLAGS=-pthread
 	PTHREAD_LDFLAGS=-pthread
 	;;
+linux*)
+	PTHREAD_LIBS=pthread
+	;;
 esac
 
 
Index: ubuntu/libraries/unix/configure.ac
===================================================================
--- ubuntu.orig/libraries/unix/configure.ac	2011-01-13 10:50:13.050626651 +0000
+++ ubuntu/libraries/unix/configure.ac	2011-01-13 10:50:17.640983887 +0000
@@ -215,6 +215,9 @@
 	PTHREAD_CFLAGS=-pthread
 	PTHREAD_LDFLAGS=-pthread
 	;;
+linux*)
+	PTHREAD_LIBS=pthread
+	;;
 esac
 AC_SUBST(PTHREAD_CFLAGS)
 AC_SUBST(PTHREAD_LDFLAGS)
