comparison auto/os/freebsd @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents f0b350454894
children 74b1868dd3cd
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3
4
5 cat << END >> $NGX_AUTO_HEADERS_H
6
7 #ifndef NGX_FREEBSD
8 #define NGX_FREEBSD 1
9 #endif
10
11 END
3 12
4 13
5 CORE_INCS="$UNIX_INCS" 14 CORE_INCS="$UNIX_INCS"
6 CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS" 15 CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS"
7 CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS" 16 CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS"
8 17
9 PIPE="-pipe" 18 ngx_spacer='
19 '
10 20
11 21
12 # __FreeBSD_version is the best way to determine whether 22 # __FreeBSD_version and sysctl kern.osreldate are the best ways
13 # some capability exists and is safe to use 23 # to determine whether some capability exists and is safe to use.
24 # __FreeBSD_version is used for the testing of the build enviroment.
25 # sysctl kern.osreldate is used for the testing of the kernel capabilities.
14 26
15 version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \ 27 version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \
16 | sed -e 's/^.* \(.*\)$/\1/'` 28 | sed -e 's/^.* \(.*\)$/\1/'`
29
30 osreldate=`/sbin/sysctl -n kern.osreldate`
17 31
18 32
19 # setproctitle() in libutil 33 # setproctitle() in libutil
20 34
21 if [ \( $version -ge 500000 -a $version -lt 500012 \) \ 35 if [ \( $version -ge 500000 -a $version -lt 500012 \) \
26 CORE_LIBS="$CORE_LIBS -lutil" 40 CORE_LIBS="$CORE_LIBS -lutil"
27 fi 41 fi
28 42
29 # sendfile 43 # sendfile
30 44
31 if [ $version -gt 300007 ]; then 45 if [ $osreldate -gt 300007 ]; then
32 echo " + using sendfile()" 46 echo " + using sendfile()"
33 47
34 have=HAVE_SENDFILE . auto/have 48 have=HAVE_SENDFILE . auto/have
35 CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS" 49 CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS"
36 fi 50 fi
37 51
38 52
39 # kqueue 53 # kqueue
40 54
41 if [ \( $version -lt 500000 -a $version -ge 410000 \) \ 55 if [ \( $osreldate -lt 500000 -a $osreldate -ge 410000 \) \
42 -o $version -ge 500011 ] 56 -o $osreldate -ge 500011 ]
43 then 57 then
44 echo " + using kqueue" 58 echo " + using kqueue"
45 59
46 have=HAVE_KQUEUE . auto/have 60 have=HAVE_KQUEUE . auto/have
47 have=HAVE_CLEAR_EVENT . auto/have 61 have=HAVE_CLEAR_EVENT . auto/have
48 EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE" 62 EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
49 CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS" 63 CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
50 EVENT_FOUND=YES 64 EVENT_FOUND=YES
51 fi 65 fi
66
67 NGX_KQUEUE_CHECKED=YES
52 68
53 69
54 # kqueue's NOTE_LAWAT 70 # kqueue's NOTE_LAWAT
55 71
56 if [ \( $version -lt 500000 -a $version -ge 430000 \) \ 72 if [ \( $version -lt 500000 -a $version -ge 430000 \) \