dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.368 2005/01/06 10:44:39 serassio Exp $
+dnl $Id: configure.in,v 1.369 2005/02/07 22:17:54 serassio Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS)
AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.368 $)dnl
+AC_REVISION($Revision: 1.369 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
])
dnl Enable epoll()
-AM_CONDITIONAL(USE_EPOLL, false)
-AC_DEFINE(USE_EPOLL,0,[Use epoll type polling])
AC_ARG_ENABLE(epoll,
[ --enable-epoll Enable epoll() support.
--disable-epoll Disable epoll() support. ],
EPOLL_LIBS="-lepoll"
fi
AC_SUBST(EPOLL_LIBS)
- AM_CONDITIONAL(USE_EPOLL, true)
;;
no)
echo "Forcing epoll() to be disabled"
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.104 2005/02/06 13:19:39 serassio Exp $
+# $Id: Makefile.am,v 1.105 2005/02/07 22:17:55 serassio Exp $
#
# Uncomment and customize the following to suit your needs:
#
ARP_ACL_SOURCE =
endif
-EPOLL_ALL_SOURCE = comm_epoll.cc
-if USE_EPOLL
-EPOLL_SOURCE = $(EPOLL_ALL_SOURCE)
-else
-EPOLL_SOURCE =
-endif
-
AM_CFLAGS = @SQUID_CFLAGS@
AM_CXXFLAGS = @SQUID_CXXFLAGS@
dns.cc \
dnsserver.cc \
dns_internal.cc \
- $(EPOLL_ALL_SOURCE) \
htcp.cc \
htcp.h \
$(IDENT_ALL_SOURCE) \
comm.h \
comm_select.cc \
comm_poll.cc \
+ comm_epoll.cc \
comm_kqueue.cc \
CommRead.h \
ConfigOption.cc \
disk.cc \
$(DISKIO_SOURCE) \
$(DNSSOURCE) \
- $(EPOLL_SOURCE) \
enums.h \
errorpage.cc \
$(ESI_SOURCE) \
comm.h \
comm_select.cc \
comm_poll.cc \
+ comm_epoll.cc \
comm_kqueue.cc \
ConfigOption.cc \
defines.h \
/*
- * $Id: comm_epoll.cc,v 1.6 2004/12/21 18:06:33 hno Exp $
+ * $Id: comm_epoll.cc,v 1.7 2005/02/07 22:17:55 serassio Exp $
*
* DEBUG: section 5 Socket functions
*
#include "Store.h"
#include "fde.h"
+#ifdef USE_EPOLL
+
#define DEBUG_EPOLL 0
#include <sys/epoll.h>
max_poll_time = 100;
}
+#endif /* USE_EPOLL */