aboutsummaryrefslogtreecommitdiff
path: root/devel/apr2/files
diff options
context:
space:
mode:
authorLev A. Serebryakov <lev@FreeBSD.org>2004-01-31 10:04:40 +0000
committerLev A. Serebryakov <lev@FreeBSD.org>2004-01-31 10:04:40 +0000
commitb2931451eb3c09c64f2da6da5a66ce7a51486517 (patch)
tree5d9351bae08c8f1f85936e2c63c756a783962f5a /devel/apr2/files
parent3bb2f85aee24af56f13728984801f73d86230b81 (diff)
downloadports-b2931451eb3c09c64f2da6da5a66ce7a51486517.tar.gz
ports-b2931451eb3c09c64f2da6da5a66ce7a51486517.zip
Notes
Diffstat (limited to 'devel/apr2/files')
-rw-r--r--devel/apr2/files/patch-apr_hints.m414
-rw-r--r--devel/apr2/files/patch-apr_threads.m412
2 files changed, 16 insertions, 10 deletions
diff --git a/devel/apr2/files/patch-apr_hints.m4 b/devel/apr2/files/patch-apr_hints.m4
index 0421617617bb..dacf60b85454 100644
--- a/devel/apr2/files/patch-apr_hints.m4
+++ b/devel/apr2/files/patch-apr_hints.m4
@@ -1,6 +1,6 @@
---- apr-0.9.4/build/apr_hints.m4.orig Tue Dec 23 08:26:10 2003
-+++ apr-0.9.4/build/apr_hints.m4 Fri Jan 23 12:23:36 2004
-@@ -129,14 +129,17 @@
+--- apr-0.9.4/build/apr_hints.m4.orig Mon Dec 22 18:26:10 2003
++++ apr-0.9.4/build/apr_hints.m4 Fri Jan 30 22:53:49 2004
+@@ -129,14 +129,19 @@
APR_ADDTO(CPPFLAGS, [-DNETBSD])
;;
*-freebsd*)
@@ -16,11 +16,13 @@
- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
+ if test $os_version -lt "500016"; then
+ ac_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT"
-+ ac_cv_pthreads_lib="none"
-+ LIBS="$LIBS -pthread"
-+ else
++ ac_cv_pthreads_lib="-pthread"
++ elif test $os_version -lt "502102"; then
+ ac_cv_pthreads_cflags="none"
+ ac_cv_pthreads_lib="c_r"
++ else
++ ac_cv_pthreads_cflags="none"
++ ac_cv_pthreads_lib="pthread"
+ fi
;;
*-next-nextstep*)
diff --git a/devel/apr2/files/patch-apr_threads.m4 b/devel/apr2/files/patch-apr_threads.m4
index bda6cbb72f4e..23e679ddc031 100644
--- a/devel/apr2/files/patch-apr_threads.m4
+++ b/devel/apr2/files/patch-apr_threads.m4
@@ -1,5 +1,5 @@
---- apr-0.9.4/build/apr_threads.m4.orig Sun Nov 16 08:42:33 2003
-+++ apr-0.9.4/build/apr_threads.m4 Fri Jan 23 12:25:00 2004
+--- apr-0.9.4/build/apr_threads.m4.orig Sun Nov 16 02:42:33 2003
++++ apr-0.9.4/build/apr_threads.m4 Wed Jan 28 17:52:33 2004
@@ -110,6 +110,7 @@
AC_CACHE_CHECK([for CFLAGS needed for pthreads], [apr_cv_pthreads_cflags],
@@ -28,12 +28,16 @@
for lib in -lpthread -lpthreads -lc_r; do
LIBS="$apr_ptc_libs $lib"
APR_PTHREADS_TRY_RUN([
-@@ -143,6 +150,9 @@
+@@ -143,6 +150,13 @@
break
])
done
+ else
-+ test "x$ac_cv_pthreads_lib" != "xnone" && apr_cv_pthreads_lib="-l$ac_cv_pthreads_lib"
++ case x$ac_cv_pthreads_lib in
++ x-*) apr_cv_pthreads_lib="$ac_cv_pthreads_lib" ;;
++ xnone|x) : ;;
++ *) apr_cv_pthreads_lib="-l$ac_cv_pthreads_lib"
++ esac
+ fi
LIBS=$apr_ptc_libs
])