| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1680 2012-12-18 18:06:32Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 1856 2013-04-24 19:43:22Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
|
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 5 |
|
# |
| 806 |
|
with_ltdl_lib |
| 807 |
|
enable_ltdl_install |
| 808 |
|
enable_libpcre |
| 809 |
+ |
enable_libGeoIP |
| 810 |
|
enable_openssl |
| 811 |
|
enable_assert |
| 812 |
|
enable_kqueue |
| 813 |
|
enable_epoll |
| 814 |
|
enable_devpoll |
| 814 |
– |
enable_rtsigio |
| 815 |
|
enable_poll |
| 816 |
|
enable_select |
| 817 |
– |
with_nicklen |
| 818 |
– |
with_topiclen |
| 817 |
|
enable_halfops |
| 818 |
|
enable_debugging |
| 819 |
|
enable_warnings |
| 1463 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1464 |
|
--enable-ltdl-install install libltdl |
| 1465 |
|
--disable-libpcre Disable PCRE support |
| 1466 |
+ |
--disable-libgeoip Disable GeoIP support |
| 1467 |
|
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1468 |
|
--disable-openssl Disable OpenSSL support. |
| 1469 |
|
--enable-assert Enable assert() statements |
| 1470 |
|
--enable-kqueue Force kqueue usage. |
| 1471 |
|
--enable-epoll Force epoll usage. |
| 1472 |
|
--enable-devpoll Force devpoll usage. |
| 1474 |
– |
--enable-rtsigio Force rtsigio usage. |
| 1473 |
|
--enable-poll Force poll usage. |
| 1474 |
|
--enable-select Force select usage. |
| 1475 |
|
--enable-halfops Enable halfops support. |
| 1487 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1488 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1489 |
|
--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). |
| 1490 |
|
|
| 1491 |
|
Some influential environment variables: |
| 1492 |
|
CC C compiler command |
| 13728 |
|
fi |
| 13729 |
|
|
| 13730 |
|
|
| 13731 |
+ |
# Check whether --enable-libGeoIP was given. |
| 13732 |
+ |
if test "${enable_libGeoIP+set}" = set; then : |
| 13733 |
+ |
enableval=$enable_libGeoIP; |
| 13734 |
+ |
else |
| 13735 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 13736 |
+ |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 13737 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13738 |
+ |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
| 13739 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13740 |
+ |
$as_echo_n "(cached) " >&6 |
| 13741 |
+ |
else |
| 13742 |
+ |
ac_func_search_save_LIBS=$LIBS |
| 13743 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13744 |
+ |
/* end confdefs.h. */ |
| 13745 |
+ |
|
| 13746 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 13747 |
+ |
Use char because int might match the return type of a GCC |
| 13748 |
+ |
builtin and then its argument prototype would still apply. */ |
| 13749 |
+ |
#ifdef __cplusplus |
| 13750 |
+ |
extern "C" |
| 13751 |
+ |
#endif |
| 13752 |
+ |
char GeoIP_id_by_ipnum_v6_gl (); |
| 13753 |
+ |
int |
| 13754 |
+ |
main () |
| 13755 |
+ |
{ |
| 13756 |
+ |
return GeoIP_id_by_ipnum_v6_gl (); |
| 13757 |
+ |
; |
| 13758 |
+ |
return 0; |
| 13759 |
+ |
} |
| 13760 |
+ |
_ACEOF |
| 13761 |
+ |
for ac_lib in '' GeoIP; do |
| 13762 |
+ |
if test -z "$ac_lib"; then |
| 13763 |
+ |
ac_res="none required" |
| 13764 |
+ |
else |
| 13765 |
+ |
ac_res=-l$ac_lib |
| 13766 |
+ |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13767 |
+ |
fi |
| 13768 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 13769 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
| 13770 |
+ |
fi |
| 13771 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 13772 |
+ |
conftest$ac_exeext |
| 13773 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13774 |
+ |
break |
| 13775 |
+ |
fi |
| 13776 |
+ |
done |
| 13777 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13778 |
+ |
|
| 13779 |
+ |
else |
| 13780 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
| 13781 |
+ |
fi |
| 13782 |
+ |
rm conftest.$ac_ext |
| 13783 |
+ |
LIBS=$ac_func_search_save_LIBS |
| 13784 |
+ |
fi |
| 13785 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13786 |
+ |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
| 13787 |
+ |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
| 13788 |
+ |
if test "$ac_res" != no; then : |
| 13789 |
+ |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13790 |
+ |
|
| 13791 |
+ |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 13792 |
+ |
|
| 13793 |
+ |
fi |
| 13794 |
+ |
|
| 13795 |
+ |
fi |
| 13796 |
+ |
|
| 13797 |
+ |
|
| 13798 |
+ |
fi |
| 13799 |
+ |
|
| 13800 |
+ |
|
| 13801 |
|
# Check whether --enable-openssl was given. |
| 13802 |
|
if test "${enable_openssl+set}" = set; then : |
| 13803 |
|
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 13852 |
|
fi |
| 13853 |
|
|
| 13854 |
|
if test "$cf_enable_openssl" != "no"; then : |
| 13855 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 13856 |
< |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 13855 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5 |
| 13856 |
> |
$as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; } |
| 13857 |
|
if test "$cross_compiling" = yes; then : |
| 13858 |
|
cf_openssl_version_ok=no |
| 13859 |
|
else |
| 13866 |
|
int |
| 13867 |
|
main () |
| 13868 |
|
{ |
| 13869 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 13869 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f)); |
| 13870 |
|
; |
| 13871 |
|
return 0; |
| 13872 |
|
} |
| 14011 |
|
|
| 14012 |
|
|
| 14013 |
|
|
| 14014 |
< |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
| 14014 |
> |
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 14015 |
|
|
| 14016 |
|
|
| 14017 |
|
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
| 14062 |
|
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 14063 |
|
fi |
| 14064 |
|
|
| 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 |
– |
|
| 14065 |
|
# Check whether --enable-poll was given. |
| 14066 |
|
if test "${enable_poll+set}" = set; then : |
| 14067 |
|
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 14245 |
|
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14246 |
|
|
| 14247 |
|
fi |
| 14248 |
< |
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 |
| 14248 |
> |
iopoll_mechanism_poll=4 |
| 14249 |
|
|
| 14250 |
|
cat >>confdefs.h <<_ACEOF |
| 14251 |
|
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14299 |
|
fi |
| 14300 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14301 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14302 |
< |
iopoll_mechanism_select=6 |
| 14302 |
> |
iopoll_mechanism_select=5 |
| 14303 |
|
|
| 14304 |
|
cat >>confdefs.h <<_ACEOF |
| 14305 |
|
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14354 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14355 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14356 |
|
optimal_iopoll_mechanism="none" |
| 14357 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
| 14357 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 14358 |
|
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14359 |
|
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14360 |
|
optimal_iopoll_mechanism="$mechanism" |
| 14391 |
|
|
| 14392 |
|
|
| 14393 |
|
|
| 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 |
– |
|
| 14394 |
|
# Check whether --enable-halfops was given. |
| 14395 |
|
if test "${enable_halfops+set}" = set; then : |
| 14396 |
|
enableval=$enable_halfops; halfops="$enableval" |
| 14515 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14516 |
|
|
| 14517 |
|
|
| 14518 |
< |
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" |
| 14518 |
> |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 14519 |
|
|
| 14520 |
|
|
| 14521 |
|
cat >confcache <<\_ACEOF |
| 15560 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15561 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 15562 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 15573 |
– |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
| 15563 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 15564 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 15565 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |