$OpenBSD: patch-configure,v 1.3 2009/03/31 13:59:22 pirofti Exp $ --- configure.orig Mon Mar 23 13:03:27 2009 +++ configure Mon Mar 23 13:04:45 2009 @@ -3455,13 +3455,13 @@ fi # Checks for libraries. -{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 -$as_echo_n "checking for pthread_create in -lpthread... " >&6; } +{ $as_echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5 +$as_echo_n "checking for pthread_create in -pthread... " >&6; } if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -3525,7 +3525,7 @@ if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; #define HAVE_LIBPTHREAD 1 _ACEOF - LIBS="-lpthread $LIBS" + LIBS="-pthread $LIBS" fi