summaryrefslogtreecommitdiff
path: root/net/bind9-current/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'net/bind9-current/patches/patch-af')
-rw-r--r--net/bind9-current/patches/patch-af43
1 files changed, 43 insertions, 0 deletions
diff --git a/net/bind9-current/patches/patch-af b/net/bind9-current/patches/patch-af
new file mode 100644
index 00000000000..d9e81f0814c
--- /dev/null
+++ b/net/bind9-current/patches/patch-af
@@ -0,0 +1,43 @@
+$NetBSD: patch-af,v 1.3 2004/05/15 21:00:58 itojun Exp $
+
+--- lib/bind/configure.in.orig 2004-03-15 10:02:44.000000000 +0900
++++ lib/bind/configure.in 2004-05-16 05:09:55.000000000 +0900
+@@ -367,7 +367,8 @@
+ [linking with PTL2 is highly experimental and not expected to work])
+ CC=ptlgcc
+ else
+- if test ! -d $LOCALBASE/pthreads
++ if test ! -d $LOCALBASE/pthreads \
++ -a ! -f /usr/include/pthread.h
+ then
+ AC_MSG_RESULT(none)
+ use_threads=false
+@@ -375,13 +376,21 @@
+
+ if $use_threads
+ then
+- AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
+- pkg="$LOCALBASE/pthreads"
+- lib1="-L$pkg/lib -Wl,-R$pkg/lib"
+- lib2="-lpthread -lm -lgcc -lpthread"
+- LIBS="$lib1 $lib2 $LIBS"
+- CPPFLAGS="$CPPFLAGS -I$pkg/include"
+- STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
++ if test -f /usr/include/pthread.h
++ then
++ AC_MSG_RESULT(native pthreads)
++ LIBS="-lpthread $LIBS"
++ CPPFLAGS="$CPPFLAGS -I/usr/include"
++ STD_CINCLUDES="$STD_CINCLUDES -I/usr/include"
++ else
++ AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
++ pkg="$LOCALBASE/pthreads"
++ lib1="-L$pkg/lib -Wl,-R$pkg/lib"
++ lib2="-lpthread -lm -lgcc -lpthread"
++ LIBS="$lib1 $lib2 $LIBS"
++ CPPFLAGS="$CPPFLAGS -I$pkg/include"
++ STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
++ fi
+ fi
+ fi
+ ;;