openbsd-ports/devel/libuta/patches/patch-configure
2010-05-22 16:11:34 +00:00

31 lines
1.0 KiB
Plaintext

$OpenBSD: patch-configure,v 1.5 2010/05/22 16:11:34 espie Exp $
--- configure.orig Tue Oct 15 04:17:59 2002
+++ configure Sat May 22 18:00:00 2010
@@ -4450,14 +4450,14 @@ fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
-echo "configure:4455: checking for pthread_create in -lc_r" >&5
+ echo $ac_n "checking for pthread_create in -pthread""... $ac_c" 1>&6
+echo "configure:4455: checking for pthread_create in -pthread" >&5
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lc_r $LIBS"
+LIBS="-pthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4463 "configure"
#include "confdefs.h"
@@ -4491,7 +4491,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye
#define $ac_tr_lib 1
EOF
- LIBS="-lc_r $LIBS"
+ LIBS="-pthread $LIBS"
else
echo "$ac_t""no" 1>&6