trawick 01/01/12 10:21:22
Modified: . configure.in
Log:
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.
Revision Changes Path
1.211 +13 -1 apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -r1.210 -r1.211
--- configure.in 2001/01/12 17:56:58 1.210
+++ configure.in 2001/01/12 18:21:20 1.211
@@ -129,6 +129,18 @@
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 @@
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