| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1245 2011-09-30 14:58:29Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 1338 2012-04-05 11:05:48Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
|
# Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1. |
| 5 |
|
# |
| 784 |
|
with_ltdl_include |
| 785 |
|
with_ltdl_lib |
| 786 |
|
enable_ltdl_install |
| 787 |
– |
with_zlib_path |
| 788 |
– |
enable_zlib |
| 787 |
|
with_libpcre_path |
| 788 |
|
enable_libpcre |
| 789 |
|
enable_openssl |
| 1443 |
|
optimize for fast installation [default=yes] |
| 1444 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1445 |
|
--enable-ltdl-install install libltdl |
| 1448 |
– |
--disable-zlib Disable ziplinks support |
| 1446 |
|
--disable-libpcre Disable PCRE support |
| 1447 |
|
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1448 |
|
--disable-openssl Disable OpenSSL support. |
| 1470 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1471 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1472 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1476 |
– |
--with-zlib-path=DIR Path to libz.so for ziplinks support. |
| 1473 |
|
--with-libpcre-path=DIR Path to libpcre.so for PCRE support. |
| 1474 |
|
--with-nicklen=<value> Set nickname length (default 9). |
| 1475 |
|
--with-topiclen=<value> Set topic length (default 160). |
| 2367 |
|
as_fn_append ac_func_list " usleep" |
| 2368 |
|
as_fn_append ac_func_list " strlcat" |
| 2369 |
|
as_fn_append ac_func_list " strlcpy" |
| 2374 |
– |
as_fn_append ac_func_list " socketpair" |
| 2370 |
|
as_fn_append ac_header_list " crypt.h" |
| 2376 |
– |
as_fn_append ac_header_list " inttypes.h" |
| 2377 |
– |
as_fn_append ac_header_list " stdint.h" |
| 2371 |
|
as_fn_append ac_header_list " sys/resource.h" |
| 2372 |
|
as_fn_append ac_header_list " sys/param.h" |
| 2380 |
– |
as_fn_append ac_header_list " errno.h" |
| 2381 |
– |
as_fn_append ac_header_list " sys/syslog.h" |
| 2373 |
|
as_fn_append ac_header_list " types.h" |
| 2374 |
|
as_fn_append ac_header_list " socket.h" |
| 2375 |
|
as_fn_append ac_header_list " sys/wait.h" |
| 2376 |
|
as_fn_append ac_header_list " wait.h" |
| 2386 |
– |
as_fn_append ac_header_list " link.h" |
| 2377 |
|
# Check that the precious variables saved in the cache have kept the same |
| 2378 |
|
# value. |
| 2379 |
|
ac_cache_corrupted=false |
| 4136 |
|
|
| 4137 |
|
|
| 4138 |
|
if test "$ac_cv_prog_cc_c99" = "no"; then : |
| 4139 |
< |
as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5 |
| 4139 |
> |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
| 4140 |
|
fi |
| 4141 |
|
for ac_prog in 'bison -y' byacc |
| 4142 |
|
do |
| 13502 |
|
|
| 13503 |
|
|
| 13504 |
|
|
| 13515 |
– |
|
| 13516 |
– |
|
| 13505 |
|
# Checks for header files. |
| 13506 |
|
|
| 13507 |
|
|
| 13536 |
|
|
| 13537 |
|
|
| 13538 |
|
|
| 13551 |
– |
|
| 13552 |
– |
|
| 13553 |
– |
|
| 13554 |
– |
|
| 13555 |
– |
|
| 13556 |
– |
|
| 13557 |
– |
|
| 13558 |
– |
|
| 13559 |
– |
|
| 13560 |
– |
|
| 13561 |
– |
# check for /dev/null so we can use it to hold evil fd's |
| 13562 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 |
| 13563 |
– |
$as_echo_n "checking for /dev/null... " >&6; } |
| 13564 |
– |
if test -c /dev/null; then : |
| 13565 |
– |
|
| 13566 |
– |
|
| 13567 |
– |
$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h |
| 13568 |
– |
|
| 13569 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13570 |
– |
$as_echo "yes" >&6; } |
| 13571 |
– |
else |
| 13572 |
– |
|
| 13573 |
– |
|
| 13574 |
– |
$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
| 13575 |
– |
|
| 13576 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 |
| 13577 |
– |
$as_echo "no - using devnull.log" >&6; } |
| 13578 |
– |
fi |
| 13579 |
– |
|
| 13580 |
– |
|
| 13539 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 13540 |
|
$as_echo_n "checking for library containing crypt... " >&6; } |
| 13541 |
|
if ${ac_cv_search_crypt+:} false; then : |
| 13595 |
|
|
| 13596 |
|
|
| 13597 |
|
|
| 13640 |
– |
# Check whether --with-zlib-path was given. |
| 13641 |
– |
if test "${with_zlib_path+set}" = set; then : |
| 13642 |
– |
withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS" |
| 13643 |
– |
fi |
| 13644 |
– |
|
| 13645 |
– |
|
| 13646 |
– |
# Check whether --enable-zlib was given. |
| 13647 |
– |
if test "${enable_zlib+set}" = set; then : |
| 13648 |
– |
enableval=$enable_zlib; zlib=$enableval |
| 13649 |
– |
else |
| 13650 |
– |
zlib=yes |
| 13651 |
– |
fi |
| 13652 |
– |
|
| 13653 |
– |
|
| 13654 |
– |
if test "$zlib" = "yes"; then : |
| 13655 |
– |
|
| 13656 |
– |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 13657 |
– |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 13658 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 |
| 13659 |
– |
$as_echo_n "checking for zlibVersion in -lz... " >&6; } |
| 13660 |
– |
if ${ac_cv_lib_z_zlibVersion+:} false; then : |
| 13661 |
– |
$as_echo_n "(cached) " >&6 |
| 13662 |
– |
else |
| 13663 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 13664 |
– |
LIBS="-lz $LIBS" |
| 13665 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13666 |
– |
/* end confdefs.h. */ |
| 13667 |
– |
|
| 13668 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13669 |
– |
Use char because int might match the return type of a GCC |
| 13670 |
– |
builtin and then its argument prototype would still apply. */ |
| 13671 |
– |
#ifdef __cplusplus |
| 13672 |
– |
extern "C" |
| 13673 |
– |
#endif |
| 13674 |
– |
char zlibVersion (); |
| 13675 |
– |
int |
| 13676 |
– |
main () |
| 13677 |
– |
{ |
| 13678 |
– |
return zlibVersion (); |
| 13679 |
– |
; |
| 13680 |
– |
return 0; |
| 13681 |
– |
} |
| 13682 |
– |
_ACEOF |
| 13683 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 13684 |
– |
ac_cv_lib_z_zlibVersion=yes |
| 13685 |
– |
else |
| 13686 |
– |
ac_cv_lib_z_zlibVersion=no |
| 13687 |
– |
fi |
| 13688 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 13689 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 13690 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 13691 |
– |
fi |
| 13692 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
| 13693 |
– |
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } |
| 13694 |
– |
if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
| 13695 |
– |
|
| 13696 |
– |
LIBS="-lz $LIBS" |
| 13697 |
– |
|
| 13698 |
– |
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
| 13699 |
– |
|
| 13700 |
– |
|
| 13701 |
– |
else |
| 13702 |
– |
zlib=no |
| 13703 |
– |
fi |
| 13704 |
– |
|
| 13705 |
– |
|
| 13706 |
– |
else |
| 13707 |
– |
zlib=no |
| 13708 |
– |
fi |
| 13709 |
– |
|
| 13710 |
– |
|
| 13711 |
– |
|
| 13712 |
– |
fi |
| 13713 |
– |
|
| 13714 |
– |
|
| 13598 |
|
# Check whether --with-libpcre-path was given. |
| 13599 |
|
if test "${with_libpcre_path+set}" = set; then : |
| 13600 |
|
withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS" |
| 13717 |
|
fi |
| 13718 |
|
|
| 13719 |
|
if test ! -z "$cf_openssl_basedir"; then |
| 13837 |
– |
LIBS="-lcrypto -lssl $LIBS" |
| 13720 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 13721 |
|
$as_echo "$cf_openssl_basedir" >&6; } |
| 13722 |
|
cf_enable_openssl="yes" |
| 13841 |
– |
|
| 13842 |
– |
$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
| 13843 |
– |
|
| 13723 |
|
else |
| 13724 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 13725 |
|
$as_echo "not found. Please check your path." >&6; } |
| 13732 |
|
fi |
| 13733 |
|
|
| 13734 |
|
if test "$cf_enable_openssl" != "no"; then : |
| 13735 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 |
| 13736 |
< |
$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } |
| 13735 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 13736 |
> |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 13737 |
|
if test "$cross_compiling" = yes; then : |
| 13738 |
|
cf_openssl_version_ok=no |
| 13739 |
|
else |
| 13746 |
|
int |
| 13747 |
|
main () |
| 13748 |
|
{ |
| 13749 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000)); |
| 13749 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 13750 |
|
; |
| 13751 |
|
return 0; |
| 13752 |
|
} |
| 13765 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 13766 |
|
$as_echo "found" >&6; } |
| 13767 |
|
|
| 13768 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 13768 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 13769 |
> |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 13770 |
> |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 13771 |
> |
$as_echo_n "(cached) " >&6 |
| 13772 |
> |
else |
| 13773 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 13774 |
> |
LIBS="-lssl $LIBS" |
| 13775 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13776 |
> |
/* end confdefs.h. */ |
| 13777 |
> |
|
| 13778 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 13779 |
> |
Use char because int might match the return type of a GCC |
| 13780 |
> |
builtin and then its argument prototype would still apply. */ |
| 13781 |
> |
#ifdef __cplusplus |
| 13782 |
> |
extern "C" |
| 13783 |
> |
#endif |
| 13784 |
> |
char SSL_connect (); |
| 13785 |
> |
int |
| 13786 |
> |
main () |
| 13787 |
> |
{ |
| 13788 |
> |
return SSL_connect (); |
| 13789 |
> |
; |
| 13790 |
> |
return 0; |
| 13791 |
> |
} |
| 13792 |
> |
_ACEOF |
| 13793 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 13794 |
> |
ac_cv_lib_ssl_SSL_connect=yes |
| 13795 |
> |
else |
| 13796 |
> |
ac_cv_lib_ssl_SSL_connect=no |
| 13797 |
> |
fi |
| 13798 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 13799 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 13800 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 13801 |
> |
fi |
| 13802 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 13803 |
> |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 13804 |
> |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 13805 |
> |
cat >>confdefs.h <<_ACEOF |
| 13806 |
> |
#define HAVE_LIBSSL 1 |
| 13807 |
> |
_ACEOF |
| 13808 |
> |
|
| 13809 |
> |
LIBS="-lssl $LIBS" |
| 13810 |
> |
|
| 13811 |
> |
fi |
| 13812 |
> |
|
| 13813 |
> |
if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then : |
| 13814 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 13815 |
|
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 13816 |
|
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 13817 |
|
$as_echo_n "(cached) " >&6 |
| 13856 |
|
|
| 13857 |
|
fi |
| 13858 |
|
|
| 13934 |
– |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 13935 |
– |
for ac_func in EVP_bf_cfb \ |
| 13936 |
– |
EVP_cast5_cfb \ |
| 13937 |
– |
EVP_idea_cfb \ |
| 13938 |
– |
EVP_rc5_32_12_16_cfb \ |
| 13939 |
– |
EVP_des_ede3_cfb \ |
| 13940 |
– |
EVP_des_cfb |
| 13941 |
– |
do : |
| 13942 |
– |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13943 |
– |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13944 |
– |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13945 |
– |
cat >>confdefs.h <<_ACEOF |
| 13946 |
– |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13947 |
– |
_ACEOF |
| 13948 |
– |
|
| 13949 |
– |
fi |
| 13950 |
– |
done |
| 13951 |
– |
|
| 13859 |
|
fi |
| 13860 |
|
|
| 13861 |
|
else |
| 13865 |
|
fi |
| 13866 |
|
fi |
| 13867 |
|
|
| 13868 |
< |
if test "$cf_enable_openssl" = yes; then |
| 13868 |
> |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
| 13869 |
|
ENABLE_SSL_TRUE= |
| 13870 |
|
ENABLE_SSL_FALSE='#' |
| 13871 |
|
else |
| 14545 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14546 |
|
|
| 14547 |
|
|
| 14548 |
< |
ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 14548 |
> |
ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 14549 |
|
|
| 14550 |
|
|
| 14551 |
|
cat >confcache <<\_ACEOF |
| 15600 |
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 15601 |
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 15602 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15696 |
– |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
| 15697 |
– |
"servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; |
| 15603 |
|
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
| 15604 |
|
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
| 15605 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |