Changeset 453
- Timestamp:
- 11/08/06 11:46:25 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/configure.in (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r452 r453 1 2006-11-08 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * configure.in: Added a new --disable-epoll parameter. By default, 4 when it's cross compiling, it'll assume that epoll() works without 5 testing it (it cannot execute a test program to check it out), so 6 if your system doesn't support it, use the new --disable-epoll 7 flag. 8 9 * configure.in: A few changes to make it work in cross compiling 10 environments. 11 1 12 2006-11-03 A.D.F <adefacc@tin.it> 2 13 cherokee/trunk/configure.in
r447 r453 273 273 AC_CHECK_HEADER(sys/epoll.h, have_epoll_include=yes, have_epoll_include=no) 274 274 275 AC_ARG_ENABLE(epoll, AC_HELP_STRING([--disable-epoll],[Disable epoll() support]), 276 wants_epoll="$enableval", wants_epoll="yes") 277 275 278 have_epoll=no 276 if test "x$have_epoll_include" = "xyes" ; then279 if test "x$have_epoll_include" = "xyes" && test "x$wants_epoll" == "xyes"; then 277 280 AC_MSG_CHECKING(for epoll system call) 278 281 279 AC_ TRY_RUN([282 AC_RUN_IFELSE([ 280 283 #include <stdint.h> 281 284 #include <sys/param.h> … … 294 297 exit (epfd == -1 ? 1 : 0); 295 298 } 296 ], have_epoll=yes) 299 ], 300 have_epoll=yes, 301 have_epoll=no, 302 have_epoll=yes) 297 303 AC_MSG_RESULT($have_epoll) 298 304 fi … … 307 313 AC_MSG_CHECKING(for event ports support) 308 314 309 AC_ TRY_RUN([315 AC_RUN_IFELSE([ 310 316 #include <stdint.h> 311 317 #include <unistd.h> … … 317 323 exit (port < 0 ? 1 : 0); 318 324 } 319 ], have_port=yes) 325 ], 326 have_port=yes, 327 have_port=no, 328 have_port=cross) 320 329 AC_MSG_RESULT($have_port) 321 330 fi … … 623 632 # Is sendfile broken? 624 633 AC_MSG_CHECKING(if sendfile works) 625 AC_ TRY_RUN([#include <errno.h>634 AC_RUN_IFELSE([#include <errno.h> 626 635 int main() { 627 636 int o = 0; … … 631 640 AC_MSG_RESULT(yes), 632 641 [ AC_MSG_RESULT(no) 633 AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile]) ]) 642 AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile])], 643 AC_MSG_RESULT(cross, assuming: yes)) 634 644 635 645 # readdir_r()