--- mysql-4.1.8/configure.in 2004-12-14 13:40:38.000000000 +0100 +++ bbb/configure.in 2005-01-09 17:57:57.451559352 +0100 @@ -1269,7 +1269,10 @@ then # Look for LinuxThreads. AC_MSG_CHECKING("LinuxThreads") - res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l` + # res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l` + # All gentoo systems support this stuff, and this is an improper detection + # for LinuxThreads anyhow, always set the result to 1 + res=1 if test "$res" -gt 0 then AC_MSG_RESULT("Found")