1--- libxml2-2.9.2/configure.ac 2015-01-21 10:40:13.706152933 +0100 2+++ libxml2-2.9.2/configure.ac.new 2015-01-21 10:39:36.014876563 +0100 3@@ -1049,12 +1049,17 @@ 4 dnl Use pthread by default in other cases 5 if test -z "$THREADS_W32"; then 6 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then 7+ LIBS_saved="$LIBS" 8 AC_CHECK_HEADER(pthread.h, 9- AC_CHECK_LIB(pthread, pthread_join,[ 10- THREAD_LIBS="-lpthread" 11+ AC_SEARCH_LIBS(pthread_join, pthread,[ 12+ THREAD_LIBS="$ac_cv_search_pthread_join" 13+ if test "$THREAD_LIBS" = "none required"; then 14+ THREAD_LIBS="" 15+ fi 16 AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)]) 17 AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there]) 18 WITH_THREADS="1"])) 19+ LIBS="$LIBS_saved" 20 fi 21 fi 22 23