4 |
|
|
5 |
AC_INIT |
AC_INIT |
6 |
|
|
7 |
|
AC_CANONICAL_HOST |
8 |
|
|
9 |
SERVER_VERSION="0.0.8" |
SERVER_VERSION="0.0.8" |
10 |
AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra]) |
AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra]) |
11 |
AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server]) |
AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server]) |
306 |
AC_MSG_RESULT(no) |
AC_MSG_RESULT(no) |
307 |
]) |
]) |
308 |
|
|
309 |
|
case $host_os in |
310 |
|
*linux*) |
311 |
|
AC_MSG_CHECKING(whether to enable the use of the sendfile(2) system call) |
312 |
|
AC_ARG_ENABLE(sendfile, |
313 |
|
[ --disable-sendfile disable the use of the sendfile(2) system call], |
314 |
|
[ |
315 |
|
if test "$enableval" = "no" ; then |
316 |
|
AC_MSG_RESULT(no) |
317 |
|
else |
318 |
|
AC_MSG_RESULT(yes) |
319 |
|
AC_CHECK_HEADERS(sys/sendfile.h) |
320 |
|
AC_CHECK_FUNCS(sendfile) |
321 |
|
fi |
322 |
|
], |
323 |
|
[ |
324 |
|
AC_MSG_RESULT(yes) |
325 |
|
AC_CHECK_HEADERS(sys/sendfile.h) |
326 |
|
AC_CHECK_FUNCS(sendfile) |
327 |
|
]) |
328 |
|
;; |
329 |
|
*) ;; |
330 |
|
esac |
331 |
|
|
332 |
|
POLL_OR_SELECT |
333 |
|
|
334 |
|
if test "$BOA_ASYNC_IO" = "poll"; then |
335 |
|
AC_DEFINE( USE_POLL, 1, [whether to use poll]) |
336 |
|
fi |
337 |
|
AC_SUBST(ASYNCIO_SOURCE) |
338 |
|
|
339 |
|
# there are three scenarios |
340 |
|
# GNU make is installed as "make" |
341 |
|
# GNU make is installed as something else we detected |
342 |
|
# GNU make is not installed |
343 |
|
# Unfortunately, we can't deal with it one way or the other |
344 |
|
# Trying multiple AC_OUTPUT confuses autoconf, and using variables |
345 |
|
# *in* AC_OUTPUT is even worse. |
346 |
|
# *so*, make a default makefile that just forces make to call gmake |
347 |
|
# or whatever. |
348 |
|
|
349 |
AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile]) |
AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile]) |
350 |
|
|
351 |
AC_OUTPUT |
AC_OUTPUT |