144 |
AC_MSG_RESULT(no) |
AC_MSG_RESULT(no) |
145 |
) |
) |
146 |
|
|
147 |
|
use_sendfile=yes |
148 |
|
AC_ARG_ENABLE(sendfile, |
149 |
|
[ --disable-sendfile disable the use of the sendfile(2) system call], |
150 |
|
[ |
151 |
|
if test "$enableval" = "no" ; then |
152 |
|
use_sendfile=no |
153 |
|
AC_MSG_RESULT(no) |
154 |
|
else |
155 |
|
use_sendfile=yes |
156 |
|
AC_MSG_RESULT(yes) |
157 |
|
fi |
158 |
|
] |
159 |
|
) |
160 |
|
|
161 |
|
if test "$use_sendfile" = "yes"; then |
162 |
|
case $host_os in |
163 |
|
*linux*) |
164 |
|
AC_CHECK_HEADERS(sys/sendfile.h) |
165 |
|
AC_CHECK_FUNCS(sendfile) |
166 |
|
AC_DEFINE(HAVE_SENDFILE, 1, [whether to use sendfile]) |
167 |
|
AC_DEFINE(HAVE_LINUXSENDFILE, 1, [whether to use Linux' sendfile]) |
168 |
|
;; |
169 |
|
*freebsd*) |
170 |
|
AC_CHECK_HEADERS(sys/sendfile.h) |
171 |
|
AC_CHECK_FUNCS(sendfile) |
172 |
|
AC_DEFINE(HAVE_BSDSENDFILE, 1, [whether to use FreeBSD's sendfile]) |
173 |
|
AC_DEFINE(HAVE_SENDFILE, 1, [whether to use sendfile]) |
174 |
|
;; |
175 |
|
*) ;; |
176 |
|
esac |
177 |
|
fi |
178 |
|
|
179 |
use_ssl=yes |
use_ssl=yes |
180 |
|
|
181 |
AC_MSG_CHECKING(whether to include SSL and TLS support) |
AC_MSG_CHECKING(whether to include SSL and TLS support) |
338 |
AC_MSG_RESULT(no) |
AC_MSG_RESULT(no) |
339 |
]) |
]) |
340 |
|
|
|
use_sendfile=yes |
|
|
AC_ARG_ENABLE(sendfile, |
|
|
[ --disable-sendfile disable the use of the sendfile(2) system call], |
|
|
[ |
|
|
if test "$enableval" = "no" ; then |
|
|
use_sendfile=no |
|
|
AC_MSG_RESULT(no) |
|
|
else |
|
|
use_sendfile=yes |
|
|
AC_MSG_RESULT(yes) |
|
|
fi |
|
|
]) |
|
|
|
|
|
if test "$use_sendfile" = "yes"; then |
|
|
case $host_os in |
|
|
*linux*) |
|
|
AC_CHECK_HEADERS(sys/sendfile.h) |
|
|
AC_CHECK_FUNCS(sendfile) |
|
|
AC_DEFINE(HAVE_SENDFILE, 1, [whether to use sendfile]) |
|
|
AC_DEFINE(HAVE_LINUXSENDFILE, 1, [whether to use Linux' sendfile]) |
|
|
;; |
|
|
*freebsd*) |
|
|
AC_CHECK_HEADERS(sys/sendfile.h) |
|
|
AC_CHECK_FUNCS(sendfile) |
|
|
AC_DEFINE(HAVE_BSDSENDFILE, 1, [whether to use FreeBSD's sendfile]) |
|
|
AC_DEFINE(HAVE_SENDFILE, 1, [whether to use sendfile]) |
|
|
;; |
|
|
esac |
|
341 |
|
|
342 |
POLL_OR_SELECT |
POLL_OR_SELECT |
343 |
|
|
344 |
if test "$BOA_ASYNC_IO" = "poll"; then |
if test "$BOA_ASYNC_IO" = "poll"; then |
345 |
AC_DEFINE( USE_POLL, 1, [whether to use poll]) |
AC_DEFINE( USE_POLL, 1, [whether to use poll]) |
346 |
fi |
fi |
|
AC_SUBST(ASYNCIO_SOURCE) |
|
347 |
|
|
348 |
# there are three scenarios |
# there are three scenarios |
349 |
# GNU make is installed as "make" |
# GNU make is installed as "make" |