mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> (maintainer) Tested by: kuriyama (on 4-stable and 5-current)
27 lines
804 B
Text
27 lines
804 B
Text
--- 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_ADDTO(CPPFLAGS, [-DNETBSD])
|
|
;;
|
|
*-freebsd*)
|
|
- case $host in
|
|
- *freebsd[2345]*)
|
|
- APR_ADDTO(CFLAGS, [-funsigned-char])
|
|
- ;;
|
|
- esac
|
|
- APR_SETIFNULL(enable_threads, [no])
|
|
+ os_version=`sysctl -n kern.osreldate`
|
|
+ APR_ADDTO(CFLAGS, [-funsigned-char])
|
|
APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
|
|
- 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_cflags="none"
|
|
+ ac_cv_pthreads_lib="c_r"
|
|
+ fi
|
|
;;
|
|
*-next-nextstep*)
|
|
APR_SETIFNULL(CFLAGS, [-O])
|