summaryrefslogtreecommitdiff
path: root/net/kdenetwork2/patches/patch-ab
blob: 5c089859e2afc15cb80cbfd7e106b0f5dea27bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ab,v 1.4 2001/12/03 15:37:17 skrll Exp $

--- configure.orig	Wed Nov 14 14:39:38 2001
+++ configure	Mon Nov 26 12:56:30 2001
@@ -10832,13 +10832,13 @@
 
 fi
 
-echo "$as_me:10835: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
+echo "$as_me:10835: checking for pthread_create in -lPTL" >&5
+echo $ECHO_N "checking for pthread_create in -lPTL... $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="-lPTL  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 10843 "configure"
 #include "confdefs.h"
@@ -10882,7 +10882,7 @@
 echo "$as_me:10882: result: $ac_cv_lib_pthread_pthread_create" >&5
 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 if test $ac_cv_lib_pthread_pthread_create = yes; then
-  LIBPTHREAD="-lpthread"
+  LIBPTHREAD="-lPTL"
 fi
 
     # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
@@ -11086,6 +11086,11 @@
         freebsd*)
                 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
                 echo "Setting FreeBSD pthread compilation options"
+                ;;
+        netbsd*)
+                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
+		USE_THREADS="-I${BUILDLINK_DIR}/PTL/include"
+                echo "Setting NetBSD pthread compilation options"
                 ;;
         aix*)
                 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"