diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-25 23:44:56 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-25 23:44:56 +0300 |
commit | a8fa0a6a37b6e90324e0dcbf4733324199623841 (patch) | |
tree | 1a7edec9aa04946afc22299bf587823488fb492f /auto/os/freebsd | |
parent | d9d0ca12688034d481e2f1f5cf13a098338ec31d (diff) |
nginx-0.0.1-2003-11-25-23:44:56 import
Diffstat (limited to 'auto/os/freebsd')
-rw-r--r-- | auto/os/freebsd | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/auto/os/freebsd b/auto/os/freebsd new file mode 100644 index 000000000..415fcba5a --- /dev/null +++ b/auto/os/freebsd @@ -0,0 +1,40 @@ + + +CORE_INCS="$UNIX_INCS" +CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS" +CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS $SELECT_SRCS $POLL_SRCS" +EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE $POLL_MODULE" + +MD5_LIB="-lmd" +ZLIB_LIB="-lz" + +version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \ + | sed -e 's/^.* \(.*\)$/\1/'` + + +# sendfile + +if [ $version -gt 300007 ]; then + CFLAGS="$CFLAGS -D HAVE_SENDFILE=1" + CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS" +fi + + +# kqueue + +if [ \( $version -lt 500000 -a $version -ge 410000 \) \ + -o $version -ge 500011 ] +then + CFLAGS="$CFLAGS -D HAVE_KQUEUE=1" + CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS" + EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE" +fi + + +# kqueue's NOTE_LAWAT + +if [ \( $version -lt 500000 -a $version -ge 430000 \) \ + -o $version -ge 500018 ] +then + CFLAGS="$CFLAGS -D HAVE_LOWAT_EVENT=1" +fi |