From 46164e629d5e7a88243f40855a2f8fcfa3c8a649 Mon Sep 17 00:00:00 2001
From: joerg <joerg>
Date: Tue, 10 Jan 2006 16:14:32 +0000
Subject: Use PTHREAD_* instead of -lpthread.

---
 textproc/scew/distinfo         |  3 ++-
 textproc/scew/patches/patch-aa | 30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 textproc/scew/patches/patch-aa

diff --git a/textproc/scew/distinfo b/textproc/scew/distinfo
index d6f2ae1f0d5..a2960f06ffe 100644
--- a/textproc/scew/distinfo
+++ b/textproc/scew/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 14:48:49 agc Exp $
+$NetBSD: distinfo,v 1.3 2006/01/10 16:14:32 joerg Exp $
 
 SHA1 (scew-0.3.1.tar.gz) = 7a6a437957bc7aefc840af322da180f84fd77520
 RMD160 (scew-0.3.1.tar.gz) = 3632cb3fb2d9867a7f79ab7b2cc9b380620fcbce
 Size (scew-0.3.1.tar.gz) = 106116 bytes
+SHA1 (patch-aa) = 089d4c52f4735c212ef27c8bfdfded1f7becb5de
diff --git a/textproc/scew/patches/patch-aa b/textproc/scew/patches/patch-aa
new file mode 100644
index 00000000000..139dfc64b4a
--- /dev/null
+++ b/textproc/scew/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1 2006/01/10 16:14:32 joerg Exp $
+
+--- configure.orig	2006-01-10 16:06:02.000000000 +0000
++++ configure
+@@ -4225,13 +4225,13 @@ fi
+ 
+ 
+ 
+-echo "$as_me:$LINENO: checking for pthread_key_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_key_create in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_key_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_key_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_key_create+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread  $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
+@@ -4284,7 +4284,7 @@ if test $ac_cv_lib_pthread_pthread_key_c
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+ 
+-  LIBS="-lpthread $LIBS"
++  LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ 
+ else
+   { { echo "$as_me:$LINENO: error: Unable to find pthread libray." >&5
-- 
cgit v1.2.3