Branch: Tag:

2004-04-03

2004-04-03 19:46:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now defaults to using /dev/epoll if it exists.
--with-epoll is obsoleted. Use --without-devpoll instead.
Solaris 7/x86 support for /dev/poll seems to work now.

Rev: src/configure.in:1.825

1: - AC_REVISION("$Id: configure.in,v 1.824 2004/03/21 17:33:57 nilsson Exp $") + AC_REVISION("$Id: configure.in,v 1.825 2004/04/03 19:46:46 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
1383:    [AC_DEFINE_UNQUOTED(PIKE_THREAD_C_STACK_SIZE,($withval))],    [AC_DEFINE(PIKE_THREAD_C_STACK_SIZE,(256 * 1024))])    - AC_ARG_WITH(epoll, MY_DESCR([--with-epoll], -  [enable support for /dev/epoll (EXPERIMENTAL)])) +    AC_ARG_WITH(devpoll, MY_DESCR([--without-devpoll],    [disable support for /dev/poll]),    [],[with_devpoll=yes])
1531:    AC_DEFINE(HAVE_AND_USE_POLL)   else :; fi    - if test "x$with_epoll" = "xyes"; then -  PIKE_MSG_WARN([Enabling experimental support for /dev/epoll.]) -  AC_DEFINE(WITH_EPOLL) - else :; fi -  +    if test "x$with_valgrind" = "xno"; then    VALGRIND=""    VALGRINDARGS=""
2552:    stddef.h mmx.h asm/mmx.h sys/termio.h sys/termios.h \    ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \    sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \ -  mach/mach_init.h sys/epoll.h syscall.h sys/syscall.h) +  mach/mach_init.h syscall.h sys/syscall.h)      # Make it possible to disable use of /dev/poll. - # It seems buggy on Solaris 7/x86. +    if test "x$with_devpoll" = "xno"; then :; else -  AC_CHECK_HEADERS(sys/devpoll.h) +  AC_CHECK_HEADERS(sys/devpoll.h sys/event.h sys/epoll.h)    -  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then +  if :; then :; else +  # The kqueue support isn't working yet. +  AC_CHECK_FUNCS(kqueue) +  fi +     AC_MSG_CHECKING(for poll device)    AC_CACHE_VAL(pike_cv_device_devpoll, [    pike_cv_poll_device="no" -  for device in /dev/poll; do +  for device in /dev/poll /dev/epoll; do    if test -w "$device"; then    pike_cv_poll_device="$device"    break
2575:    AC_DEFINE_UNQUOTED(PIKE_POLL_DEVICE, "$pike_cv_poll_device")    fi    fi - fi +       # some Linux systems have a broken resource.h that compiles anyway /Mirar   AC_MSG_CHECKING([for sys/resource.h])