Re: APR broken on FreeBSD 4?

2004-10-15 Thread Jun Kuriyama
At Fri, 15 Oct 2004 10:09:01 -0400,
Craig Rodrigues wrote:
 Joe Orton wrote:
 On Thu, Oct 14, 2004 at 07:14:40PM -0400, Craig Rodrigues wrote:
 
 checking for LIBS needed for pthreads... (cached) -lpthread
  adding -lpthread to LIBS
 checking for pthread.h... (cached) yes

Hmm, I cannot reproduce this on my 4-stable box.  Can someone try to
test with this patch and show me lines around this message?


--- apr-1.0.0/build/apr_hints.m4.orig   Fri Oct 15 23:57:00 2004
+++ apr-1.0.0/build/apr_hints.m4Fri Oct 15 23:58:07 2004
@@ -142,11 +142,14 @@
 else
 os_version=00
 fi
+   echo   os_version is $os_version
 # 502102 is when libc_r switched to libpthread (aka libkse).
 if test $os_version -ge 502102; then
+ echo use 1st choice.
   apr_cv_pthreads_cflags=none
   apr_cv_pthreads_lib=-lpthread
 else
+ echo use 2nd choice.
   APR_ADDTO(CPPFLAGS, [-D_THREAD_SAFE -D_REENTRANT])
   APR_SETIFNULL(enable_threads, [no])
 fi


-- 
Jun Kuriyama [EMAIL PROTECTED] // IMG SRC, Inc.
 [EMAIL PROTECTED] // FreeBSD Project


Re: FreeBSD version check for thread-safe sendfile

2001-01-13 Thread Jun Kuriyama
At 11 Jan 2001 16:12:02 -0500,
Jeff Trawick wrote:
 If there is 3.4.x, then perhaps it should be 340 for 3.4, 341 for
 3.4.1, etc.
 
 The version could be set to 
 
 uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/' | sed -e 
 's/\(.\)\.\(.\)\-.*/\1\20/'
 
 yielding 341 for 3.4.1-RELEASE and 340 for 3.4-RELEASE.
 
 Why limit the variable to FreeBSD?  We'll have (or already have)
 similar checks on other platforms.  Make the variable name more
 generic.

If version specific hack for FreeBSD is required, is it useful to use
sysctl kern.osreldate?

% sysctl kern.osreldate
kern.osreldate: 500015


# See http://www.FreeBSD.org/porters-handbook/porting-versions.html
# for detail of values


-- 
Jun Kuriyama [EMAIL PROTECTED] // IMG SRC, Inc.
 [EMAIL PROTECTED] // FreeBSD Project