mirror of
https://github.com/nginx/nginx.git
synced 2024-12-13 19:19:00 +08:00
c0edbcce58
*) 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; the bug had 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; the bug had 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.
106 lines
2.2 KiB
Plaintext
106 lines
2.2 KiB
Plaintext
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
cat << END >> $NGX_AUTO_HEADERS_H
|
|
|
|
#ifndef NGX_FREEBSD
|
|
#define NGX_FREEBSD 1
|
|
#endif
|
|
|
|
END
|
|
|
|
|
|
CORE_INCS="$UNIX_INCS"
|
|
CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS"
|
|
CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS"
|
|
|
|
ngx_spacer='
|
|
'
|
|
|
|
|
|
# __FreeBSD_version and sysctl kern.osreldate are the best ways
|
|
# to determine whether some capability exists and is safe to use.
|
|
# __FreeBSD_version is used for the testing of the build enviroment.
|
|
# sysctl kern.osreldate is used for the testing of the kernel capabilities.
|
|
|
|
version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \
|
|
| sed -e 's/^.* \(.*\)$/\1/'`
|
|
|
|
osreldate=`/sbin/sysctl -n kern.osreldate`
|
|
|
|
|
|
# setproctitle() in libutil
|
|
|
|
if [ \( $version -ge 500000 -a $version -lt 500012 \) \
|
|
-o $version -lt 410002 ]
|
|
then
|
|
echo " + setproctitle() in libutil"
|
|
|
|
CORE_LIBS="$CORE_LIBS -lutil"
|
|
fi
|
|
|
|
# sendfile
|
|
|
|
if [ $osreldate -gt 300007 ]; then
|
|
echo " + using sendfile()"
|
|
|
|
have=HAVE_SENDFILE . auto/have
|
|
CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS"
|
|
fi
|
|
|
|
|
|
# kqueue
|
|
|
|
if [ \( $osreldate -lt 500000 -a $osreldate -ge 410000 \) \
|
|
-o $osreldate -ge 500011 ]
|
|
then
|
|
echo " + using kqueue"
|
|
|
|
have=HAVE_KQUEUE . auto/have
|
|
have=HAVE_CLEAR_EVENT . auto/have
|
|
EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
|
|
CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
|
|
EVENT_FOUND=YES
|
|
fi
|
|
|
|
NGX_KQUEUE_CHECKED=YES
|
|
|
|
|
|
# kqueue's NOTE_LAWAT
|
|
|
|
if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
|
-o $version -ge 500018 ]
|
|
then
|
|
echo " + using kqueue's NOTE_LOWAT"
|
|
have=HAVE_LOWAT_EVENT . auto/have
|
|
fi
|
|
|
|
|
|
if [ $USE_THREADS = "rfork" ]; then
|
|
|
|
echo " + using rfork()"
|
|
|
|
# # kqueue's EVFILT_SIGNAL is safe
|
|
#
|
|
# if [ $version -gt 460101 ]; then
|
|
# echo " + kqueue's EVFILT_SIGNAL is safe"
|
|
# have=HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
|
# else
|
|
# echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this"
|
|
# echo "FreeBSD version, so --with-threads=rfork could not be used"
|
|
# echo
|
|
#
|
|
# exit 1
|
|
# fi
|
|
fi
|
|
|
|
|
|
if [ $EVENT_AIO = YES ]; then
|
|
have=HAVE_AIO . auto/have
|
|
EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
|
|
CORE_SRCS="$CORE_SRCS $AIO_SRCS"
|
|
else
|
|
have=HAVE_AIO . auto/nohave
|
|
fi
|