X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/4a9c030819d9ecfaf5ea064ca463f4411c8983f4..d2c5159aa806ad92f8753dd7c0adb946113a8ccb:/configure diff --git a/configure b/configure index 99166102..0381739c 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for charybdis 2.3.0. +# Generated by GNU Autoconf 2.61 for charybdis 3.0.0-alpha1. # # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ # @@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='charybdis' PACKAGE_TARNAME='charybdis' -PACKAGE_VERSION='2.3.0' -PACKAGE_STRING='charybdis 2.3.0' +PACKAGE_VERSION='3.0.0-alpha1' +PACKAGE_STRING='charybdis 3.0.0-alpha1' PACKAGE_BUGREPORT='' ac_default_prefix=$HOME/ircd @@ -1222,7 +1222,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 charybdis 2.3.0 to adapt to many kinds of systems. +\`configure' configures charybdis 3.0.0-alpha1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1283,7 +1283,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of charybdis 2.3.0:";; + short | recursive ) echo "Configuration of charybdis 3.0.0-alpha1:";; esac cat <<\_ACEOF @@ -1397,7 +1397,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -charybdis configure 2.3.0 +charybdis configure 3.0.0-alpha1 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1413,7 +1413,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 charybdis $as_me 2.3.0, which was +It was created by charybdis $as_me 3.0.0-alpha1, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -2861,7 +2861,7 @@ echo "${ECHO_T}no" >&6; } ;; esac - IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" + IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" fi if test "$ac_cv_prog_cc_g" = yes; then @@ -7292,135 +7292,6 @@ else fi -if test $ipv6 != yes; then - have_v6="no" -else -{ echo "$as_me:$LINENO: checking for core IPv6 support" >&5 -echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define IN_AUTOCONF - #include - #include - #include -int -main () -{ -struct sockaddr_in6 s; - s.sin6_family = 0; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - - if test "$CYGWIN" = "yes"; then - { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 -echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } - have_v6=no - else - have_v6=yes - -cat >>confdefs.h <<\_ACEOF -#define IPV6 1 -_ACEOF - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 -echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define IN_AUTOCONF - #include - #include - #include -int -main () -{ -struct in6_addr a = in6addr_any; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define NO_IN6ADDR_ANY 1 -_ACEOF - - inet_misc=1 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -have_v6="no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - { echo "$as_me:$LINENO: checking for library containing crypt" >&5 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } if test "${ac_cv_search_crypt+set}" = set; then @@ -11018,6 +10889,11 @@ cat >>confdefs.h <<\_ACEOF _ACEOF +cat >>confdefs.h <<\_ACEOF +#define FD_HEAP_SIZE 128 +_ACEOF + + cat >>confdefs.h <<\_ACEOF #define AWAY_HEAP_SIZE 128 _ACEOF @@ -11094,6 +10970,11 @@ cat >>confdefs.h <<\_ACEOF _ACEOF +cat >>confdefs.h <<\_ACEOF +#define FD_HEAP_SIZE 1024 +_ACEOF + + cat >>confdefs.h <<\_ACEOF #define AWAY_HEAP_SIZE 512 _ACEOF @@ -11951,6 +11832,7 @@ fi # This must be down here, or it will mess up checks like the ones # for -Wl,-export-dynamic # -- jilles +CWARNS="" # Check whether --enable-warnings was given. if test "${enable_warnings+set}" = set; then enableval=$enable_warnings; @@ -12333,6 +12215,81 @@ echo "${ECHO_T}no" >&6; } fi + { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5 +echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; } + if test "${GCC-no}" = yes + then + if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + oldcflags="${CFLAGS-}" + CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +int main(void); + +int +main () +{ + + (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + charybdis_cv_c_gcc_w_float_equal=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + charybdis_cv_c_gcc_w_float_equal=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="${oldcflags}" +fi + + if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then + CWARNS="${CWARNS}-Wwrite-strings " + { echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6; } + else + charybdis_cv_c_gcc_w_float_equal='' + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + fi + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + fi + + { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } if test "${GCC-no}" = yes @@ -13308,8 +13265,8 @@ echo "${ECHO_T}no" >&6; } fi - { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5 -echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } + { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5 +echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; } if test "${GCC-no}" = yes then if test "${charybdis_cv_c_gcc_w_format+set}" = set; then @@ -13317,7 +13274,7 @@ echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } else oldcflags="${CFLAGS-}" - CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror" + CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -13369,7 +13326,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test "x$charybdis_cv_c_gcc_w_format" = xyes; then - CWARNS="${CWARNS}-Wformat=2 " + CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security " { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } else @@ -14148,6 +14105,8 @@ _ACEOF fi fi +IRC_CFLAGS="$IRC_CFLAGS $CWARNS" + @@ -14180,7 +14139,7 @@ _ACEOF fi -ac_config_files="$ac_config_files Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" +ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" cat >confcache <<\_ACEOF @@ -14579,7 +14538,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by charybdis $as_me 2.3.0, which was +This file was extended by charybdis $as_me 3.0.0-alpha1, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14628,7 +14587,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -charybdis config.status 2.3.0 +charybdis config.status 3.0.0-alpha1 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" @@ -14738,7 +14697,7 @@ do case $ac_config_target in "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; + "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; @@ -15530,7 +15489,6 @@ Configuration: Ziplinks : $zlib OpenSSL : $openssl - IPv6 support : $have_v6 Socket Engine : $SELECT_TYPE Small network : $small_net Block allocator : $balloc @@ -15538,5 +15496,5 @@ Configuration: Nickname length : $NICKLEN Topic length : $TOPICLEN -Use make to compile Charybdis, then make install to install it. +Use (g)make to compile Charybdis, then (g)make install to install it. "