You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ge...@apache.org on 2010/03/26 17:03:45 UTC

svn commit: r927943 - /incubator/trafficserver/traffic/trunk/configure.ac

Author: georgep
Date: Fri Mar 26 16:03:45 2010
New Revision: 927943

URL: http://svn.apache.org/viewvc?rev=927943&view=rev
Log:
TS-263: Allow disabling of eventfd() in favor of pipes.
Author: Jason Giedymin
Review: George P.

Modified:
    incubator/trafficserver/traffic/trunk/configure.ac

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=927943&r1=927942&r2=927943&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Fri Mar 26 16:03:45 2010
@@ -335,6 +335,18 @@ AC_ARG_WITH([profiler],
 )
 AC_MSG_RESULT([$with_sqlite3])
 
+#
+# use eventfd() or pipes
+# Found that ec2 is using an older kernel causing eventfd errors.
+# Disable eventfd when using ATS on EC2 Fedora.
+#
+AC_MSG_CHECKING([whether to enable eventfd()])
+AC_ARG_ENABLE([eventfd],
+  [AS_HELP_STRING([--disable-eventfd],[turn off eventfd and use pipes])],
+  [],
+  [enable_eventfd="yes"]
+)
+AC_MSG_RESULT([$enable_eventfd])
           
 #
 # Installation directories
@@ -673,7 +685,11 @@ if test "x${with_libdb}" = "xyes"; then
   fi
 fi
 
-AC_CHECK_FUNCS([clock_gettime kqueue epoll_ctl posix_memalign lrand48_r srand48_r eventfd port_create])
+AC_CHECK_FUNCS([clock_gettime kqueue epoll_ctl posix_memalign lrand48_r srand48_r port_create])
+
+AS_IF([test "x$enable_eventfd" = "xyes"],
+  [AC_CHECK_FUNCS([eventfd])]
+)
 
 
 AC_CHECK_LIB([pcre], [pcre_exec],