summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2002-05-29 08:00:49 +0000
committerseawood%netscape.com <devnull@localhost>2002-05-29 08:00:49 +0000
commit98ad752c3255b5210e10ce6956012937b8056181 (patch)
tree7ef562907eff3c3eb18cbba77def94bb8ef8f642
parent8494ad0037cb3ae48e783083a5c371c23be4f369 (diff)
downloadnspr-hg-98ad752c3255b5210e10ce6956012937b8056181.tar.gz
Fix typo that was causing pthreads to be selected by default on OpenBSD even though we default to NSPR threads on that platform.
Bug #145560 r=wtc
-rwxr-xr-xconfigure4
-rw-r--r--configure.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index e9c9efa5..688170fb 100755
--- a/configure
+++ b/configure
@@ -5008,7 +5008,7 @@ if test "${with_pthreads+set}" = set; then
_PTHREAD_LDFLAGS=
fi
else
- if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USER_NSPR_THREADS"; then
+ if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
USE_PTHREADS=1
USE_USER_PTHREADS=
USE_NSPR_THREADS=
@@ -5311,7 +5311,7 @@ EOF
_PTHREAD_LDFLAGS=
USE_USER_PTHREADS=
;;
-*-netbsd*)
+*-netbsd*|*-openbsd*)
if test -n "$USE_NSPR_THREADS"; then
cat >> confdefs.h <<\EOF
#define _PR_LOCAL_THREADS_ONLY 1
diff --git a/configure.in b/configure.in
index 3b7848ca..d4c8fb0c 100644
--- a/configure.in
+++ b/configure.in
@@ -1932,7 +1932,7 @@ AC_ARG_WITH(pthreads,
USE_PTHREADS=
_PTHREAD_LDFLAGS=
fi],
- [ if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USER_NSPR_THREADS"; then
+ [ if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
USE_PTHREADS=1
USE_USER_PTHREADS=
USE_NSPR_THREADS=
@@ -2155,7 +2155,7 @@ case "$target" in
_PTHREAD_LDFLAGS=
USE_USER_PTHREADS=
;;
-*-netbsd*)
+*-netbsd*|*-openbsd*)
if test -n "$USE_NSPR_THREADS"; then
AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
fi