$OpenBSD: patch-configure,v 1.6 2010/08/22 16:56:34 sthen Exp $ --- configure.orig Fri Jul 23 04:37:42 2010 +++ configure Tue Aug 10 14:27:23 2010 @@ -8737,13 +8737,13 @@ fi if test ! -z "$HAVE_PTHREAD_H"; then -echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 -echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for pthread_mutex_lock in -pthread" >&5 +echo $ECHO_N "checking for pthread_mutex_lock in -pthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -8806,17 +8806,17 @@ if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; t #define HAVE_LIBPTHREAD 1 _ACEOF - LIBS="-lpthread $LIBS" + LIBS="-pthread $LIBS" fi - echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 -echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for pthread_mutex_lock in -pthread" >&5 +echo $ECHO_N "checking for pthread_mutex_lock in -pthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF