--- libaitsched/configure 2013/08/22 15:28:04 1.24 +++ libaitsched/configure 2017/09/07 14:03:47 1.41 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libaitsched 3.9. +# Generated by GNU Autoconf 2.69 for libaitsched 6.5. # # Report bugs to . # @@ -580,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libaitsched' PACKAGE_TARNAME='libaitsched' -PACKAGE_VERSION='3.9' -PACKAGE_STRING='libaitsched 3.9' +PACKAGE_VERSION='6.5' +PACKAGE_STRING='libaitsched 6.5' PACKAGE_BUGREPORT='misho@elwix.org' PACKAGE_URL='' @@ -694,6 +694,8 @@ ac_user_opts=' enable_option_checking enable_debug enable_aio +enable_epoll +enable_kqueue with_kq_events ' ac_precious_vars='build_alias @@ -1245,7 +1247,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libaitsched 3.9 to adapt to many kinds of systems. +\`configure' configures libaitsched 6.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1311,7 +1313,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libaitsched 3.9:";; + short | recursive ) echo "Configuration of libaitsched 6.5:";; esac cat <<\_ACEOF @@ -1321,6 +1323,8 @@ 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: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1403,7 +1407,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libaitsched configure 3.9 +libaitsched configure 6.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1826,7 +1830,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libaitsched $as_me 3.9, which was +It was created by libaitsched $as_me 6.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3375,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:) @@ -3391,8 +3395,8 @@ fi -CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" -LDFLAGS="-L/usr/local/lib ${LDFLAGS}" +CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +LDFLAGS="${LDFLAGS}" # Checks for libraries. @@ -4023,7 +4027,7 @@ $as_echo "#define malloc rpl_malloc" >>confdefs.h fi -for ac_func in clock_gettime memset strerror timer_create timer_settime +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" @@ -4084,6 +4088,63 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5 $as_echo "$AIO" >&6; } + +$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. +if test "${enable_kqueue+set}" = set; then : + enableval=$enable_kqueue; KQSUP=$enableval + case "$enableval" in + no) + +$as_echo "#define SUP_ENABLE NO_SUPPORT" >>confdefs.h + + ;; + *) + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KQSUP" >&5 +$as_echo "$KQSUP" >&6; } + KQ_EVENTS=24 { $as_echo "$as_me:${as_lineno-$LINENO}: checking How many kqueue events can scheduling at one time" >&5 $as_echo_n "checking How many kqueue events can scheduling at one time... " >&6; } @@ -4611,7 +4672,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libaitsched $as_me 3.9, which was +This file was extended by libaitsched $as_me 6.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4673,7 +4734,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libaitsched config.status 3.9 +libaitsched config.status 6.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\"