| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1720 2012-12-28 21:06:21Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 1964 2013-05-08 14:27:02Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
|
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 5 |
|
# |
| 805 |
|
with_ltdl_include |
| 806 |
|
with_ltdl_lib |
| 807 |
|
enable_ltdl_install |
| 808 |
< |
enable_libpcre |
| 808 |
> |
enable_libGeoIP |
| 809 |
|
enable_openssl |
| 810 |
|
enable_assert |
| 811 |
|
enable_kqueue |
| 812 |
|
enable_epoll |
| 813 |
|
enable_devpoll |
| 814 |
– |
enable_rtsigio |
| 814 |
|
enable_poll |
| 815 |
|
enable_select |
| 817 |
– |
with_nicklen |
| 818 |
– |
with_topiclen |
| 816 |
|
enable_halfops |
| 817 |
|
enable_debugging |
| 818 |
|
enable_warnings |
| 1461 |
|
optimize for fast installation [default=yes] |
| 1462 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1463 |
|
--enable-ltdl-install install libltdl |
| 1464 |
< |
--disable-libpcre Disable PCRE support |
| 1464 |
> |
--disable-libgeoip Disable GeoIP support |
| 1465 |
|
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1466 |
|
--disable-openssl Disable OpenSSL support. |
| 1467 |
|
--enable-assert Enable assert() statements |
| 1468 |
|
--enable-kqueue Force kqueue usage. |
| 1469 |
|
--enable-epoll Force epoll usage. |
| 1470 |
|
--enable-devpoll Force devpoll usage. |
| 1474 |
– |
--enable-rtsigio Force rtsigio usage. |
| 1471 |
|
--enable-poll Force poll usage. |
| 1472 |
|
--enable-select Force select usage. |
| 1473 |
|
--enable-halfops Enable halfops support. |
| 1485 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1486 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1487 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1492 |
– |
--with-nicklen=<value> Set nickname length (default 9). |
| 1493 |
– |
--with-topiclen=<value> Set topic length (default 160). |
| 1488 |
|
|
| 1489 |
|
Some influential environment variables: |
| 1490 |
|
CC C compiler command |
| 13656 |
|
fi |
| 13657 |
|
|
| 13658 |
|
|
| 13659 |
< |
# Check whether --enable-libpcre was given. |
| 13660 |
< |
if test "${enable_libpcre+set}" = set; then : |
| 13661 |
< |
enableval=$enable_libpcre; |
| 13662 |
< |
else |
| 13663 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 13664 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 13665 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 13666 |
< |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 13667 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13659 |
> |
# Check whether --enable-libGeoIP was given. |
| 13660 |
> |
if test "${enable_libGeoIP+set}" = set; then : |
| 13661 |
> |
enableval=$enable_libGeoIP; |
| 13662 |
> |
else |
| 13663 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 13664 |
> |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 13665 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13666 |
> |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
| 13667 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13668 |
|
$as_echo_n "(cached) " >&6 |
| 13669 |
|
else |
| 13670 |
|
ac_func_search_save_LIBS=$LIBS |
| 13677 |
|
#ifdef __cplusplus |
| 13678 |
|
extern "C" |
| 13679 |
|
#endif |
| 13680 |
< |
char pcre_study (); |
| 13680 |
> |
char GeoIP_id_by_ipnum_v6_gl (); |
| 13681 |
|
int |
| 13682 |
|
main () |
| 13683 |
|
{ |
| 13684 |
< |
return pcre_study (); |
| 13684 |
> |
return GeoIP_id_by_ipnum_v6_gl (); |
| 13685 |
|
; |
| 13686 |
|
return 0; |
| 13687 |
|
} |
| 13688 |
|
_ACEOF |
| 13689 |
< |
for ac_lib in '' pcre; do |
| 13689 |
> |
for ac_lib in '' GeoIP; do |
| 13690 |
|
if test -z "$ac_lib"; then |
| 13691 |
|
ac_res="none required" |
| 13692 |
|
else |
| 13694 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13695 |
|
fi |
| 13696 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13697 |
< |
ac_cv_search_pcre_study=$ac_res |
| 13697 |
> |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
| 13698 |
|
fi |
| 13699 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13700 |
|
conftest$ac_exeext |
| 13701 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13701 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13702 |
|
break |
| 13703 |
|
fi |
| 13704 |
|
done |
| 13705 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13705 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13706 |
|
|
| 13707 |
|
else |
| 13708 |
< |
ac_cv_search_pcre_study=no |
| 13708 |
> |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
| 13709 |
|
fi |
| 13710 |
|
rm conftest.$ac_ext |
| 13711 |
|
LIBS=$ac_func_search_save_LIBS |
| 13712 |
|
fi |
| 13713 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 13714 |
< |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13715 |
< |
ac_res=$ac_cv_search_pcre_study |
| 13713 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13714 |
> |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
| 13715 |
> |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
| 13716 |
|
if test "$ac_res" != no; then : |
| 13717 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13718 |
|
|
| 13719 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 13719 |
> |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 13720 |
|
|
| 13721 |
|
fi |
| 13722 |
|
|
| 13780 |
|
fi |
| 13781 |
|
|
| 13782 |
|
if test "$cf_enable_openssl" != "no"; then : |
| 13783 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 13784 |
< |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 13783 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5 |
| 13784 |
> |
$as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; } |
| 13785 |
|
if test "$cross_compiling" = yes; then : |
| 13786 |
|
cf_openssl_version_ok=no |
| 13787 |
|
else |
| 13794 |
|
int |
| 13795 |
|
main () |
| 13796 |
|
{ |
| 13797 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 13797 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f)); |
| 13798 |
|
; |
| 13799 |
|
return 0; |
| 13800 |
|
} |
| 13938 |
|
fi |
| 13939 |
|
|
| 13940 |
|
|
| 13941 |
+ |
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 13942 |
|
|
| 13948 |
– |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
| 13943 |
|
|
| 13944 |
+ |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h |
| 13945 |
|
|
| 13951 |
– |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
| 13946 |
|
|
| 13947 |
+ |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h |
| 13948 |
|
|
| 13954 |
– |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h |
| 13949 |
|
|
| 13950 |
+ |
$as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h |
| 13951 |
|
|
| 13957 |
– |
$as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h |
| 13952 |
|
|
| 13953 |
+ |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h |
| 13954 |
|
|
| 13960 |
– |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h |
| 13955 |
|
|
| 13956 |
+ |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h |
| 13957 |
|
|
| 13963 |
– |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h |
| 13958 |
|
|
| 13959 |
< |
|
| 13966 |
< |
$as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h |
| 13959 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h |
| 13960 |
|
|
| 13961 |
|
|
| 13962 |
|
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 13963 |
|
|
| 13964 |
|
|
| 13965 |
< |
$as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h |
| 13965 |
> |
$as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h |
| 13966 |
> |
|
| 13967 |
> |
|
| 13968 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h |
| 13969 |
> |
|
| 13970 |
|
|
| 13971 |
+ |
$as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h |
| 13972 |
|
|
| 13975 |
– |
$as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h |
| 13973 |
|
|
| 13974 |
+ |
$as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h |
| 13975 |
|
|
| 13976 |
< |
$as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h |
| 13976 |
> |
|
| 13977 |
> |
$as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h |
| 13978 |
> |
|
| 13979 |
> |
|
| 13980 |
> |
$as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h |
| 13981 |
|
|
| 13982 |
|
|
| 13983 |
|
# Argument processing. |
| 13998 |
|
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 13999 |
|
fi |
| 14000 |
|
|
| 13999 |
– |
# Check whether --enable-rtsigio was given. |
| 14000 |
– |
if test "${enable_rtsigio+set}" = set; then : |
| 14001 |
– |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
| 14002 |
– |
fi |
| 14003 |
– |
|
| 14001 |
|
# Check whether --enable-poll was given. |
| 14002 |
|
if test "${enable_poll+set}" = set; then : |
| 14003 |
|
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 14181 |
|
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14182 |
|
|
| 14183 |
|
fi |
| 14184 |
< |
iopoll_mechanism_rtsigio=4 |
| 14188 |
< |
|
| 14189 |
< |
cat >>confdefs.h <<_ACEOF |
| 14190 |
< |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
| 14191 |
< |
_ACEOF |
| 14192 |
< |
|
| 14193 |
< |
if test "$cross_compiling" = yes; then : |
| 14194 |
< |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14195 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14196 |
< |
as_fn_error $? "cannot run test program while cross compiling |
| 14197 |
< |
See \`config.log' for more details" "$LINENO" 5; } |
| 14198 |
< |
else |
| 14199 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14200 |
< |
/* end confdefs.h. */ |
| 14201 |
< |
|
| 14202 |
< |
#define _GNU_SOURCE |
| 14203 |
< |
#include <fcntl.h> |
| 14204 |
< |
static unsigned int have_f_setsig = 0; |
| 14205 |
< |
|
| 14206 |
< |
int |
| 14207 |
< |
main () |
| 14208 |
< |
{ |
| 14209 |
< |
|
| 14210 |
< |
#ifdef F_SETSIG |
| 14211 |
< |
have_f_setsig = 1; |
| 14212 |
< |
#endif |
| 14213 |
< |
return have_f_setsig == 0; |
| 14214 |
< |
|
| 14215 |
< |
; |
| 14216 |
< |
return 0; |
| 14217 |
< |
} |
| 14218 |
< |
_ACEOF |
| 14219 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14220 |
< |
is_rtsigio_mechanism_available="yes" |
| 14221 |
< |
else |
| 14222 |
< |
is_rtsigio_mechanism_available="no" |
| 14223 |
< |
fi |
| 14224 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14225 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14226 |
< |
fi |
| 14227 |
< |
|
| 14228 |
< |
iopoll_mechanism_poll=5 |
| 14184 |
> |
iopoll_mechanism_poll=4 |
| 14185 |
|
|
| 14186 |
|
cat >>confdefs.h <<_ACEOF |
| 14187 |
|
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14235 |
|
fi |
| 14236 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14237 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14238 |
< |
iopoll_mechanism_select=6 |
| 14238 |
> |
iopoll_mechanism_select=5 |
| 14239 |
|
|
| 14240 |
|
cat >>confdefs.h <<_ACEOF |
| 14241 |
|
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14290 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14291 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14292 |
|
optimal_iopoll_mechanism="none" |
| 14293 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
| 14293 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 14294 |
|
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14295 |
|
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14296 |
|
optimal_iopoll_mechanism="$mechanism" |
| 14327 |
|
|
| 14328 |
|
|
| 14329 |
|
|
| 14374 |
– |
|
| 14375 |
– |
# Check whether --with-nicklen was given. |
| 14376 |
– |
if test "${with_nicklen+set}" = set; then : |
| 14377 |
– |
withval=$with_nicklen; nicklen="$withval" |
| 14378 |
– |
else |
| 14379 |
– |
nicklen="9" |
| 14380 |
– |
fi |
| 14381 |
– |
|
| 14382 |
– |
|
| 14383 |
– |
cat >>confdefs.h <<_ACEOF |
| 14384 |
– |
#define NICKLEN ($nicklen) |
| 14385 |
– |
_ACEOF |
| 14386 |
– |
|
| 14387 |
– |
|
| 14388 |
– |
|
| 14389 |
– |
|
| 14390 |
– |
# Check whether --with-topiclen was given. |
| 14391 |
– |
if test "${with_topiclen+set}" = set; then : |
| 14392 |
– |
withval=$with_topiclen; topiclen="$withval" |
| 14393 |
– |
else |
| 14394 |
– |
topiclen="160" |
| 14395 |
– |
fi |
| 14396 |
– |
|
| 14397 |
– |
|
| 14398 |
– |
cat >>confdefs.h <<_ACEOF |
| 14399 |
– |
#define TOPICLEN ($topiclen) |
| 14400 |
– |
_ACEOF |
| 14401 |
– |
|
| 14402 |
– |
|
| 14403 |
– |
|
| 14330 |
|
# Check whether --enable-halfops was given. |
| 14331 |
|
if test "${enable_halfops+set}" = set; then : |
| 14332 |
|
enableval=$enable_halfops; halfops="$enableval" |
| 14451 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14452 |
|
|
| 14453 |
|
|
| 14454 |
< |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 14454 |
> |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile" |
| 14455 |
|
|
| 14456 |
|
|
| 14457 |
|
cat >confcache <<\_ACEOF |
| 15496 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15497 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 15498 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 15573 |
– |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
| 15499 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 15500 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 15501 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 15502 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15578 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15579 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 15503 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 15504 |
|
|
| 15505 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |