diff -u a/configure b/configure --- a/configure 2007-08-30 16:14:00 +0100 +++ b/configure 2007-08-30 16:15:50 +0100 @@ -39501,7 +39501,7 @@ # building shared libraries with linux. # case $host in - *-*-linux*) + *-*-freebsd*|*-*-linux*) G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`" ;; *) diff -u a/configure.in b/configure.in --- a/configure.in 2007-07-16 19:57:18 +0100 +++ b/configure.in 2007-08-30 16:15:09 +0100 @@ -1949,9 +1949,10 @@ # # a) GCC < 3.3 for Linux doesn't include -lpthread when # building shared libraries with linux. +# b) FreeBSD doesn't do this either. # case $host in - *-*-linux*) + *-*-freebsd*|*-*-linux*) G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`" ;; *)