Revision bd00d539

b/configure
1710 1710
#include <pthread.h>
1711 1711
int main(void) { pthread_create(0,0,0,0); return 0; }
1712 1712
EOF
1713
for pthread_lib in $PTHREADLIBS_LIST; do
1714
  if compile_prog "" "$pthread_lib" ; then
1715
    pthread=yes
1716
    LIBS="$pthread_lib $LIBS"
1717
    break
1718
  fi
1719
done
1713
if compile_prog "" "" ; then
1714
  pthread=yes
1715
else
1716
  for pthread_lib in $PTHREADLIBS_LIST; do
1717
    if compile_prog "" "$pthread_lib" ; then
1718
      pthread=yes
1719
      LIBS="$pthread_lib $LIBS"
1720
      break
1721
    fi
1722
  done
1723
fi
1720 1724

  
1721 1725
if test "$mingw32" != yes -a "$pthread" = no; then
1722 1726
  echo

Also available in: Unified diff