summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2004-02-04 01:31:33 +0000
committerwchang0222%aol.com <devnull@localhost>2004-02-04 01:31:33 +0000
commit07f5228964067f757abd058eb9276464fdc5b366 (patch)
tree2ab09e4b3b3d6407962eb41e9a8c4042a90d1bc4 /configure.in
parent1206cb2d4a5e52a38eb5240b30da7dfea47ffe90 (diff)
downloadnspr-hg-07f5228964067f757abd058eb9276464fdc5b366.tar.gz
Bugzilla bug 232120: added support for NetBSD's pthread library. The
patch is contributed by Shin'ichiro TAYA <taya@netbsd.org>. r=wtc. Modified Files: configure configure.in ptio.c Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index bcb47e8e..02353b10 100644
--- a/configure.in
+++ b/configure.in
@@ -2190,7 +2190,12 @@ if test -n "$USE_PTHREADS"; then
_PTHREAD_LDFLAGS="-lc_r"
fi
;;
- *-openbsd*|*-bsdi*|*-netbsd*)
+ *-netbsd*)
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+ _PTHREAD_LDFLAGS="-pthread"
+ fi
+ ;;
+ *-openbsd*|*-bsdi*)
AC_DEFINE(_THREAD_SAFE)
dnl -pthread links in -lc_r, so don't specify it explicitly.
if test "$ac_cv_have_dash_pthread" = "yes"; then