$OpenBSD: patch-configure,v 1.2 2009/08/06 10:59:21 jasper Exp $

s/-lpthread/-pthread/

--- configure.orig	Mon May 25 02:15:39 2009
+++ configure	Tue Aug  4 17:43:36 2009
@@ -17197,7 +17197,7 @@ else
         ODE_PRECISION=-DdSINGLE
 fi
 
-CPPFLAGS+=" $ODE_PRECISION"
+CPPFLAGS="$CPPFLAGS $ODE_PRECISION"
 
 
 
@@ -19074,13 +19074,13 @@ else
 fi
 
 
-{ $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-$as_echo_n "checking for main in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for main in -pthread" >&5
+$as_echo_n "checking for main in -pthread... " >&6; }
 if test "${ac_cv_lib_pthread_main+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
@@ -19134,7 +19134,7 @@ fi
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
 $as_echo "$ac_cv_lib_pthread_main" >&6; }
 if test "x$ac_cv_lib_pthread_main" = x""yes; then
-  LIBS="$LIBS -lpthread"
+  LIBS="$LIBS -pthread"
 fi