/[svn]/branches/newio/configure
ViewVC logotype

Diff of /branches/newio/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2382 by michael, Sat Jul 6 16:22:05 2013 UTC revision 2383 by michael, Sat Jul 6 17:05:28 2013 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # From configure.ac Id: configure.ac 2334 2013-06-23 17:32:44Z michael .  # From configure.ac Id: configure.ac 2347 2013-07-03 19:09:32Z michael .
3  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
4  # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.  # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5  #  #
# Line 648  DATADIR Line 648  DATADIR
648  LIBDIR  LIBDIR
649  SYSCONFDIR  SYSCONFDIR
650  PREFIX  PREFIX
651    ENGINE_EPOLL_FALSE
652    ENGINE_EPOLL_TRUE
653    ENGINE_KQUEUE_FALSE
654    ENGINE_KQUEUE_TRUE
655    ENGINE_DEVPOLL_FALSE
656    ENGINE_DEVPOLL_TRUE
657    ENGINE_POLL_FALSE
658    ENGINE_POLL_TRUE
659  ENABLE_SSL_FALSE  ENABLE_SSL_FALSE
660  ENABLE_SSL_TRUE  ENABLE_SSL_TRUE
661  LTDLOPEN  LTDLOPEN
# Line 807  with_ltdl_lib Line 815  with_ltdl_lib
815  enable_ltdl_install  enable_ltdl_install
816  enable_libgeoip  enable_libgeoip
817  enable_openssl  enable_openssl
818  enable_assert  enable_poll
819    enable_devpoll
820  enable_kqueue  enable_kqueue
821  enable_epoll  enable_epoll
822  enable_devpoll  enable_assert
 enable_poll  
 enable_select  
823  enable_halfops  enable_halfops
824  enable_debugging  enable_debugging
825  enable_warnings  enable_warnings
# Line 1464  Optional Features: Line 1471  Optional Features:
1471    --disable-libgeoip      Disable GeoIP support    --disable-libgeoip      Disable GeoIP support
1472    --enable-openssl=DIR       Enable OpenSSL support (DIR optional).    --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1473    --disable-openssl            Disable OpenSSL support.    --disable-openssl            Disable OpenSSL support.
1474      --disable-poll           Disable the poll-based engine
1475      --disable-devpoll        Disable the /dev/poll-based engine
1476      --disable-kqueue         Disable the kqueue-based engine
1477      --disable-epoll          Disable the epoll-based engine
1478    --enable-assert         Enable assert() statements    --enable-assert         Enable assert() statements
   --enable-kqueue         Force kqueue usage.  
   --enable-epoll          Force epoll usage.  
   --enable-devpoll        Force devpoll usage.  
   --enable-poll           Force poll usage.  
   --enable-select         Force select usage.  
1479    --enable-halfops        Enable halfops support.    --enable-halfops        Enable halfops support.
1480    --enable-debugging      Enable debugging.    --enable-debugging      Enable debugging.
1481    --enable-warnings       Enable compiler warnings.    --enable-warnings       Enable compiler warnings.
# Line 2561  as_fn_append ac_func_list " strtok_r" Line 2567  as_fn_append ac_func_list " strtok_r"
2567  as_fn_append ac_func_list " usleep"  as_fn_append ac_func_list " usleep"
2568  as_fn_append ac_func_list " strlcat"  as_fn_append ac_func_list " strlcat"
2569  as_fn_append ac_func_list " strlcpy"  as_fn_append ac_func_list " strlcpy"
2570    as_fn_append ac_func_list " kqueue"
2571    as_fn_append ac_func_list " poll"
2572  as_fn_append ac_header_list " crypt.h"  as_fn_append ac_header_list " crypt.h"
2573  as_fn_append ac_header_list " sys/resource.h"  as_fn_append ac_header_list " sys/resource.h"
2574  as_fn_append ac_header_list " sys/param.h"  as_fn_append ac_header_list " sys/param.h"
2575    as_fn_append ac_header_list " poll.h"
2576    as_fn_append ac_header_list " sys/devpoll.h"
2577    as_fn_append ac_header_list " sys/event.h"
2578    as_fn_append ac_header_list " sys/epoll.h"
2579  as_fn_append ac_header_list " types.h"  as_fn_append ac_header_list " types.h"
2580  as_fn_append ac_header_list " socket.h"  as_fn_append ac_header_list " socket.h"
2581  as_fn_append ac_header_list " sys/wait.h"  as_fn_append ac_header_list " sys/wait.h"
# Line 14212  done Line 14224  done
14224    
14225    
14226    
14227    
14228    
14229    
14230    
14231  # Checks for header files.  # Checks for header files.
14232    
14233    
# Line 14246  done Line 14262  done
14262    
14263    
14264    
14265    
14266    
14267    
14268    
14269    
14270    
14271    
14272    
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14274  $as_echo_n "checking for library containing crypt... " >&6; }  $as_echo_n "checking for library containing crypt... " >&6; }
14275  if ${ac_cv_search_crypt+:} false; then :  if ${ac_cv_search_crypt+:} false; then :
# Line 14570  fi Line 14594  fi
14594    
14595    
14596    
14597  # Check whether --enable-assert was given.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the poll() event engine" >&5
14598  if test "${enable_assert+set}" = set; then :  $as_echo_n "checking whether to enable the poll() event engine... " >&6; }
14599    enableval=$enable_assert; assert=$enableval  # Check whether --enable-poll was given.
14600    if test "${enable_poll+set}" = set; then :
14601      enableval=$enable_poll; hyb_cv_enable_poll=$enable_poll
14602  else  else
14603    assert=no    if ${hyb_cv_enable_poll+:} false; then :
14604      $as_echo_n "(cached) " >&6
14605    else
14606      hyb_cv_enable_poll=yes
14607  fi  fi
14608    
   
 if test "$assert" = "no"; then :  
   
 $as_echo "#define NDEBUG 1" >>confdefs.h  
   
14609  fi  fi
14610    
14611    
14612  $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h  if test "$ac_cv_func_poll" = no; then
14613        hyb_cv_enable_poll=no
14614    fi
 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h  
   
14615    
14616  $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_poll" >&5
14617    $as_echo "$hyb_cv_enable_poll" >&6; }
14618    
14619    if test "$hyb_cv_enable_poll" = yes; then
14620        ircd_event_engine="poll()"
14621    
14622  $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h  $as_echo "#define USE_POLL /**/" >>confdefs.h
14623    
14624    fi
14625  $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h   if test "$hyb_cv_enable_poll" = yes; then
14626      ENGINE_POLL_TRUE=
14627      ENGINE_POLL_FALSE='#'
14628    else
14629      ENGINE_POLL_TRUE='#'
14630      ENGINE_POLL_FALSE=
14631    fi
14632    
14633    
14634  $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the /dev/poll event engine" >&5
14635    $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
14636    # Check whether --enable-devpoll was given.
14637    if test "${enable_devpoll+set}" = set; then :
14638      enableval=$enable_devpoll; hyb_cv_enable_devpoll=$enable_devpoll
14639    else
14640      if ${hyb_cv_enable_devpoll+:} false; then :
14641      $as_echo_n "(cached) " >&6
14642    else
14643      hyb_cv_enable_devpoll=yes
14644    fi
14645    
14646    fi
14647    
 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h  
14648    
14649    if test "$ac_cv_header_sys_devpoll_h" = no; then
14650        hyb_cv_enable_devpoll=no
14651    fi
14652    
14653  $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_devpoll" >&5
14654    $as_echo "$hyb_cv_enable_devpoll" >&6; }
14655    
14656    if test "$hyb_cv_enable_devpoll" != no; then
14657        ircd_event_engine="/dev/poll/ $ircd_event_engine"
14658    
14659  $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h  $as_echo "#define USE_DEVPOLL /**/" >>confdefs.h
14660    
14661    fi
14662    
14663  $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h   if test "$hyb_cv_enable_devpoll" = yes; then
14664      ENGINE_DEVPOLL_TRUE=
14665      ENGINE_DEVPOLL_FALSE='#'
14666    else
14667      ENGINE_DEVPOLL_TRUE='#'
14668      ENGINE_DEVPOLL_FALSE=
14669    fi
14670    
14671    
 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h  
14672    
14673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the kqueue event engine" >&5
14674    $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
14675    # Check whether --enable-kqueue was given.
14676    if test "${enable_kqueue+set}" = set; then :
14677      enableval=$enable_kqueue; hyb_cv_enable_kqueue=$enable_kqueue
14678    else
14679      if ${hyb_cv_enable_kqueue+:} false; then :
14680      $as_echo_n "(cached) " >&6
14681    else
14682      hyb_cv_enable_kqueue=yes
14683    fi
14684    
14685  $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h  fi
14686    
14687    
14688  $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h  if test "$ac_cv_header_sys_event_h" = no -o "$ac_cv_func_kqueue" = no; then
14689        hyb_cv_enable_kqueue=no
14690    fi
14691    
14692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_kqueue" >&5
14693    $as_echo "$hyb_cv_enable_kqueue" >&6; }
14694    
14695  $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h  if test "$hyb_cv_enable_kqueue" != no; then
14696        ircd_event_engine="kqueue() $ircd_event_engine"
14697    
14698    $as_echo "#define USE_KQUEUE /**/" >>confdefs.h
14699    
14700  # Argument processing.  fi
14701    
14702      desired_iopoll_mechanism="none"   if test "$hyb_cv_enable_kqueue" = yes; then
14703      # Check whether --enable-kqueue was given.    ENGINE_KQUEUE_TRUE=
14704  if test "${enable_kqueue+set}" = set; then :    ENGINE_KQUEUE_FALSE='#'
14705    enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"  else
14706      ENGINE_KQUEUE_TRUE='#'
14707      ENGINE_KQUEUE_FALSE=
14708  fi  fi
14709    
14710    # Check whether --enable-epoll was given.  
14711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the epoll event engine" >&5
14712    $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
14713    # Check whether --enable-epoll was given.
14714  if test "${enable_epoll+set}" = set; then :  if test "${enable_epoll+set}" = set; then :
14715    enableval=$enable_epoll; desired_iopoll_mechanism="epoll"    enableval=$enable_epoll; hyb_cv_enable_epoll=$enable_epoll
14716    else
14717      if ${hyb_cv_enable_epoll+:} false; then :
14718      $as_echo_n "(cached) " >&6
14719    else
14720      hyb_cv_enable_epoll=yes
14721  fi  fi
14722    
   # Check whether --enable-devpoll was given.  
 if test "${enable_devpoll+set}" = set; then :  
   enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"  
14723  fi  fi
14724    
   # Check whether --enable-poll was given.  
 if test "${enable_poll+set}" = set; then :  
   enableval=$enable_poll; desired_iopoll_mechanism="poll"  
 fi  
14725    
14726    # Check whether --enable-select was given.  if test "$ac_cv_header_sys_epoll_h" = no -o "$ac_cv_func_epoll" = no; then
14727  if test "${enable_select+set}" = set; then :      hyb_cv_enable_epoll=no
   enableval=$enable_select; desired_iopoll_mechanism="select"  
14728  fi  fi
14729    
14730        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_epoll" >&5
14731  $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }  $as_echo "$hyb_cv_enable_epoll" >&6; }
   iopoll_mechanism_none=0  
14732    
14733  cat >>confdefs.h <<_ACEOF  # Set up the conditionals
14734  #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none  if test x"$hyb_cv_enable_epoll" = xyes; then
14735  _ACEOF      ircd_event_engine="epoll() $ircd_event_engine"
14736    
14737        iopoll_mechanism_kqueue=1  $as_echo "#define USE_EPOLL 1" >>confdefs.h
14738    
 cat >>confdefs.h <<_ACEOF  
 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue  
 _ACEOF  
14739    
14740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext      # Must also check to see if we need to provide the function bodies
14741        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epoll functions are properly defined" >&5
14742    $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
14743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744  /* end confdefs.h.  */  /* end confdefs.h.  */
14745  /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.  #include <sys/epoll.h>
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define kevent innocuous_kevent  
   
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char kevent (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef kevent  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char kevent ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined __stub_kevent || defined __stub___kevent  
 choke me  
 #endif  
   
14746  int  int
14747  main ()  main ()
14748  {  {
14749  return kevent ();  epoll_create(10);
14750    ;    ;
14751    return 0;    return 0;
14752  }  }
14753  _ACEOF  _ACEOF
14754  if ac_fn_c_try_link "$LINENO"; then :  if ac_fn_c_try_link "$LINENO"; then :
14755    is_kqueue_mechanism_available="yes"    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14756    $as_echo "yes" >&6; }
14757  else  else
14758    is_kqueue_mechanism_available="no"    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759    $as_echo "no" >&6; }
14760    
14761    $as_echo "#define EPOLL_NEED_BODY 1" >>confdefs.h
14762    
14763  fi  fi
14764  rm -f core conftest.err conftest.$ac_objext \  rm -f core conftest.err conftest.$ac_objext \
14765      conftest$ac_exeext conftest.$ac_ext      conftest$ac_exeext conftest.$ac_ext
14766        iopoll_mechanism_epoll=2  fi
   
 cat >>confdefs.h <<_ACEOF  
 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll  
 _ACEOF  
14767    
14768    if test "$cross_compiling" = yes; then :   if test "$hyb_cv_enable_epoll" = yes; then
14769    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5    ENGINE_EPOLL_TRUE=
14770  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}    ENGINE_EPOLL_FALSE='#'
 as_fn_error $? "cannot run test program while cross compiling  
 See \`config.log' for more details" "$LINENO" 5; }  
14771  else  else
14772    cat confdefs.h - <<_ACEOF >conftest.$ac_ext    ENGINE_EPOLL_TRUE='#'
14773  /* end confdefs.h.  */    ENGINE_EPOLL_FALSE=
14774    fi
14775    
 #include <sys/epoll.h>  
 #include <sys/syscall.h>  
 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)  
 #if !defined(__NR_epoll_create)  
 #if defined(__ia64__)  
 #define __NR_epoll_create 1243  
 #elif defined(__x86_64__)  
 #define __NR_epoll_create 214  
 #elif defined(__sparc64__) || defined(__sparc__)  
 #define __NR_epoll_create 193  
 #elif defined(__s390__) || defined(__m68k__)  
 #define __NR_epoll_create 249  
 #elif defined(__ppc64__) || defined(__ppc__)  
 #define __NR_epoll_create 236  
 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)  
 #define __NR_epoll_create 224  
 #elif defined(__alpha__)  
 #define __NR_epoll_create 407  
 #elif defined(__sh64__)  
 #define __NR_epoll_create 282  
 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)  
 #define __NR_epoll_create 254  
 #else  
 #error No system call numbers defined for epoll family.  
 #endif  
 #endif  
 _syscall1(int, epoll_create, int, size)  
 #endif  
14776    
14777  int  
14778  main ()  # Check whether --enable-assert was given.
14779  {  if test "${enable_assert+set}" = set; then :
14780   return epoll_create(256) == -1 ? 1 : 0    enableval=$enable_assert; assert=$enableval
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_run "$LINENO"; then :  
   is_epoll_mechanism_available="yes"  
14781  else  else
14782    is_epoll_mechanism_available="no"    assert=no
 fi  
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  
   conftest.$ac_objext conftest.beam conftest.$ac_ext  
14783  fi  fi
14784    
       iopoll_mechanism_devpoll=3  
14785    
14786  cat >>confdefs.h <<_ACEOF  if test "$assert" = "no"; then :
 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll  
 _ACEOF  
14787    
14788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext  $as_echo "#define NDEBUG 1" >>confdefs.h
 /* end confdefs.h.  */  
 #include <devpoll.h>  
 int  
 main ()  
 {  
14789    
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   is_devpoll_mechanism_available="yes"  
 else  
   is_devpoll_mechanism_available="no"  
14790  fi  fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
   if test "$is_devpoll_mechanism_available" = "yes" ; then  
14791    
 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h  
14792    
14793    fi  $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <sys/devpoll.h>  
 int  
 main ()  
 {  
14794    
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   is_devpoll_mechanism_available="yes"  
 else  
   is_devpoll_mechanism_available="no"  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
   if test "$is_devpoll_mechanism_available" = "yes" ; then  
14795    
14796  $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h  $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14797    
   fi  
       iopoll_mechanism_poll=4  
14798    
14799  cat >>confdefs.h <<_ACEOF  $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll  
 _ACEOF  
14800    
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 /* Define poll to an innocuous variant, in case <limits.h> declares poll.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define poll innocuous_poll  
14801    
14802  /* System header to define __stub macros and hopefully few prototypes,  $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
     which can conflict with char poll (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
14803    
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
14804    
14805  #undef poll  $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14806    
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char poll ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined __stub_poll || defined __stub___poll  
 choke me  
 #endif  
14807    
14808  int  $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
 main ()  
 {  
 return poll ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   is_poll_mechanism_available="yes"  
 else  
   is_poll_mechanism_available="no"  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
       iopoll_mechanism_select=5  
14809    
 cat >>confdefs.h <<_ACEOF  
 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select  
 _ACEOF  
14810    
14811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext  $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
 /* end confdefs.h.  */  
 /* Define select to an innocuous variant, in case <limits.h> declares select.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define select innocuous_select  
14812    
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char select (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
14813    
14814  #ifdef __STDC__  $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
14815    
 #undef select  
14816    
14817  /* Override any GCC internal prototype to avoid an error.  $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char select ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined __stub_select || defined __stub___select  
 choke me  
 #endif  
14818    
 int  
 main ()  
 {  
 return select ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   is_select_mechanism_available="yes"  
 else  
   is_select_mechanism_available="no"  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
       optimal_iopoll_mechanism="none"  
   for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important  
     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"  
     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then  
       optimal_iopoll_mechanism="$mechanism"  
       break  
     fi  
   done  
       if test "$desired_iopoll_mechanism" = "none" ; then  
     if test "$optimal_iopoll_mechanism" = "none" ; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5  
 $as_echo "none" >&6; }  
       as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5  
     else  
       selected_iopoll_mechanism=$optimal_iopoll_mechanism  
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5  
 $as_echo "$selected_iopoll_mechanism" >&6; }  
     fi  
   else  
     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"  
     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then  
       selected_iopoll_mechanism=$desired_iopoll_mechanism  
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5  
 $as_echo "$selected_iopoll_mechanism" >&6; }  
     else  
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5  
 $as_echo "none" >&6; }  
       as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5  
     fi  
   fi  
       eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"  
14819    
14820  cat >>confdefs.h <<_ACEOF  $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14821  #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism  
 _ACEOF  
14822    
14823    $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14824    
14825    
14826    $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14827    
14828    
14829    $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14830    
14831    
14832    $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14833    
14834    
14835    # Argument processing.
14836    
14837    # Check whether --enable-halfops was given.    # Check whether --enable-halfops was given.
14838  if test "${enable_halfops+set}" = set; then :  if test "${enable_halfops+set}" = set; then :
14839    enableval=$enable_halfops; halfops="$enableval"    enableval=$enable_halfops; halfops="$enableval"
# Line 15268  if test -z "${ENABLE_SSL_TRUE}" && test Line 15128  if test -z "${ENABLE_SSL_TRUE}" && test
15128    as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.    as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15129  Usually this means the macro was only invoked conditionally." "$LINENO" 5  Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130  fi  fi
15131    if test -z "${ENGINE_POLL_TRUE}" && test -z "${ENGINE_POLL_FALSE}"; then
15132      as_fn_error $? "conditional \"ENGINE_POLL\" was never defined.
15133    Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134    fi
15135    if test -z "${ENGINE_DEVPOLL_TRUE}" && test -z "${ENGINE_DEVPOLL_FALSE}"; then
15136      as_fn_error $? "conditional \"ENGINE_DEVPOLL\" was never defined.
15137    Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138    fi
15139    if test -z "${ENGINE_KQUEUE_TRUE}" && test -z "${ENGINE_KQUEUE_FALSE}"; then
15140      as_fn_error $? "conditional \"ENGINE_KQUEUE\" was never defined.
15141    Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142    fi
15143    if test -z "${ENGINE_EPOLL_TRUE}" && test -z "${ENGINE_EPOLL_FALSE}"; then
15144      as_fn_error $? "conditional \"ENGINE_EPOLL\" was never defined.
15145    Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146    fi
15147    
15148  : "${CONFIG_STATUS=./config.status}"  : "${CONFIG_STATUS=./config.status}"
15149  ac_write_fail=0  ac_write_fail=0

Legend:
Removed from v.2382  
changed lines
  Added in v.2383

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28