]> jfr.im git - solanum.git/blobdiff - configure
Add .travis.yml
[solanum.git] / configure
index 904769c6ac5d7f30a2d235d60062a6e7ae572162..cd23742ccddea8fe5b7e35f2e20db7f195fdb67b 100755 (executable)
--- a/configure
+++ b/configure
@@ -563,7 +563,7 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
 SHELL=${CONFIG_SHELL-/bin/sh}
 
-lt_ltdl_dir='extra/libltdl'
+lt_ltdl_dir='libltdl'
 
 lt_dlopen_dir="$lt_ltdl_dir"
 
@@ -668,7 +668,6 @@ PKG_CONFIG
 ZLIB_LD
 ENCSPEED
 ALLOCA
-VICONF
 CRYPT_LIB
 PKGLIBEXECDIR
 pkglibexecdir
@@ -853,8 +852,6 @@ with_custom_version
 enable_assert
 enable_iodebug
 enable_profile
-enable_balloc
-enable_small_net
 with_nicklen
 with_topiclen
 enable_warnings
@@ -876,7 +873,6 @@ PKG_CONFIG_LIBDIR
 SQLITE_CFLAGS
 SQLITE_LIBS'
 ac_subdirs_all='libratbox
-extra/libltdl
 libltdl'
 
 # Initialize some variables set by options.
@@ -1516,8 +1512,6 @@ Optional Features:
                           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:
@@ -3523,183 +3517,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
 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'
@@ -4161,6 +3978,188 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
 
 
+   { $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"
@@ -13365,7 +13364,7 @@ fi
 
 
 
-    subdirs="$subdirs extra/libltdl"
+    subdirs="$subdirs libltdl"
 
 
 
@@ -13457,10 +13456,6 @@ eval "LTDLOPEN=\"$libname_spec\""
 
 
 build_ltdl=$with_included_ltdl
-if test x"$build_ltdl" = x"yes"; then
-       subdirs="$subdirs libltdl"
-
-fi
  if test x"$build_ltdl" = x"yes"; then
   BUILD_LTDL_TRUE=
   BUILD_LTDL_FALSE='#'
 
 
 
-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 byte ordering is bigendian" >&5
 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 if ${ac_cv_c_bigendian+:} false; then :
@@ -16541,78 +16528,6 @@ else
 $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
 
@@ -16661,7 +16576,6 @@ $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
 
 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
 
-fi
 
 
 # Check whether --with-nicklen was given.
@@ -16691,7 +16605,7 @@ fi
 # 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;}
@@ -20383,8 +20297,6 @@ Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
 
        Ziplinks           : $zlib
        OpenSSL            : $openssl
-       Small network      : $small_net
-       Block allocator    : $balloc
 
        Nickname length    : $NICKLEN
        Topic length       : $TOPICLEN