diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-12 18:21:20 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-12 18:21:20 +0000 |
commit | 439975160893c06e9b77fb717a8c944656735fde (patch) | |
tree | bade5c6dce60d90536673832846ecb4e4eb2a196 | |
parent | 57ffc459739a8e2a63bb8624c2b1400d6df62a20 (diff) | |
download | libapr-439975160893c06e9b77fb717a8c944656735fde.tar.gz |
Fix FreeBSD version check used when deciding whether or not to disable
APR sendfile support, following David Reid's idea of a general purpose
version string which can be used for easy comparison.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61059 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 143d86c0c..04ae848b1 100644 --- a/configure.in +++ b/configure.in @@ -129,6 +129,18 @@ esac AC_SUBST(eolstr) +dnl For some platforms we need a version string which allows easy numeric +dnl comparisons. +case "$OS" in + *freebsd*) + # 3.4-RELEASE: 340 4.1.1-RELEASE: 411 + os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/' | sed -e 's/\(.\)\.\(.\)\-.*/\1\20/'` + ;; + *) + os_version=OS_VERSION_IS_NOT_SET + ;; +esac + dnl #----------------------------- Checking for Shared Memory Support echo $ac_n "${nl}Checking for Shared Memory Support...${nl}" @@ -593,7 +605,7 @@ dnl systems if we are also using threads. orig_sendfile=$sendfile case "$OS" in *freebsd*) - if test `uname -r | sed -e 's/\(.\)\.\(.\)\..*/\1\2/'` -le "41"; then + if test $os_version -le "410"; then if test "$threads" = "1"; then sendfile="0" fi |