SHELL=${CONFIG_SHELL-/bin/sh}
-lt_ltdl_dir='extra/libltdl'
+lt_ltdl_dir='libltdl'
lt_dlopen_dir="$lt_ltdl_dir"
SSL_SRCS_ENABLE
MOD_TARGET
MODULES_LIBS
-SELECT_TYPE
PROGRAM_PREFIX
PKGRUNDIR
moduledir
ZLIB_LD
ENCSPEED
ALLOCA
-VICONF
CRYPT_LIB
PKGLIBEXECDIR
pkglibexecdir
with_zlib_path
enable_zlib
with_shared_sqlite
-enable_ports
-enable_poll
-enable_select
-enable_kqueue
-enable_epoll
with_confdir
with_logdir
with_helpdir
with_custom_branding
with_custom_version
enable_assert
-enable_iodebug
enable_profile
-enable_balloc
-enable_small_net
with_nicklen
with_topiclen
enable_warnings
SQLITE_CFLAGS
SQLITE_LIBS'
ac_subdirs_all='libratbox
-extra/libltdl
libltdl'
# Initialize some variables set by options.
--enable-openssl=DIR Enable OpenSSL support (DIR optional).
--disable-openssl Disable OpenSSL support.
--disable-zlib Disable ziplinks support
- --enable-ports Force solaris I/O ports subsystem usage.
- --enable-poll Force poll() usage.
- --enable-select Force select() usage.
- --enable-kqueue Force kqueue() usage.
- --enable-epoll Force sys_epoll usage (Linux only).
--enable-assert Enable assert(). Choose between soft(warnings) and
hard(aborts the daemon)
- --enable-iodebug Enable IO Debugging hooks
--enable-profile Enable profiling
- --disable-balloc Disable the block allocator.
- --enable-small-net Enable small network support.
--enable-warnings Enable all sorts of warnings for debugging.
Optional Packages:
ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
-$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
-if ${ac_cv_prog_cc_c99+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_prog_cc_c99=no
-ac_save_CC=$CC
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <wchar.h>
-#include <stdio.h>
-
-// Check varargs macros. These examples are taken from C99 6.10.3.5.
-#define debug(...) fprintf (stderr, __VA_ARGS__)
-#define showlist(...) puts (#__VA_ARGS__)
-#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
-static void
-test_varargs_macros (void)
-{
- int x = 1234;
- int y = 5678;
- debug ("Flag");
- debug ("X = %d\n", x);
- showlist (The first, second, and third items.);
- report (x>y, "x is %d but y is %d", x, y);
-}
-
-// Check long long types.
-#define BIG64 18446744073709551615ull
-#define BIG32 4294967295ul
-#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
-#if !BIG_OK
- your preprocessor is broken;
-#endif
-#if BIG_OK
-#else
- your preprocessor is broken;
-#endif
-static long long int bignum = -9223372036854775807LL;
-static unsigned long long int ubignum = BIG64;
-
-struct incomplete_array
-{
- int datasize;
- double data[];
-};
-
-struct named_init {
- int number;
- const wchar_t *name;
- double average;
-};
-
-typedef const char *ccp;
-
-static inline int
-test_restrict (ccp restrict text)
-{
- // See if C++-style comments work.
- // Iterate through items via the restricted pointer.
- // Also check for declarations in for loops.
- for (unsigned int i = 0; *(text+i) != '\0'; ++i)
- continue;
- return 0;
-}
-
-// Check varargs and va_copy.
-static void
-test_varargs (const char *format, ...)
-{
- va_list args;
- va_start (args, format);
- va_list args_copy;
- va_copy (args_copy, args);
-
- const char *str;
- int number;
- float fnumber;
-
- while (*format)
- {
- switch (*format++)
- {
- case 's': // string
- str = va_arg (args_copy, const char *);
- break;
- case 'd': // int
- number = va_arg (args_copy, int);
- break;
- case 'f': // float
- fnumber = va_arg (args_copy, double);
- break;
- default:
- break;
- }
- }
- va_end (args_copy);
- va_end (args);
-}
-
-int
-main ()
-{
-
- // Check bool.
- _Bool success = false;
-
- // Check restrict.
- if (test_restrict ("String literal") == 0)
- success = true;
- char *restrict newvar = "Another string";
-
- // Check varargs.
- test_varargs ("s, d' f .", "string", 65, 34.234);
- test_varargs_macros ();
-
- // Check flexible array members.
- struct incomplete_array *ia =
- malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
- ia->datasize = 10;
- for (int i = 0; i < ia->datasize; ++i)
- ia->data[i] = i * 1.234;
-
- // Check named initializers.
- struct named_init ni = {
- .number = 34,
- .name = L"Test wide string",
- .average = 543.34343,
- };
-
- ni.number = 58;
-
- int dynamic_array[ni.number];
- dynamic_array[ni.number - 1] = 543;
-
- // work around unused variable warnings
- return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
- || dynamic_array[ni.number - 1] != 543);
-
- ;
- return 0;
-}
-_ACEOF
-for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
-do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c99=$ac_arg
-fi
-rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c99" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c99" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
-$as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
-$as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c99"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
-$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
-esac
-if test "x$ac_cv_prog_cc_c99" != xno; then :
-
-fi
-
-
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+if ${ac_cv_prog_cc_c99+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c99=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <wchar.h>
+#include <stdio.h>
+
+// Check varargs macros. These examples are taken from C99 6.10.3.5.
+#define debug(...) fprintf (stderr, __VA_ARGS__)
+#define showlist(...) puts (#__VA_ARGS__)
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+static void
+test_varargs_macros (void)
+{
+ int x = 1234;
+ int y = 5678;
+ debug ("Flag");
+ debug ("X = %d\n", x);
+ showlist (The first, second, and third items.);
+ report (x>y, "x is %d but y is %d", x, y);
+}
+
+// Check long long types.
+#define BIG64 18446744073709551615ull
+#define BIG32 4294967295ul
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+#if !BIG_OK
+ your preprocessor is broken;
+#endif
+#if BIG_OK
+#else
+ your preprocessor is broken;
+#endif
+static long long int bignum = -9223372036854775807LL;
+static unsigned long long int ubignum = BIG64;
+
+struct incomplete_array
+{
+ int datasize;
+ double data[];
+};
+
+struct named_init {
+ int number;
+ const wchar_t *name;
+ double average;
+};
+
+typedef const char *ccp;
+
+static inline int
+test_restrict (ccp restrict text)
+{
+ // See if C++-style comments work.
+ // Iterate through items via the restricted pointer.
+ // Also check for declarations in for loops.
+ for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+ continue;
+ return 0;
+}
+
+// Check varargs and va_copy.
+static void
+test_varargs (const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ va_list args_copy;
+ va_copy (args_copy, args);
+
+ const char *str;
+ int number;
+ float fnumber;
+
+ while (*format)
+ {
+ switch (*format++)
+ {
+ case 's': // string
+ str = va_arg (args_copy, const char *);
+ break;
+ case 'd': // int
+ number = va_arg (args_copy, int);
+ break;
+ case 'f': // float
+ fnumber = va_arg (args_copy, double);
+ break;
+ default:
+ break;
+ }
+ }
+ va_end (args_copy);
+ va_end (args);
+}
+
+int
+main ()
+{
+
+ // Check bool.
+ _Bool success = false;
+
+ // Check restrict.
+ if (test_restrict ("String literal") == 0)
+ success = true;
+ char *restrict newvar = "Another string";
+
+ // Check varargs.
+ test_varargs ("s, d' f .", "string", 65, 34.234);
+ test_varargs_macros ();
+
+ // Check flexible array members.
+ struct incomplete_array *ia =
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+ ia->datasize = 10;
+ for (int i = 0; i < ia->datasize; ++i)
+ ia->data[i] = i * 1.234;
+
+ // Check named initializers.
+ struct named_init ni = {
+ .number = 34,
+ .name = L"Test wide string",
+ .average = 543.34343,
+ };
+
+ ni.number = 58;
+
+ int dynamic_array[ni.number];
+ dynamic_array[ni.number - 1] = 543;
+
+ // work around unused variable warnings
+ return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+ || dynamic_array[ni.number - 1] != 543);
+
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c99=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c99" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c99" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c99"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c99" != xno; then :
+
+fi
+
+
+
+if test x"$ac_cv_prog_cc_c99" = "xno"; then
+ as_fn_error $? "charybdis requires a C99 capable compiler" "$LINENO" 5
+fi
+
ac_config_headers="$ac_config_headers include/setup.h"
- subdirs="$subdirs extra/libltdl"
+ subdirs="$subdirs libltdl"
build_ltdl=$with_included_ltdl
-if test x"$build_ltdl" = x"yes"; then
- if 1; then
+ if test x"$build_ltdl" = x"yes"; then
BUILD_LTDL_TRUE=
BUILD_LTDL_FALSE='#'
else
BUILD_LTDL_FALSE=
fi
- subdirs="$subdirs libltdl"
-
-fi
if test "$ac_cv_c_compiler_gnu" = yes; then
IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
-if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
- VICONF=viconf
- else
- VICONF=""
-fi
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
-$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
-if ${gcc_cv_header_string+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <string.h>
- #include <strings.h>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- gcc_cv_header_string=yes
-else
- gcc_cv_header_string=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
-$as_echo "$gcc_cv_header_string" >&6; }
-
-if test "$gcc_cv_header_string" = "yes"; then
-
-$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
-
-fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
if ac_fn_c_try_run "$LINENO"; then :
ac_cv_c_bigendian=no
else
- ac_cv_c_bigendian=yes
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
-$as_echo "$ac_cv_c_bigendian" >&6; }
- case $ac_cv_c_bigendian in #(
- yes)
- $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
-;; #(
- no)
- ;; #(
- universal)
-
-$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
-
- ;; #(
- *)
- as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
- esac
-
-
-ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
-if test "x$ac_cv_header_stdarg_h" = xyes; then :
-
-else
- as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
-fi
-
-
-
-
-if test "$ac_cv_c_compiler_gnu" = yes; then
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
-$as_echo_n "checking for strlcpy... " >&6; }
-save_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -Wimplicit -Werror"
-
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <string.h>
- #include <stdlib.h>
-int
-main ()
-{
-char *a = malloc(6);
- strlcpy(a, "hello", 6);
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
-
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
-$as_echo_n "checking for strlcat... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <string.h>
- #include <stdlib.h>
-int
-main ()
-{
-char *a = malloc(6);
- a[0] = '\0';
- strlcat(a, "hello", 6);
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
-
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
+ ac_cv_c_bigendian=yes
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+ fi
fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
+$as_echo "$ac_cv_c_bigendian" >&6; }
+ case $ac_cv_c_bigendian in #(
+ yes)
+ $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
+;; #(
+ no)
+ ;; #(
+ universal)
+
+$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
+ ;; #(
+ *)
+ as_fn_error $? "unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ esac
+
-CFLAGS=$save_CFLAGS
+ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdarg_h" = xyes; then :
else
+ as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
+fi
for ac_func in strlcat strlcpy
done
-fi
-
ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_u_int32_t" = xyes; then :
fi
-for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
+for ac_func in snprintf vsnprintf socketpair mmap gettimeofday strdup strndup
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"
-# Check whether --enable-ports was given.
-if test "${enable_ports+set}" = set; then :
- enableval=$enable_ports; if test $enableval = yes; then
- SELECT_TYPE_EXPLICIT="ports"
- else
- use_ports=no
- fi
-
-fi
-
-
-# Check whether --enable-poll was given.
-if test "${enable_poll+set}" = set; then :
- enableval=$enable_poll; if test $enableval = yes; then
- SELECT_TYPE_EXPLICIT="poll"
- else
- use_poll=no
- fi
-
-fi
-
-
-# Check whether --enable-select was given.
-if test "${enable_select+set}" = set; then :
- enableval=$enable_select; if test $enableval = yes; then
- SELECT_TYPE_EXPLICIT="select"
- else
- use_select=no
- fi
-
-fi
-
-
-# Check whether --enable-kqueue was given.
-if test "${enable_kqueue+set}" = set; then :
- enableval=$enable_kqueue; if test $enableval = yes; then
- SELECT_TYPE_EXPLICIT="kqueue"
- else
- use_kqueue=no
- fi
-
-fi
-
-
-# Check whether --enable-epoll was given.
-if test "${enable_epoll+set}" = set; then :
- enableval=$enable_epoll; if test $enableval = yes; then
- SELECT_TYPE_EXPLICIT="epoll"
- for ac_func in epoll_ctl
-do :
- ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
-if test "x$ac_cv_func_epoll_ctl" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_EPOLL_CTL 1
-_ACEOF
- haveepoll=yes
-else
- haveepoll=no
-fi
-done
-
- else
- use_epoll=no
- fi
-
-fi
-
-
-
# Check whether --with-confdir was given.
if test "${with_confdir+set}" = set; then :
fi
-if test ! -z "$SELECT_TYPE_EXPLICIT"; then
- SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
- echo "Forcing $SELECT_TYPE to be enabled"
-else
-
-if test ! "x$use_ports" = "xno"; then
- for ac_func in port_getn
-do :
- ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
-if test "x$ac_cv_func_port_getn" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_PORT_GETN 1
-_ACEOF
- haveports=yes
-else
- haveports=no
-fi
-done
-
- if test "x$haveports" = "xyes" ; then
- SELECT_TYPE="ports"
- fi
-fi
-
-if test ! "x$use_select" = "xno"; then
- for ac_func in select
-do :
- ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
-if test "x$ac_cv_func_select" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_SELECT 1
-_ACEOF
- haveselect=yes
-else
- haveselect=no
-fi
-done
-
- if test "x$haveselect" = "xyes" ; then
- SELECT_TYPE="select"
- fi
-fi
-
-if test ! "x$use_poll" = "xno"; then
- for ac_func in poll
-do :
- ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
-if test "x$ac_cv_func_poll" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_POLL 1
-_ACEOF
- havepoll=yes
-else
- havepoll=no
-fi
-done
-
- if test "x$havepoll" = "xyes" ; then
- SELECT_TYPE="poll"
- fi
-fi
-
-if test ! "x$use_kqueue" = "xno"; then
- for ac_func in kevent
-do :
- ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
-if test "x$ac_cv_func_kevent" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_KEVENT 1
-_ACEOF
- havekqueue=yes
-else
- havekqueue=no
-fi
-done
-
- if test "x$havekqueue" = "xyes" ; then
- SELECT_TYPE="kqueue"
- fi
-fi
-
-if test ! "x$use_epoll" = "xno"; then
- for ac_func in epoll_ctl
-do :
- ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
-if test "x$ac_cv_func_epoll_ctl" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_EPOLL_CTL 1
-_ACEOF
- haveepoll=yes
-else
- haveepoll=no
-fi
-done
-
- if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
- if test "x$haveepoll" = "xyes" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
-$as_echo_n "checking for epoll support in kernel... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdint.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/epoll.h>
-#include <sys/syscall.h>
-#include <unistd.h>
-
-int
-main(int argc, char **argv)
-{
- int epfd;
-
- epfd = epoll_create(256);
- return (epfd == -1 ? 1 : 0);
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
-
- SELECT_TYPE="epoll"
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
- fi
- fi
-
-haveepollsyscall=no
-
-if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
- if test "x$haveepoll" = "xno" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
-$as_echo_n "checking for epoll system call... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdint.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/epoll.h>
-#include <sys/syscall.h>
-#include <unistd.h>
-
-int
-epoll_create(int size)
-{
- return (syscall(__NR_epoll_create, size));
-}
-
-int
-main(int argc, char **argv)
-{
- int epfd;
-
- epfd = epoll_create(256);
- exit (epfd == -1 ? 1 : 0);
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
-
- SELECT_TYPE="epoll"
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
- fi
-fi
-
-fi
-
-fi
-
-if test -z "$SELECT_TYPE"; then
- as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
-fi
-
-echo "Using $SELECT_TYPE for select loop."
-
-
-cat >>confdefs.h <<_ACEOF
-#define SELECT_TYPE "$SELECT_TYPE"
-_ACEOF
-
-
-
-
# Check whether --enable-assert was given.
if test "${enable_assert+set}" = set; then :
assert = "hard";
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
-$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
-# Check whether --enable-iodebug was given.
-if test "${enable_iodebug+set}" = set; then :
- enableval=$enable_iodebug; iodebug=$enableval
-else
- iodebug=no
-fi
-
-
-if test "$iodebug" = yes; then
-
-$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
$as_echo_n "checking if you want to do a profile build... " >&6; }
# Check whether --enable-profile was given.
$as_echo "no" >&6; }
fi
-# Check whether --enable-balloc was given.
-if test "${enable_balloc+set}" = set; then :
- enableval=$enable_balloc; balloc=$enableval
-else
- balloc=yes
-fi
-
-
-if test "$balloc" = no; then
-
-$as_echo "#define NOBALLOC 1" >>confdefs.h
-
-fi
-
-# Check whether --enable-small-net was given.
-if test "${enable_small_net+set}" = set; then :
- enableval=$enable_small_net; small_net=$enableval
-else
- small_net=no
-fi
-
-
-if test "$small_net" = yes; then
-
-$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
-
-
-$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
-
-
-$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
-
-
-$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
-
-
-$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
-
-
-$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
-
-
-$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
-
-
-$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
-
-
-$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
-
-else
$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
-fi
# Check whether --with-nicklen was given.
# Check whether --with-topiclen was given.
if test "${with_topiclen+set}" = set; then :
withval=$with_topiclen;
- if test $withval -ge 390; then
+ if test $withval -gt 390; then
TOPICLEN=390
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
Ziplinks : $zlib
OpenSSL : $openssl
- Socket Engine : $SELECT_TYPE
- Small network : $small_net
- Block allocator : $balloc
Nickname length : $NICKLEN
Topic length : $TOPICLEN