--- libaitsched/configure 2014/04/27 16:22:58 1.34.2.1 +++ libaitsched/configure 2014/06/05 22:37:28 1.35 @@ -694,6 +694,7 @@ ac_user_opts=' enable_option_checking enable_debug enable_aio +enable_epoll enable_kqueue with_kq_events ' @@ -1322,6 +1323,7 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug Build library with debug information and additional messages --enable-aio Build scheduler library with AIO operations + --enable-epoll Enable epoll support (only under Linux) --disable-kqueue Disable kqueue support Optional Packages: @@ -3377,7 +3379,7 @@ $as_echo "no" >&6; } fi if test "x$ac_ct_MKDEP" = x; then - MKDEP="no" + MKDEP="../mkdep" else case $cross_compiling:$ac_tool_warned in yes:) @@ -4025,7 +4027,7 @@ $as_echo "#define malloc rpl_malloc" >>confdefs.h fi -for ac_func in clock_gettime memset strerror timer_create timer_settime timer_delete +for ac_func in clock_gettime memset strerror timer_create timer_settime timer_delete strlcat strlcpy do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -4086,7 +4088,44 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5 $as_echo "$AIO" >&6; } -KQSUP=yes + +$as_echo "#define NO_SUPPORT 0" >>confdefs.h + + +$as_echo "#define KQ_SUPPORT 1" >>confdefs.h + + +$as_echo "#define EP_SUPPORT 2" >>confdefs.h + + + +$as_echo "#define SUP_ENABLE KQ_SUPPORT" >>confdefs.h + + +EPSUP=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5 +$as_echo_n "checking epoll support... " >&6; } +# Check whether --enable-epoll was given. +if test "${enable_epoll+set}" = set; then : + enableval=$enable_epoll; EPSUP=$enableval + case "$enableval" in + yes) + +$as_echo "#define SUP_ENABLE EP_SUPPORT" >>confdefs.h + + KQSUP=no + ;; + *) + KQSUP=yes + ;; + esac +else + KQSUP=yes +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPSUP" >&5 +$as_echo "$EPSUP" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking kqueue support" >&5 $as_echo_n "checking kqueue support... " >&6; } # Check whether --enable-kqueue was given. @@ -4095,7 +4134,7 @@ if test "${enable_kqueue+set}" = set; then : case "$enableval" in no) -$as_echo "#define KQ_DISABLE /**/" >>confdefs.h +$as_echo "#define SUP_ENABLE NO_SUPPORT" >>confdefs.h ;; *)