ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/configure (file contents):
Revision 4295 by michael, Sun Jul 20 10:38:21 2014 UTC vs.
Revision 4334 by michael, Sat Aug 2 15:53:31 2014 UTC

# Line 812 | Line 812 | enable_kqueue
812   enable_epoll
813   enable_devpoll
814   enable_poll
815 enable_select
815   enable_debugging
816   enable_warnings
817   '
# Line 1468 | Line 1467 | Optional Features:
1467    --enable-epoll          Force epoll usage.
1468    --enable-devpoll        Force devpoll usage.
1469    --enable-poll           Force poll usage.
1471  --enable-select         Force select usage.
1470    --enable-debugging      Enable debugging.
1471    --enable-warnings       Enable compiler warnings.
1472  
# Line 14219 | Line 14217 | if test "${enable_poll+set}" = set; then
14217    enableval=$enable_poll; desired_iopoll_mechanism="poll"
14218   fi
14219  
14222  # Check whether --enable-select was given.
14223 if test "${enable_select+set}" = set; then :
14224  enableval=$enable_select; desired_iopoll_mechanism="select"
14225 fi
14226
14220        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14221   $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14222    iopoll_mechanism_none=0
# Line 14451 | Line 14444 | else
14444   fi
14445   rm -f core conftest.err conftest.$ac_objext \
14446      conftest$ac_exeext conftest.$ac_ext
14454      iopoll_mechanism_select=5
14455
14456 cat >>confdefs.h <<_ACEOF
14457 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14458 _ACEOF
14459
14460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14462 /* Define select to an innocuous variant, in case <limits.h> declares select.
14463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14464 #define select innocuous_select
14465
14466 /* System header to define __stub macros and hopefully few prototypes,
14467    which can conflict with char select (); below.
14468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14469    <limits.h> exists even on freestanding compilers.  */
14470
14471 #ifdef __STDC__
14472 # include <limits.h>
14473 #else
14474 # include <assert.h>
14475 #endif
14476
14477 #undef select
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480   Use char because int might match the return type of a GCC
14481   builtin and then its argument prototype would still apply.  */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 char select ();
14486 /* The GNU C library defines this for functions which it implements
14487    to always fail with ENOSYS.  Some functions are actually named
14488    something starting with __ and the normal name is an alias.  */
14489 #if defined __stub_select || defined __stub___select
14490 choke me
14491 #endif
14492
14493 int
14494 main ()
14495 {
14496 return select ();
14497  ;
14498  return 0;
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"; then :
14502  is_select_mechanism_available="yes"
14503 else
14504  is_select_mechanism_available="no"
14505 fi
14506 rm -f core conftest.err conftest.$ac_objext \
14507    conftest$ac_exeext conftest.$ac_ext
14447        optimal_iopoll_mechanism="none"
14448 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14448 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14449      eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14450      if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14451        optimal_iopoll_mechanism="$mechanism"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines