$OpenBSD: patch-configure,v 1.1.1.1 2002/03/18 14:31:20 couderc Exp $
--- configure.orig	Tue Jan 29 20:01:53 2002
+++ configure	Sat Mar 16 17:50:49 2002
@@ -2544,7 +2544,7 @@ done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 rm -f conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then
-  break 2
+  break
 fi
 
     done
@@ -2707,13 +2707,13 @@ if test "x$jpeg_ok" = "xno"; then
 echo "$as_me: WARNING: *** JPEG support will not be included ***" >&2;}
 fi
 
-echo "$as_me:2710: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
+echo "$as_me:2710: checking for pthread_create in -pthread" >&5
+echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
 if test "${ac_cv_lib_pthread_pthread_create+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
 #line 2718 "configure"
 #include "confdefs.h"
@@ -2761,7 +2761,7 @@ if test $ac_cv_lib_pthread_pthread_creat
 #define HAVE_LIBPTHREAD 1
 EOF
 
-  LIBS="-lpthread $LIBS"
+  LIBS="-pthread $LIBS"
 
 fi
 
