| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1402 2012-05-09 18:42:45Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 4371 2014-08-03 10:56:24Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
< |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8beta1. |
| 4 |
> |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0. |
| 5 |
|
# |
| 6 |
|
# Report bugs to <bugs@ircd-hybrid.org>. |
| 7 |
|
# |
| 593 |
|
# Identity of this package. |
| 594 |
|
PACKAGE_NAME='ircd-hybrid' |
| 595 |
|
PACKAGE_TARNAME='ircd-hybrid' |
| 596 |
< |
PACKAGE_VERSION='8beta1' |
| 597 |
< |
PACKAGE_STRING='ircd-hybrid 8beta1' |
| 596 |
> |
PACKAGE_VERSION='8.2.0' |
| 597 |
> |
PACKAGE_STRING='ircd-hybrid 8.2.0' |
| 598 |
|
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
| 599 |
|
PACKAGE_URL='' |
| 600 |
|
|
| 723 |
|
MAINT |
| 724 |
|
MAINTAINER_MODE_FALSE |
| 725 |
|
MAINTAINER_MODE_TRUE |
| 726 |
+ |
AM_BACKSLASH |
| 727 |
+ |
AM_DEFAULT_VERBOSITY |
| 728 |
+ |
AM_DEFAULT_V |
| 729 |
+ |
AM_V |
| 730 |
|
am__untar |
| 731 |
|
am__tar |
| 732 |
|
AMTAR |
| 733 |
|
am__leading_dot |
| 734 |
|
SET_MAKE |
| 735 |
|
AWK |
| 736 |
+ |
mkdir_p |
| 737 |
|
MKDIR_P |
| 738 |
|
INSTALL_STRIP_PROGRAM |
| 739 |
|
STRIP |
| 791 |
|
ac_subst_files='' |
| 792 |
|
ac_user_opts=' |
| 793 |
|
enable_option_checking |
| 794 |
+ |
enable_silent_rules |
| 795 |
|
enable_maintainer_mode |
| 796 |
|
enable_dependency_tracking |
| 797 |
|
enable_static |
| 805 |
|
with_ltdl_include |
| 806 |
|
with_ltdl_lib |
| 807 |
|
enable_ltdl_install |
| 808 |
< |
enable_libpcre |
| 803 |
< |
enable_openssl |
| 808 |
> |
enable_libgeoip |
| 809 |
|
enable_assert |
| 805 |
– |
enable_small_net |
| 810 |
|
enable_kqueue |
| 811 |
|
enable_epoll |
| 812 |
|
enable_devpoll |
| 809 |
– |
enable_rtsigio |
| 813 |
|
enable_poll |
| 811 |
– |
enable_select |
| 812 |
– |
with_nicklen |
| 813 |
– |
with_topiclen |
| 814 |
– |
enable_halfops |
| 814 |
|
enable_debugging |
| 815 |
|
enable_warnings |
| 816 |
+ |
enable_openssl |
| 817 |
|
' |
| 818 |
|
ac_precious_vars='build_alias |
| 819 |
|
host_alias |
| 1366 |
|
# Omit some internal or obsolete options to make the list less imposing. |
| 1367 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1368 |
|
cat <<_ACEOF |
| 1369 |
< |
\`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems. |
| 1369 |
> |
\`configure' configures ircd-hybrid 8.2.0 to adapt to many kinds of systems. |
| 1370 |
|
|
| 1371 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1372 |
|
|
| 1436 |
|
|
| 1437 |
|
if test -n "$ac_init_help"; then |
| 1438 |
|
case $ac_init_help in |
| 1439 |
< |
short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";; |
| 1439 |
> |
short | recursive ) echo "Configuration of ircd-hybrid 8.2.0:";; |
| 1440 |
|
esac |
| 1441 |
|
cat <<\_ACEOF |
| 1442 |
|
|
| 1444 |
|
--disable-option-checking ignore unrecognized --enable/--with options |
| 1445 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1446 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1447 |
+ |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1448 |
+ |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1449 |
|
--enable-maintainer-mode |
| 1450 |
|
enable make rules and dependencies not useful (and |
| 1451 |
|
sometimes confusing) to the casual installer |
| 1459 |
|
optimize for fast installation [default=yes] |
| 1460 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1461 |
|
--enable-ltdl-install install libltdl |
| 1462 |
< |
--disable-libpcre Disable PCRE support |
| 1461 |
< |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1462 |
< |
--disable-openssl Disable OpenSSL support. |
| 1462 |
> |
--disable-libgeoip Disable GeoIP support |
| 1463 |
|
--enable-assert Enable assert() statements |
| 1464 |
– |
--enable-small-net Enable small network support. |
| 1464 |
|
--enable-kqueue Force kqueue usage. |
| 1465 |
|
--enable-epoll Force epoll usage. |
| 1466 |
|
--enable-devpoll Force devpoll usage. |
| 1468 |
– |
--enable-rtsigio Force rtsigio usage. |
| 1467 |
|
--enable-poll Force poll usage. |
| 1470 |
– |
--enable-select Force select usage. |
| 1471 |
– |
--enable-halfops Enable halfops support. |
| 1468 |
|
--enable-debugging Enable debugging. |
| 1469 |
|
--enable-warnings Enable compiler warnings. |
| 1470 |
+ |
--enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). |
| 1471 |
+ |
--disable-openssl Disable LibreSSL/OpenSSL support. |
| 1472 |
|
|
| 1473 |
|
Optional Packages: |
| 1474 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1481 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1482 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1483 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1486 |
– |
--with-nicklen=<value> Set nickname length (default 9). |
| 1487 |
– |
--with-topiclen=<value> Set topic length (default 160). |
| 1484 |
|
|
| 1485 |
|
Some influential environment variables: |
| 1486 |
|
CC C compiler command |
| 1564 |
|
test -n "$ac_init_help" && exit $ac_status |
| 1565 |
|
if $ac_init_version; then |
| 1566 |
|
cat <<\_ACEOF |
| 1567 |
< |
ircd-hybrid configure 8beta1 |
| 1567 |
> |
ircd-hybrid configure 8.2.0 |
| 1568 |
|
generated by GNU Autoconf 2.69 |
| 1569 |
|
|
| 1570 |
|
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1939 |
|
|
| 1940 |
|
} # ac_fn_c_check_type |
| 1941 |
|
|
| 1946 |
– |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1947 |
– |
# ---------------------------------------------------- |
| 1948 |
– |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 1949 |
– |
# INCLUDES, setting cache variable VAR accordingly. |
| 1950 |
– |
ac_fn_c_check_member () |
| 1951 |
– |
{ |
| 1952 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1953 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1954 |
– |
$as_echo_n "checking for $2.$3... " >&6; } |
| 1955 |
– |
if eval \${$4+:} false; then : |
| 1956 |
– |
$as_echo_n "(cached) " >&6 |
| 1957 |
– |
else |
| 1958 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1959 |
– |
/* end confdefs.h. */ |
| 1960 |
– |
$5 |
| 1961 |
– |
int |
| 1962 |
– |
main () |
| 1963 |
– |
{ |
| 1964 |
– |
static $2 ac_aggr; |
| 1965 |
– |
if (ac_aggr.$3) |
| 1966 |
– |
return 0; |
| 1967 |
– |
; |
| 1968 |
– |
return 0; |
| 1969 |
– |
} |
| 1970 |
– |
_ACEOF |
| 1971 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1972 |
– |
eval "$4=yes" |
| 1973 |
– |
else |
| 1974 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1975 |
– |
/* end confdefs.h. */ |
| 1976 |
– |
$5 |
| 1977 |
– |
int |
| 1978 |
– |
main () |
| 1979 |
– |
{ |
| 1980 |
– |
static $2 ac_aggr; |
| 1981 |
– |
if (sizeof ac_aggr.$3) |
| 1982 |
– |
return 0; |
| 1983 |
– |
; |
| 1984 |
– |
return 0; |
| 1985 |
– |
} |
| 1986 |
– |
_ACEOF |
| 1987 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1988 |
– |
eval "$4=yes" |
| 1989 |
– |
else |
| 1990 |
– |
eval "$4=no" |
| 1991 |
– |
fi |
| 1992 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1993 |
– |
fi |
| 1994 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 |
– |
fi |
| 1996 |
– |
eval ac_res=\$$4 |
| 1997 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1998 |
– |
$as_echo "$ac_res" >&6; } |
| 1999 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2000 |
– |
|
| 2001 |
– |
} # ac_fn_c_check_member |
| 2002 |
– |
|
| 1942 |
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1943 |
|
# ------------------------------------------------------- |
| 1944 |
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2033 |
|
This file contains any messages produced by compilers while |
| 2034 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2035 |
|
|
| 2036 |
< |
It was created by ircd-hybrid $as_me 8beta1, which was |
| 2036 |
> |
It was created by ircd-hybrid $as_me 8.2.0, which was |
| 2037 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 2038 |
|
|
| 2039 |
|
$ $0 $@ |
| 2313 |
|
>$cache_file |
| 2314 |
|
fi |
| 2315 |
|
|
| 2377 |
– |
as_fn_append ac_func_list " mmap" |
| 2316 |
|
as_fn_append ac_func_list " strtok_r" |
| 2317 |
|
as_fn_append ac_func_list " usleep" |
| 2318 |
|
as_fn_append ac_func_list " strlcat" |
| 2392 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2393 |
|
|
| 2394 |
|
|
| 2395 |
< |
am__api_version='1.12' |
| 2395 |
> |
am__api_version='1.14' |
| 2396 |
|
|
| 2397 |
|
ac_aux_dir= |
| 2398 |
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2605 |
|
esac |
| 2606 |
|
fi |
| 2607 |
|
# Use eval to expand $SHELL |
| 2608 |
< |
if eval "$MISSING --run true"; then |
| 2609 |
< |
am_missing_run="$MISSING --run " |
| 2608 |
> |
if eval "$MISSING --is-lightweight"; then |
| 2609 |
> |
am_missing_run="$MISSING " |
| 2610 |
|
else |
| 2611 |
|
am_missing_run= |
| 2612 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2846 |
|
fi |
| 2847 |
|
rmdir .tst 2>/dev/null |
| 2848 |
|
|
| 2849 |
+ |
# Check whether --enable-silent-rules was given. |
| 2850 |
+ |
if test "${enable_silent_rules+set}" = set; then : |
| 2851 |
+ |
enableval=$enable_silent_rules; |
| 2852 |
+ |
fi |
| 2853 |
+ |
|
| 2854 |
+ |
case $enable_silent_rules in # ((( |
| 2855 |
+ |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 2856 |
+ |
no) AM_DEFAULT_VERBOSITY=1;; |
| 2857 |
+ |
*) AM_DEFAULT_VERBOSITY=1;; |
| 2858 |
+ |
esac |
| 2859 |
+ |
am_make=${MAKE-make} |
| 2860 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2861 |
+ |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2862 |
+ |
if ${am_cv_make_support_nested_variables+:} false; then : |
| 2863 |
+ |
$as_echo_n "(cached) " >&6 |
| 2864 |
+ |
else |
| 2865 |
+ |
if $as_echo 'TRUE=$(BAR$(V)) |
| 2866 |
+ |
BAR0=false |
| 2867 |
+ |
BAR1=true |
| 2868 |
+ |
V=1 |
| 2869 |
+ |
am__doit: |
| 2870 |
+ |
@$(TRUE) |
| 2871 |
+ |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2872 |
+ |
am_cv_make_support_nested_variables=yes |
| 2873 |
+ |
else |
| 2874 |
+ |
am_cv_make_support_nested_variables=no |
| 2875 |
+ |
fi |
| 2876 |
+ |
fi |
| 2877 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2878 |
+ |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2879 |
+ |
if test $am_cv_make_support_nested_variables = yes; then |
| 2880 |
+ |
AM_V='$(V)' |
| 2881 |
+ |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2882 |
+ |
else |
| 2883 |
+ |
AM_V=$AM_DEFAULT_VERBOSITY |
| 2884 |
+ |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2885 |
+ |
fi |
| 2886 |
+ |
AM_BACKSLASH='\' |
| 2887 |
+ |
|
| 2888 |
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2889 |
|
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2890 |
|
# is not polluted with repeated "-I." |
| 2907 |
|
|
| 2908 |
|
# Define the identity of the package. |
| 2909 |
|
PACKAGE='ircd-hybrid' |
| 2910 |
< |
VERSION='8beta1' |
| 2910 |
> |
VERSION='8.2.0' |
| 2911 |
|
|
| 2912 |
|
|
| 2913 |
|
cat >>confdefs.h <<_ACEOF |
| 2935 |
|
|
| 2936 |
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2937 |
|
|
| 2938 |
+ |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 2939 |
+ |
# dies out for good. For more background, see: |
| 2940 |
+ |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2941 |
+ |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2942 |
+ |
mkdir_p='$(MKDIR_P)' |
| 2943 |
+ |
|
| 2944 |
|
# We need awk for the "check" target. The system "awk" is bad on |
| 2945 |
|
# some platforms. |
| 2946 |
|
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 2947 |
|
# in the wild :-( We should find a proper way to deprecate it ... |
| 2948 |
|
AMTAR='$${TAR-tar}' |
| 2949 |
|
|
| 2950 |
+ |
|
| 2951 |
+ |
# We'll loop over all known methods to create a tar archive until one works. |
| 2952 |
+ |
_am_tools='gnutar pax cpio none' |
| 2953 |
+ |
|
| 2954 |
|
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2955 |
|
|
| 2956 |
|
|
| 2958 |
|
|
| 2959 |
|
|
| 2960 |
|
|
| 2961 |
+ |
# POSIX will say in a future version that running "rm -f" with no argument |
| 2962 |
+ |
# is OK; and we want to be able to make that assumption in our Makefile |
| 2963 |
+ |
# recipes. So use an aggressive probe to check that the usage we want is |
| 2964 |
+ |
# actually supported "in the wild" to an acceptable degree. |
| 2965 |
+ |
# See automake bug#10828. |
| 2966 |
+ |
# To make any issue more visible, cause the running configure to be aborted |
| 2967 |
+ |
# by default if the 'rm' program in use doesn't match our expectations; the |
| 2968 |
+ |
# user can still override this though. |
| 2969 |
+ |
if rm -f && rm -fr && rm -rf; then : OK; else |
| 2970 |
+ |
cat >&2 <<'END' |
| 2971 |
+ |
Oops! |
| 2972 |
+ |
|
| 2973 |
+ |
Your 'rm' program seems unable to run without file operands specified |
| 2974 |
+ |
on the command line, even when the '-f' option is present. This is contrary |
| 2975 |
+ |
to the behaviour of most rm programs out there, and not conforming with |
| 2976 |
+ |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2977 |
+ |
|
| 2978 |
+ |
Please tell bug-automake@gnu.org about your system, including the value |
| 2979 |
+ |
of your $PATH and any error possibly output before this message. This |
| 2980 |
+ |
can help us improve future automake versions. |
| 2981 |
+ |
|
| 2982 |
+ |
END |
| 2983 |
+ |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2984 |
+ |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2985 |
+ |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2986 |
+ |
echo >&2 |
| 2987 |
+ |
else |
| 2988 |
+ |
cat >&2 <<'END' |
| 2989 |
+ |
Aborting the configuration process, to ensure you take notice of the issue. |
| 2990 |
+ |
|
| 2991 |
+ |
You can download and install GNU coreutils to get an 'rm' implementation |
| 2992 |
+ |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 2993 |
+ |
|
| 2994 |
+ |
If you want to complete the configuration process using your problematic |
| 2995 |
+ |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2996 |
+ |
to "yes", and re-run configure. |
| 2997 |
+ |
|
| 2998 |
+ |
END |
| 2999 |
+ |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3000 |
+ |
fi |
| 3001 |
+ |
fi |
| 3002 |
+ |
|
| 3003 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3004 |
|
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3005 |
|
# Check whether --enable-maintainer-mode was given. |
| 3022 |
|
MAINT=$MAINTAINER_MODE_TRUE |
| 3023 |
|
|
| 3024 |
|
|
| 3025 |
+ |
|
| 3026 |
|
ac_config_headers="$ac_config_headers config.h" |
| 3027 |
|
|
| 3028 |
|
|
| 3880 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3881 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3882 |
|
|
| 3883 |
+ |
ac_ext=c |
| 3884 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3885 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3886 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3887 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3888 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3889 |
+ |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3890 |
+ |
if ${am_cv_prog_cc_c_o+:} false; then : |
| 3891 |
+ |
$as_echo_n "(cached) " >&6 |
| 3892 |
+ |
else |
| 3893 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3894 |
+ |
/* end confdefs.h. */ |
| 3895 |
+ |
|
| 3896 |
+ |
int |
| 3897 |
+ |
main () |
| 3898 |
+ |
{ |
| 3899 |
+ |
|
| 3900 |
+ |
; |
| 3901 |
+ |
return 0; |
| 3902 |
+ |
} |
| 3903 |
+ |
_ACEOF |
| 3904 |
+ |
# Make sure it works both with $CC and with simple cc. |
| 3905 |
+ |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 3906 |
+ |
# compilers refuse to overwrite an existing .o file with -o, |
| 3907 |
+ |
# though they will create one. |
| 3908 |
+ |
am_cv_prog_cc_c_o=yes |
| 3909 |
+ |
for am_i in 1 2; do |
| 3910 |
+ |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3911 |
+ |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3912 |
+ |
ac_status=$? |
| 3913 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3914 |
+ |
(exit $ac_status); } \ |
| 3915 |
+ |
&& test -f conftest2.$ac_objext; then |
| 3916 |
+ |
: OK |
| 3917 |
+ |
else |
| 3918 |
+ |
am_cv_prog_cc_c_o=no |
| 3919 |
+ |
break |
| 3920 |
+ |
fi |
| 3921 |
+ |
done |
| 3922 |
+ |
rm -f core conftest* |
| 3923 |
+ |
unset am_i |
| 3924 |
+ |
fi |
| 3925 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3926 |
+ |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3927 |
+ |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 3928 |
+ |
# Losing compiler, so override with the script. |
| 3929 |
+ |
# FIXME: It is wrong to rewrite CC. |
| 3930 |
+ |
# But if we don't then we get into trouble of one sort or another. |
| 3931 |
+ |
# A longer-term fix would be to have automake use am__CC in this case, |
| 3932 |
+ |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3933 |
+ |
CC="$am_aux_dir/compile $CC" |
| 3934 |
+ |
fi |
| 3935 |
+ |
ac_ext=c |
| 3936 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3937 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3938 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3939 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3940 |
+ |
|
| 3941 |
+ |
|
| 3942 |
|
depcc="$CC" am_compiler_list= |
| 3943 |
|
|
| 3944 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 8499 |
|
$RM -r conftest* |
| 8500 |
|
|
| 8501 |
|
|
| 8502 |
+ |
## CAVEAT EMPTOR: |
| 8503 |
+ |
## There is no encapsulation within the following macros, do not change |
| 8504 |
+ |
## the running order or otherwise move them around unless you know exactly |
| 8505 |
+ |
## what you are doing... |
| 8506 |
|
if test -n "$compiler"; then |
| 8507 |
|
|
| 8508 |
|
lt_prog_compiler_no_builtin_flag= |
| 13116 |
|
|
| 13117 |
|
# Checks for libraries. |
| 13118 |
|
|
| 13119 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 13120 |
< |
$as_echo_n "checking for library containing socket... " >&6; } |
| 13121 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13119 |
> |
|
| 13120 |
> |
if test "X$CC" != "X"; then |
| 13121 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 |
| 13122 |
> |
$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } |
| 13123 |
> |
if ${ssp_cv_cc+:} false; then : |
| 13124 |
> |
$as_echo_n "(cached) " >&6 |
| 13125 |
> |
else |
| 13126 |
> |
ssp_old_cflags="$CFLAGS" |
| 13127 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
| 13128 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13129 |
> |
/* end confdefs.h. */ |
| 13130 |
> |
|
| 13131 |
> |
int |
| 13132 |
> |
main () |
| 13133 |
> |
{ |
| 13134 |
> |
|
| 13135 |
> |
; |
| 13136 |
> |
return 0; |
| 13137 |
> |
} |
| 13138 |
> |
_ACEOF |
| 13139 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13140 |
> |
ssp_cv_cc=yes |
| 13141 |
> |
else |
| 13142 |
> |
ssp_cv_cc=no |
| 13143 |
> |
fi |
| 13144 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13145 |
> |
CFLAGS="$ssp_old_cflags" |
| 13146 |
> |
|
| 13147 |
> |
fi |
| 13148 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
| 13149 |
> |
$as_echo "$ssp_cv_cc" >&6; } |
| 13150 |
> |
if test $ssp_cv_cc = yes; then |
| 13151 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
| 13152 |
> |
|
| 13153 |
> |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
| 13154 |
> |
|
| 13155 |
> |
fi |
| 13156 |
> |
fi |
| 13157 |
> |
|
| 13158 |
> |
|
| 13159 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 |
| 13160 |
> |
$as_echo_n "checking whether libssp exists... " >&6; } |
| 13161 |
> |
if ${ssp_cv_lib+:} false; then : |
| 13162 |
> |
$as_echo_n "(cached) " >&6 |
| 13163 |
> |
else |
| 13164 |
> |
ssp_old_libs="$LIBS" |
| 13165 |
> |
LIBS="$LIBS -lssp" |
| 13166 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13167 |
> |
/* end confdefs.h. */ |
| 13168 |
> |
|
| 13169 |
> |
int |
| 13170 |
> |
main () |
| 13171 |
> |
{ |
| 13172 |
> |
|
| 13173 |
> |
; |
| 13174 |
> |
return 0; |
| 13175 |
> |
} |
| 13176 |
> |
_ACEOF |
| 13177 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 13178 |
> |
ssp_cv_lib=yes |
| 13179 |
> |
else |
| 13180 |
> |
ssp_cv_lib=no |
| 13181 |
> |
fi |
| 13182 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 13183 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 13184 |
> |
LIBS="$ssp_old_libs" |
| 13185 |
> |
|
| 13186 |
> |
fi |
| 13187 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 |
| 13188 |
> |
$as_echo "$ssp_cv_lib" >&6; } |
| 13189 |
> |
if test $ssp_cv_lib = yes; then |
| 13190 |
> |
LIBS="$LIBS -lssp" |
| 13191 |
> |
fi |
| 13192 |
> |
|
| 13193 |
> |
|
| 13194 |
> |
|
| 13195 |
> |
|
| 13196 |
> |
|
| 13197 |
> |
|
| 13198 |
> |
for flag in -fno-strict-aliasing; do |
| 13199 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 13200 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 13201 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 13202 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 13203 |
> |
$as_echo_n "(cached) " >&6 |
| 13204 |
> |
else |
| 13205 |
> |
|
| 13206 |
> |
ax_check_save_flags=$CFLAGS |
| 13207 |
> |
CFLAGS="$CFLAGS $flag" |
| 13208 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13209 |
> |
/* end confdefs.h. */ |
| 13210 |
> |
|
| 13211 |
> |
int |
| 13212 |
> |
main () |
| 13213 |
> |
{ |
| 13214 |
> |
|
| 13215 |
> |
; |
| 13216 |
> |
return 0; |
| 13217 |
> |
} |
| 13218 |
> |
_ACEOF |
| 13219 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13220 |
> |
eval "$as_CACHEVAR=yes" |
| 13221 |
> |
else |
| 13222 |
> |
eval "$as_CACHEVAR=no" |
| 13223 |
> |
fi |
| 13224 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13225 |
> |
CFLAGS=$ax_check_save_flags |
| 13226 |
> |
fi |
| 13227 |
> |
eval ac_res=\$$as_CACHEVAR |
| 13228 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13229 |
> |
$as_echo "$ac_res" >&6; } |
| 13230 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 13231 |
> |
if ${CFLAGS+:} false; then : |
| 13232 |
> |
case " $CFLAGS " in |
| 13233 |
> |
*" $flag "*) |
| 13234 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 13235 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 13236 |
> |
ac_status=$? |
| 13237 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13238 |
> |
test $ac_status = 0; } |
| 13239 |
> |
;; |
| 13240 |
> |
*) |
| 13241 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 13242 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 13243 |
> |
ac_status=$? |
| 13244 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13245 |
> |
test $ac_status = 0; } |
| 13246 |
> |
CFLAGS="$CFLAGS $flag" |
| 13247 |
> |
;; |
| 13248 |
> |
esac |
| 13249 |
> |
else |
| 13250 |
> |
CFLAGS="$flag" |
| 13251 |
> |
fi |
| 13252 |
> |
|
| 13253 |
> |
else |
| 13254 |
> |
: |
| 13255 |
> |
fi |
| 13256 |
> |
|
| 13257 |
> |
done |
| 13258 |
> |
|
| 13259 |
> |
|
| 13260 |
> |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
| 13261 |
> |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
| 13262 |
> |
|
| 13263 |
> |
else |
| 13264 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
| 13265 |
> |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
| 13266 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13267 |
|
$as_echo_n "(cached) " >&6 |
| 13268 |
|
else |
| 13269 |
|
ac_func_search_save_LIBS=$LIBS |
| 13276 |
|
#ifdef __cplusplus |
| 13277 |
|
extern "C" |
| 13278 |
|
#endif |
| 13279 |
< |
char socket (); |
| 13279 |
> |
char getaddrinfo (); |
| 13280 |
|
int |
| 13281 |
|
main () |
| 13282 |
|
{ |
| 13283 |
< |
return socket (); |
| 13283 |
> |
return getaddrinfo (); |
| 13284 |
|
; |
| 13285 |
|
return 0; |
| 13286 |
|
} |
| 13287 |
|
_ACEOF |
| 13288 |
< |
for ac_lib in '' socket; do |
| 13288 |
> |
for ac_lib in '' nsl; do |
| 13289 |
|
if test -z "$ac_lib"; then |
| 13290 |
|
ac_res="none required" |
| 13291 |
|
else |
| 13293 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13294 |
|
fi |
| 13295 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13296 |
< |
ac_cv_search_socket=$ac_res |
| 13296 |
> |
ac_cv_search_getaddrinfo=$ac_res |
| 13297 |
|
fi |
| 13298 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13299 |
|
conftest$ac_exeext |
| 13300 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13300 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13301 |
|
break |
| 13302 |
|
fi |
| 13303 |
|
done |
| 13304 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13304 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13305 |
|
|
| 13306 |
|
else |
| 13307 |
< |
ac_cv_search_socket=no |
| 13307 |
> |
ac_cv_search_getaddrinfo=no |
| 13308 |
|
fi |
| 13309 |
|
rm conftest.$ac_ext |
| 13310 |
|
LIBS=$ac_func_search_save_LIBS |
| 13311 |
|
fi |
| 13312 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 13313 |
< |
$as_echo "$ac_cv_search_socket" >&6; } |
| 13314 |
< |
ac_res=$ac_cv_search_socket |
| 13312 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
| 13313 |
> |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
| 13314 |
> |
ac_res=$ac_cv_search_getaddrinfo |
| 13315 |
|
if test "$ac_res" != no; then : |
| 13316 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13317 |
|
|
| 13080 |
– |
else |
| 13081 |
– |
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13318 |
|
fi |
| 13319 |
|
|
| 13320 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
| 13321 |
< |
$as_echo_n "checking for library containing inet_ntoa... " >&6; } |
| 13322 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13320 |
> |
fi |
| 13321 |
> |
|
| 13322 |
> |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 13323 |
> |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
| 13324 |
> |
|
| 13325 |
> |
else |
| 13326 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
| 13327 |
> |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
| 13328 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13329 |
|
$as_echo_n "(cached) " >&6 |
| 13330 |
|
else |
| 13331 |
|
ac_func_search_save_LIBS=$LIBS |
| 13338 |
|
#ifdef __cplusplus |
| 13339 |
|
extern "C" |
| 13340 |
|
#endif |
| 13341 |
< |
char inet_ntoa (); |
| 13341 |
> |
char getnameinfo (); |
| 13342 |
|
int |
| 13343 |
|
main () |
| 13344 |
|
{ |
| 13345 |
< |
return inet_ntoa (); |
| 13345 |
> |
return getnameinfo (); |
| 13346 |
|
; |
| 13347 |
|
return 0; |
| 13348 |
|
} |
| 13355 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13356 |
|
fi |
| 13357 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13358 |
< |
ac_cv_search_inet_ntoa=$ac_res |
| 13358 |
> |
ac_cv_search_getnameinfo=$ac_res |
| 13359 |
|
fi |
| 13360 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13361 |
|
conftest$ac_exeext |
| 13362 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13362 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13363 |
|
break |
| 13364 |
|
fi |
| 13365 |
|
done |
| 13366 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13366 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13367 |
|
|
| 13368 |
|
else |
| 13369 |
< |
ac_cv_search_inet_ntoa=no |
| 13369 |
> |
ac_cv_search_getnameinfo=no |
| 13370 |
|
fi |
| 13371 |
|
rm conftest.$ac_ext |
| 13372 |
|
LIBS=$ac_func_search_save_LIBS |
| 13373 |
|
fi |
| 13374 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
| 13375 |
< |
$as_echo "$ac_cv_search_inet_ntoa" >&6; } |
| 13376 |
< |
ac_res=$ac_cv_search_inet_ntoa |
| 13374 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
| 13375 |
> |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
| 13376 |
> |
ac_res=$ac_cv_search_getnameinfo |
| 13377 |
|
if test "$ac_res" != no; then : |
| 13378 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13379 |
|
|
| 13380 |
|
fi |
| 13381 |
|
|
| 13382 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
| 13383 |
< |
$as_echo_n "checking for library containing inet_aton... " >&6; } |
| 13384 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13382 |
> |
fi |
| 13383 |
> |
|
| 13384 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 13385 |
> |
$as_echo_n "checking for library containing socket... " >&6; } |
| 13386 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13387 |
|
$as_echo_n "(cached) " >&6 |
| 13388 |
|
else |
| 13389 |
|
ac_func_search_save_LIBS=$LIBS |
| 13396 |
|
#ifdef __cplusplus |
| 13397 |
|
extern "C" |
| 13398 |
|
#endif |
| 13399 |
< |
char inet_aton (); |
| 13399 |
> |
char socket (); |
| 13400 |
|
int |
| 13401 |
|
main () |
| 13402 |
|
{ |
| 13403 |
< |
return inet_aton (); |
| 13403 |
> |
return socket (); |
| 13404 |
|
; |
| 13405 |
|
return 0; |
| 13406 |
|
} |
| 13407 |
|
_ACEOF |
| 13408 |
< |
for ac_lib in '' resolv; do |
| 13408 |
> |
for ac_lib in '' socket; do |
| 13409 |
|
if test -z "$ac_lib"; then |
| 13410 |
|
ac_res="none required" |
| 13411 |
|
else |
| 13413 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13414 |
|
fi |
| 13415 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13416 |
< |
ac_cv_search_inet_aton=$ac_res |
| 13416 |
> |
ac_cv_search_socket=$ac_res |
| 13417 |
|
fi |
| 13418 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13419 |
|
conftest$ac_exeext |
| 13420 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13420 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13421 |
|
break |
| 13422 |
|
fi |
| 13423 |
|
done |
| 13424 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13424 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13425 |
|
|
| 13426 |
|
else |
| 13427 |
< |
ac_cv_search_inet_aton=no |
| 13427 |
> |
ac_cv_search_socket=no |
| 13428 |
|
fi |
| 13429 |
|
rm conftest.$ac_ext |
| 13430 |
|
LIBS=$ac_func_search_save_LIBS |
| 13431 |
|
fi |
| 13432 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
| 13433 |
< |
$as_echo "$ac_cv_search_inet_aton" >&6; } |
| 13434 |
< |
ac_res=$ac_cv_search_inet_aton |
| 13432 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 13433 |
> |
$as_echo "$ac_cv_search_socket" >&6; } |
| 13434 |
> |
ac_res=$ac_cv_search_socket |
| 13435 |
|
if test "$ac_res" != no; then : |
| 13436 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13437 |
|
|
| 13438 |
< |
fi |
| 13439 |
< |
|
| 13196 |
< |
for ac_func in inet_aton inet_ntop inet_pton |
| 13197 |
< |
do : |
| 13198 |
< |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13199 |
< |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13200 |
< |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13201 |
< |
cat >>confdefs.h <<_ACEOF |
| 13202 |
< |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13203 |
< |
_ACEOF |
| 13204 |
< |
|
| 13205 |
< |
fi |
| 13206 |
< |
done |
| 13207 |
< |
|
| 13208 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
| 13209 |
< |
#include <sys/socket.h> |
| 13210 |
< |
#include <netdb.h> |
| 13211 |
< |
|
| 13212 |
< |
" |
| 13213 |
< |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
| 13214 |
< |
|
| 13215 |
< |
cat >>confdefs.h <<_ACEOF |
| 13216 |
< |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
| 13217 |
< |
_ACEOF |
| 13218 |
< |
|
| 13219 |
< |
|
| 13220 |
< |
fi |
| 13221 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
| 13222 |
< |
#include <sys/socket.h> |
| 13223 |
< |
#include <netdb.h> |
| 13224 |
< |
|
| 13225 |
< |
" |
| 13226 |
< |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
| 13227 |
< |
|
| 13228 |
< |
cat >>confdefs.h <<_ACEOF |
| 13229 |
< |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
| 13230 |
< |
_ACEOF |
| 13231 |
< |
|
| 13232 |
< |
|
| 13233 |
< |
fi |
| 13234 |
< |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
| 13235 |
< |
#include <sys/socket.h> |
| 13236 |
< |
#include <netdb.h> |
| 13237 |
< |
|
| 13238 |
< |
" |
| 13239 |
< |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
| 13240 |
< |
|
| 13241 |
< |
cat >>confdefs.h <<_ACEOF |
| 13242 |
< |
#define HAVE_STRUCT_ADDRINFO 1 |
| 13243 |
< |
_ACEOF |
| 13244 |
< |
|
| 13245 |
< |
|
| 13246 |
< |
fi |
| 13247 |
< |
|
| 13248 |
< |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
| 13249 |
< |
<sys/socket.h> |
| 13250 |
< |
" |
| 13251 |
< |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
| 13252 |
< |
|
| 13253 |
< |
cat >>confdefs.h <<_ACEOF |
| 13254 |
< |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
| 13255 |
< |
_ACEOF |
| 13256 |
< |
|
| 13257 |
< |
|
| 13258 |
< |
fi |
| 13259 |
< |
|
| 13260 |
< |
|
| 13261 |
< |
|
| 13262 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13263 |
< |
" |
| 13264 |
< |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13265 |
< |
|
| 13266 |
< |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13267 |
< |
|
| 13438 |
> |
else |
| 13439 |
> |
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13440 |
|
fi |
| 13441 |
|
|
| 13442 |
|
|
| 13693 |
|
|
| 13694 |
|
|
| 13695 |
|
|
| 13524 |
– |
|
| 13525 |
– |
|
| 13696 |
|
# Checks for header files. |
| 13697 |
|
|
| 13698 |
|
|
| 13784 |
|
fi |
| 13785 |
|
|
| 13786 |
|
|
| 13787 |
< |
# Check whether --enable-libpcre was given. |
| 13788 |
< |
if test "${enable_libpcre+set}" = set; then : |
| 13789 |
< |
enableval=$enable_libpcre; |
| 13790 |
< |
else |
| 13791 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 13792 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 13793 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 13794 |
< |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 13795 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13787 |
> |
# Check whether --enable-libgeoip was given. |
| 13788 |
> |
if test "${enable_libgeoip+set}" = set; then : |
| 13789 |
> |
enableval=$enable_libgeoip; |
| 13790 |
> |
else |
| 13791 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 13792 |
> |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 13793 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13794 |
> |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
| 13795 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13796 |
|
$as_echo_n "(cached) " >&6 |
| 13797 |
|
else |
| 13798 |
|
ac_func_search_save_LIBS=$LIBS |
| 13805 |
|
#ifdef __cplusplus |
| 13806 |
|
extern "C" |
| 13807 |
|
#endif |
| 13808 |
< |
char pcre_study (); |
| 13808 |
> |
char GeoIP_id_by_ipnum_v6_gl (); |
| 13809 |
|
int |
| 13810 |
|
main () |
| 13811 |
|
{ |
| 13812 |
< |
return pcre_study (); |
| 13812 |
> |
return GeoIP_id_by_ipnum_v6_gl (); |
| 13813 |
|
; |
| 13814 |
|
return 0; |
| 13815 |
|
} |
| 13816 |
|
_ACEOF |
| 13817 |
< |
for ac_lib in '' pcre; do |
| 13817 |
> |
for ac_lib in '' GeoIP; do |
| 13818 |
|
if test -z "$ac_lib"; then |
| 13819 |
|
ac_res="none required" |
| 13820 |
|
else |
| 13822 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13823 |
|
fi |
| 13824 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13825 |
< |
ac_cv_search_pcre_study=$ac_res |
| 13825 |
> |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
| 13826 |
|
fi |
| 13827 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13828 |
|
conftest$ac_exeext |
| 13829 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13829 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13830 |
|
break |
| 13831 |
|
fi |
| 13832 |
|
done |
| 13833 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13833 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13834 |
|
|
| 13835 |
|
else |
| 13836 |
< |
ac_cv_search_pcre_study=no |
| 13836 |
> |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
| 13837 |
|
fi |
| 13838 |
|
rm conftest.$ac_ext |
| 13839 |
|
LIBS=$ac_func_search_save_LIBS |
| 13840 |
|
fi |
| 13841 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 13842 |
< |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13843 |
< |
ac_res=$ac_cv_search_pcre_study |
| 13841 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13842 |
> |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
| 13843 |
> |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
| 13844 |
|
if test "$ac_res" != no; then : |
| 13845 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13846 |
|
|
| 13847 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 13678 |
< |
|
| 13679 |
< |
fi |
| 13680 |
< |
|
| 13681 |
< |
fi |
| 13682 |
< |
|
| 13683 |
< |
|
| 13684 |
< |
fi |
| 13685 |
< |
|
| 13686 |
< |
|
| 13687 |
< |
# Check whether --enable-openssl was given. |
| 13688 |
< |
if test "${enable_openssl+set}" = set; then : |
| 13689 |
< |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 13690 |
< |
else |
| 13691 |
< |
cf_enable_openssl="auto" |
| 13692 |
< |
fi |
| 13693 |
< |
|
| 13694 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
| 13695 |
< |
$as_echo_n "checking for OpenSSL... " >&6; } |
| 13696 |
< |
if test "$cf_enable_openssl" != "no"; then |
| 13697 |
< |
cf_openssl_basedir="" |
| 13698 |
< |
if test "$cf_enable_openssl" != "auto" && |
| 13699 |
< |
test "$cf_enable_openssl" != "yes"; then |
| 13700 |
< |
cf_openssl_basedir="${cf_enable_openssl}" |
| 13701 |
< |
else |
| 13702 |
< |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 13703 |
< |
/opt /opt/openssl /usr/local/openssl; do |
| 13704 |
< |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 13705 |
< |
cf_openssl_basedir="${dirs}" |
| 13706 |
< |
break |
| 13707 |
< |
fi |
| 13708 |
< |
done |
| 13709 |
< |
unset dirs |
| 13710 |
< |
fi |
| 13711 |
< |
|
| 13712 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 13713 |
< |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 13714 |
< |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 13715 |
< |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 13716 |
< |
else |
| 13717 |
< |
cf_openssl_basedir="" |
| 13718 |
< |
fi |
| 13719 |
< |
else |
| 13720 |
< |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 13721 |
< |
cf_openssl_basedir="/usr" |
| 13722 |
< |
fi |
| 13723 |
< |
fi |
| 13724 |
< |
|
| 13725 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 13726 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 13727 |
< |
$as_echo "$cf_openssl_basedir" >&6; } |
| 13728 |
< |
cf_enable_openssl="yes" |
| 13729 |
< |
else |
| 13730 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 13731 |
< |
$as_echo "not found. Please check your path." >&6; } |
| 13732 |
< |
cf_enable_openssl="no" |
| 13733 |
< |
fi |
| 13734 |
< |
unset cf_openssl_basedir |
| 13735 |
< |
else |
| 13736 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 13737 |
< |
$as_echo "disabled" >&6; } |
| 13738 |
< |
fi |
| 13739 |
< |
|
| 13740 |
< |
if test "$cf_enable_openssl" != "no"; then : |
| 13741 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 13742 |
< |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 13743 |
< |
if test "$cross_compiling" = yes; then : |
| 13744 |
< |
cf_openssl_version_ok=no |
| 13745 |
< |
else |
| 13746 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13747 |
< |
/* end confdefs.h. */ |
| 13748 |
< |
|
| 13749 |
< |
|
| 13750 |
< |
#include <openssl/opensslv.h> |
| 13751 |
< |
#include <stdlib.h> |
| 13752 |
< |
int |
| 13753 |
< |
main () |
| 13754 |
< |
{ |
| 13755 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 13756 |
< |
; |
| 13757 |
< |
return 0; |
| 13758 |
< |
} |
| 13759 |
< |
_ACEOF |
| 13760 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 13761 |
< |
cf_openssl_version_ok=yes |
| 13762 |
< |
else |
| 13763 |
< |
cf_openssl_version_ok=no |
| 13764 |
< |
fi |
| 13765 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13766 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13767 |
< |
fi |
| 13768 |
< |
|
| 13769 |
< |
|
| 13770 |
< |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 13771 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 13772 |
< |
$as_echo "found" >&6; } |
| 13773 |
< |
|
| 13774 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 13775 |
< |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 13776 |
< |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 13777 |
< |
$as_echo_n "(cached) " >&6 |
| 13778 |
< |
else |
| 13779 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 13780 |
< |
LIBS="-lssl $LIBS" |
| 13781 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13782 |
< |
/* end confdefs.h. */ |
| 13783 |
< |
|
| 13784 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 13785 |
< |
Use char because int might match the return type of a GCC |
| 13786 |
< |
builtin and then its argument prototype would still apply. */ |
| 13787 |
< |
#ifdef __cplusplus |
| 13788 |
< |
extern "C" |
| 13789 |
< |
#endif |
| 13790 |
< |
char SSL_connect (); |
| 13791 |
< |
int |
| 13792 |
< |
main () |
| 13793 |
< |
{ |
| 13794 |
< |
return SSL_connect (); |
| 13795 |
< |
; |
| 13796 |
< |
return 0; |
| 13797 |
< |
} |
| 13798 |
< |
_ACEOF |
| 13799 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 13800 |
< |
ac_cv_lib_ssl_SSL_connect=yes |
| 13801 |
< |
else |
| 13802 |
< |
ac_cv_lib_ssl_SSL_connect=no |
| 13803 |
< |
fi |
| 13804 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 13805 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 13806 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 13807 |
< |
fi |
| 13808 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 13809 |
< |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 13810 |
< |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 13811 |
< |
cat >>confdefs.h <<_ACEOF |
| 13812 |
< |
#define HAVE_LIBSSL 1 |
| 13813 |
< |
_ACEOF |
| 13814 |
< |
|
| 13815 |
< |
LIBS="-lssl $LIBS" |
| 13816 |
< |
|
| 13817 |
< |
fi |
| 13818 |
< |
|
| 13819 |
< |
if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then : |
| 13820 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 13821 |
< |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 13822 |
< |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 13823 |
< |
$as_echo_n "(cached) " >&6 |
| 13824 |
< |
else |
| 13825 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 13826 |
< |
LIBS="-lcrypto $LIBS" |
| 13827 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13828 |
< |
/* end confdefs.h. */ |
| 13829 |
< |
|
| 13830 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 13831 |
< |
Use char because int might match the return type of a GCC |
| 13832 |
< |
builtin and then its argument prototype would still apply. */ |
| 13833 |
< |
#ifdef __cplusplus |
| 13834 |
< |
extern "C" |
| 13835 |
< |
#endif |
| 13836 |
< |
char RSA_free (); |
| 13837 |
< |
int |
| 13838 |
< |
main () |
| 13839 |
< |
{ |
| 13840 |
< |
return RSA_free (); |
| 13841 |
< |
; |
| 13842 |
< |
return 0; |
| 13843 |
< |
} |
| 13844 |
< |
_ACEOF |
| 13845 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 13846 |
< |
ac_cv_lib_crypto_RSA_free=yes |
| 13847 |
< |
else |
| 13848 |
< |
ac_cv_lib_crypto_RSA_free=no |
| 13849 |
< |
fi |
| 13850 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 13851 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 13852 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 13853 |
< |
fi |
| 13854 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 13855 |
< |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 13856 |
< |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 13857 |
< |
cat >>confdefs.h <<_ACEOF |
| 13858 |
< |
#define HAVE_LIBCRYPTO 1 |
| 13859 |
< |
_ACEOF |
| 13860 |
< |
|
| 13861 |
< |
LIBS="-lcrypto $LIBS" |
| 13847 |
> |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 13848 |
|
|
| 13849 |
|
fi |
| 13850 |
|
|
| 13851 |
|
fi |
| 13852 |
|
|
| 13867 |
– |
else |
| 13868 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 13869 |
– |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 13870 |
– |
cf_enable_openssl="no" |
| 13871 |
– |
fi |
| 13872 |
– |
fi |
| 13853 |
|
|
| 13874 |
– |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
| 13875 |
– |
ENABLE_SSL_TRUE= |
| 13876 |
– |
ENABLE_SSL_FALSE='#' |
| 13877 |
– |
else |
| 13878 |
– |
ENABLE_SSL_TRUE='#' |
| 13879 |
– |
ENABLE_SSL_FALSE= |
| 13854 |
|
fi |
| 13855 |
|
|
| 13856 |
|
|
| 13883 |
– |
|
| 13857 |
|
# Check whether --enable-assert was given. |
| 13858 |
|
if test "${enable_assert+set}" = set; then : |
| 13859 |
|
enableval=$enable_assert; assert=$enableval |
| 13869 |
|
fi |
| 13870 |
|
|
| 13871 |
|
|
| 13872 |
< |
# Check whether --enable-small-net was given. |
| 13900 |
< |
if test "${enable_small_net+set}" = set; then : |
| 13901 |
< |
enableval=$enable_small_net; small_net=$enableval |
| 13902 |
< |
else |
| 13903 |
< |
small_net=no |
| 13904 |
< |
fi |
| 13905 |
< |
|
| 13906 |
< |
|
| 13907 |
< |
if test "$small_net" = "yes"; then : |
| 13908 |
< |
|
| 13909 |
< |
|
| 13910 |
< |
$as_echo "#define NICKNAMEHISTORYLENGTH 2048" >>confdefs.h |
| 13911 |
< |
|
| 13912 |
< |
|
| 13913 |
< |
$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
| 13914 |
< |
|
| 13915 |
< |
|
| 13916 |
< |
$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
| 13917 |
< |
|
| 13918 |
< |
|
| 13919 |
< |
$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
| 13920 |
< |
|
| 13921 |
< |
|
| 13922 |
< |
$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
| 13923 |
< |
|
| 13924 |
< |
|
| 13925 |
< |
$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
| 13926 |
< |
|
| 13927 |
< |
|
| 13928 |
< |
$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
| 13872 |
> |
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 13873 |
|
|
| 13874 |
|
|
| 13875 |
< |
$as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h |
| 13875 |
> |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h |
| 13876 |
|
|
| 13877 |
|
|
| 13878 |
< |
$as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h |
| 13878 |
> |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h |
| 13879 |
|
|
| 13880 |
|
|
| 13881 |
< |
$as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h |
| 13881 |
> |
$as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h |
| 13882 |
|
|
| 13939 |
– |
else |
| 13940 |
– |
|
| 13941 |
– |
|
| 13942 |
– |
|
| 13943 |
– |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
| 13883 |
|
|
| 13884 |
+ |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h |
| 13885 |
|
|
| 13946 |
– |
$as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h |
| 13886 |
|
|
| 13887 |
+ |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h |
| 13888 |
|
|
| 13949 |
– |
$as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h |
| 13889 |
|
|
| 13890 |
+ |
$as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h |
| 13891 |
|
|
| 13952 |
– |
$as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h |
| 13892 |
|
|
| 13893 |
+ |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 13894 |
|
|
| 13955 |
– |
$as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h |
| 13895 |
|
|
| 13896 |
+ |
$as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h |
| 13897 |
|
|
| 13958 |
– |
$as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h |
| 13898 |
|
|
| 13899 |
+ |
$as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h |
| 13900 |
|
|
| 13961 |
– |
$as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h |
| 13901 |
|
|
| 13902 |
+ |
$as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h |
| 13903 |
|
|
| 13964 |
– |
$as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h |
| 13904 |
|
|
| 13905 |
+ |
$as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h |
| 13906 |
|
|
| 13967 |
– |
$as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h |
| 13907 |
|
|
| 13908 |
+ |
$as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h |
| 13909 |
|
|
| 13970 |
– |
$as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h |
| 13910 |
|
|
| 13911 |
< |
fi |
| 13911 |
> |
$as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h |
| 13912 |
|
|
| 13913 |
|
|
| 13914 |
|
# Argument processing. |
| 13915 |
|
|
| 13916 |
< |
desired_iopoll_mechanism="none" |
| 13917 |
< |
# Check whether --enable-kqueue was given. |
| 13916 |
> |
desired_iopoll_mechanism="none" |
| 13917 |
> |
|
| 13918 |
> |
# Check whether --enable-kqueue was given. |
| 13919 |
|
if test "${enable_kqueue+set}" = set; then : |
| 13920 |
|
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 13921 |
|
fi |
| 13930 |
|
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 13931 |
|
fi |
| 13932 |
|
|
| 13993 |
– |
# Check whether --enable-rtsigio was given. |
| 13994 |
– |
if test "${enable_rtsigio+set}" = set; then : |
| 13995 |
– |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
| 13996 |
– |
fi |
| 13997 |
– |
|
| 13933 |
|
# Check whether --enable-poll was given. |
| 13934 |
|
if test "${enable_poll+set}" = set; then : |
| 13935 |
|
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 13936 |
|
fi |
| 13937 |
|
|
| 14003 |
– |
# Check whether --enable-select was given. |
| 14004 |
– |
if test "${enable_select+set}" = set; then : |
| 14005 |
– |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 14006 |
– |
fi |
| 13938 |
|
|
| 13939 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 13939 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 13940 |
|
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 13941 |
+ |
|
| 13942 |
|
iopoll_mechanism_none=0 |
| 13943 |
|
|
| 13944 |
|
cat >>confdefs.h <<_ACEOF |
| 13945 |
|
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 13946 |
|
_ACEOF |
| 13947 |
|
|
| 13948 |
< |
iopoll_mechanism_kqueue=1 |
| 13948 |
> |
|
| 13949 |
> |
iopoll_mechanism_kqueue=1 |
| 13950 |
|
|
| 13951 |
|
cat >>confdefs.h <<_ACEOF |
| 13952 |
|
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 14000 |
|
fi |
| 14001 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14002 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14003 |
< |
iopoll_mechanism_epoll=2 |
| 14003 |
> |
|
| 14004 |
> |
iopoll_mechanism_epoll=2 |
| 14005 |
|
|
| 14006 |
|
cat >>confdefs.h <<_ACEOF |
| 14007 |
|
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 14008 |
|
_ACEOF |
| 14009 |
|
|
| 14076 |
– |
if test "$cross_compiling" = yes; then : |
| 14077 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14078 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14079 |
– |
as_fn_error $? "cannot run test program while cross compiling |
| 14080 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 14081 |
– |
else |
| 14010 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14011 |
|
/* end confdefs.h. */ |
| 14084 |
– |
|
| 14012 |
|
#include <sys/epoll.h> |
| 14086 |
– |
#include <sys/syscall.h> |
| 14087 |
– |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
| 14088 |
– |
#if !defined(__NR_epoll_create) |
| 14089 |
– |
#if defined(__ia64__) |
| 14090 |
– |
#define __NR_epoll_create 1243 |
| 14091 |
– |
#elif defined(__x86_64__) |
| 14092 |
– |
#define __NR_epoll_create 214 |
| 14093 |
– |
#elif defined(__sparc64__) || defined(__sparc__) |
| 14094 |
– |
#define __NR_epoll_create 193 |
| 14095 |
– |
#elif defined(__s390__) || defined(__m68k__) |
| 14096 |
– |
#define __NR_epoll_create 249 |
| 14097 |
– |
#elif defined(__ppc64__) || defined(__ppc__) |
| 14098 |
– |
#define __NR_epoll_create 236 |
| 14099 |
– |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
| 14100 |
– |
#define __NR_epoll_create 224 |
| 14101 |
– |
#elif defined(__alpha__) |
| 14102 |
– |
#define __NR_epoll_create 407 |
| 14103 |
– |
#elif defined(__sh64__) |
| 14104 |
– |
#define __NR_epoll_create 282 |
| 14105 |
– |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
| 14106 |
– |
#define __NR_epoll_create 254 |
| 14107 |
– |
#else |
| 14108 |
– |
#error No system call numbers defined for epoll family. |
| 14109 |
– |
#endif |
| 14110 |
– |
#endif |
| 14111 |
– |
_syscall1(int, epoll_create, int, size) |
| 14112 |
– |
#endif |
| 14113 |
– |
|
| 14013 |
|
int |
| 14014 |
|
main () |
| 14015 |
|
{ |
| 14016 |
< |
return epoll_create(256) == -1 ? 1 : 0 |
| 14016 |
> |
epoll_create(256); |
| 14017 |
|
; |
| 14018 |
|
return 0; |
| 14019 |
|
} |
| 14020 |
|
_ACEOF |
| 14021 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14021 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14022 |
|
is_epoll_mechanism_available="yes" |
| 14023 |
|
else |
| 14024 |
|
is_epoll_mechanism_available="no" |
| 14025 |
|
fi |
| 14026 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14027 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14129 |
< |
fi |
| 14026 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 14027 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14028 |
|
|
| 14029 |
< |
iopoll_mechanism_devpoll=3 |
| 14029 |
> |
iopoll_mechanism_devpoll=3 |
| 14030 |
|
|
| 14031 |
|
cat >>confdefs.h <<_ACEOF |
| 14032 |
|
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 14076 |
|
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14077 |
|
|
| 14078 |
|
fi |
| 14181 |
– |
iopoll_mechanism_rtsigio=4 |
| 14182 |
– |
|
| 14183 |
– |
cat >>confdefs.h <<_ACEOF |
| 14184 |
– |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
| 14185 |
– |
_ACEOF |
| 14079 |
|
|
| 14080 |
< |
if test "$cross_compiling" = yes; then : |
| 14188 |
< |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14189 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14190 |
< |
as_fn_error $? "cannot run test program while cross compiling |
| 14191 |
< |
See \`config.log' for more details" "$LINENO" 5; } |
| 14192 |
< |
else |
| 14193 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14194 |
< |
/* end confdefs.h. */ |
| 14195 |
< |
|
| 14196 |
< |
#define _GNU_SOURCE |
| 14197 |
< |
#include <fcntl.h> |
| 14198 |
< |
static unsigned int have_f_setsig = 0; |
| 14199 |
< |
|
| 14200 |
< |
int |
| 14201 |
< |
main () |
| 14202 |
< |
{ |
| 14203 |
< |
|
| 14204 |
< |
#ifdef F_SETSIG |
| 14205 |
< |
have_f_setsig = 1; |
| 14206 |
< |
#endif |
| 14207 |
< |
return have_f_setsig == 0; |
| 14208 |
< |
|
| 14209 |
< |
; |
| 14210 |
< |
return 0; |
| 14211 |
< |
} |
| 14212 |
< |
_ACEOF |
| 14213 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14214 |
< |
is_rtsigio_mechanism_available="yes" |
| 14215 |
< |
else |
| 14216 |
< |
is_rtsigio_mechanism_available="no" |
| 14217 |
< |
fi |
| 14218 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14219 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14220 |
< |
fi |
| 14221 |
< |
|
| 14222 |
< |
iopoll_mechanism_poll=5 |
| 14080 |
> |
iopoll_mechanism_poll=4 |
| 14081 |
|
|
| 14082 |
|
cat >>confdefs.h <<_ACEOF |
| 14083 |
|
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14131 |
|
fi |
| 14132 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14133 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14276 |
– |
iopoll_mechanism_select=6 |
| 14277 |
– |
|
| 14278 |
– |
cat >>confdefs.h <<_ACEOF |
| 14279 |
– |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14280 |
– |
_ACEOF |
| 14281 |
– |
|
| 14282 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14283 |
– |
/* end confdefs.h. */ |
| 14284 |
– |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14285 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14286 |
– |
#define select innocuous_select |
| 14287 |
– |
|
| 14288 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 14289 |
– |
which can conflict with char select (); below. |
| 14290 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14291 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 14292 |
– |
|
| 14293 |
– |
#ifdef __STDC__ |
| 14294 |
– |
# include <limits.h> |
| 14295 |
– |
#else |
| 14296 |
– |
# include <assert.h> |
| 14297 |
– |
#endif |
| 14134 |
|
|
| 14135 |
< |
#undef select |
| 14136 |
< |
|
| 14301 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 14302 |
< |
Use char because int might match the return type of a GCC |
| 14303 |
< |
builtin and then its argument prototype would still apply. */ |
| 14304 |
< |
#ifdef __cplusplus |
| 14305 |
< |
extern "C" |
| 14306 |
< |
#endif |
| 14307 |
< |
char select (); |
| 14308 |
< |
/* The GNU C library defines this for functions which it implements |
| 14309 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14310 |
< |
something starting with __ and the normal name is an alias. */ |
| 14311 |
< |
#if defined __stub_select || defined __stub___select |
| 14312 |
< |
choke me |
| 14313 |
< |
#endif |
| 14314 |
< |
|
| 14315 |
< |
int |
| 14316 |
< |
main () |
| 14317 |
< |
{ |
| 14318 |
< |
return select (); |
| 14319 |
< |
; |
| 14320 |
< |
return 0; |
| 14321 |
< |
} |
| 14322 |
< |
_ACEOF |
| 14323 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14324 |
< |
is_select_mechanism_available="yes" |
| 14325 |
< |
else |
| 14326 |
< |
is_select_mechanism_available="no" |
| 14327 |
< |
fi |
| 14328 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14329 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 14330 |
< |
optimal_iopoll_mechanism="none" |
| 14331 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
| 14135 |
> |
optimal_iopoll_mechanism="none" |
| 14136 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
| 14137 |
|
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14138 |
|
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14139 |
|
optimal_iopoll_mechanism="$mechanism" |
| 14140 |
|
break |
| 14141 |
|
fi |
| 14142 |
|
done |
| 14143 |
< |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14143 |
> |
|
| 14144 |
> |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14145 |
|
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14146 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14147 |
|
$as_echo "none" >&6; } |
| 14163 |
|
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14164 |
|
fi |
| 14165 |
|
fi |
| 14166 |
< |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14166 |
> |
|
| 14167 |
> |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14168 |
|
|
| 14169 |
|
cat >>confdefs.h <<_ACEOF |
| 14170 |
|
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 14172 |
|
|
| 14173 |
|
|
| 14174 |
|
|
| 14175 |
+ |
# Check whether --enable-debugging was given. |
| 14176 |
+ |
if test "${enable_debugging+set}" = set; then : |
| 14177 |
+ |
enableval=$enable_debugging; debugging="$enableval" |
| 14178 |
+ |
else |
| 14179 |
+ |
debugging="no" |
| 14180 |
+ |
fi |
| 14181 |
+ |
|
| 14182 |
+ |
if test "$debugging" = "yes" ; then |
| 14183 |
+ |
CFLAGS="-Wall -g -O0" |
| 14184 |
+ |
fi |
| 14185 |
+ |
|
| 14186 |
|
|
| 14187 |
< |
# Check whether --with-nicklen was given. |
| 14188 |
< |
if test "${with_nicklen+set}" = set; then : |
| 14189 |
< |
withval=$with_nicklen; nicklen="$withval" |
| 14187 |
> |
# Check whether --enable-warnings was given. |
| 14188 |
> |
if test "${enable_warnings+set}" = set; then : |
| 14189 |
> |
enableval=$enable_warnings; warnings="$enableval" |
| 14190 |
|
else |
| 14191 |
< |
nicklen="9" |
| 14191 |
> |
warnings="no" |
| 14192 |
|
fi |
| 14193 |
|
|
| 14194 |
|
|
| 14195 |
< |
cat >>confdefs.h <<_ACEOF |
| 14196 |
< |
#define NICKLEN ($nicklen) |
| 14195 |
> |
if test "$warnings" = "yes" ; then |
| 14196 |
> |
|
| 14197 |
> |
|
| 14198 |
> |
|
| 14199 |
> |
|
| 14200 |
> |
for flag in -Wall; do |
| 14201 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14202 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14203 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14204 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14205 |
> |
$as_echo_n "(cached) " >&6 |
| 14206 |
> |
else |
| 14207 |
> |
|
| 14208 |
> |
ax_check_save_flags=$CFLAGS |
| 14209 |
> |
CFLAGS="$CFLAGS $flag" |
| 14210 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14211 |
> |
/* end confdefs.h. */ |
| 14212 |
> |
|
| 14213 |
> |
int |
| 14214 |
> |
main () |
| 14215 |
> |
{ |
| 14216 |
> |
|
| 14217 |
> |
; |
| 14218 |
> |
return 0; |
| 14219 |
> |
} |
| 14220 |
|
_ACEOF |
| 14221 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14222 |
+ |
eval "$as_CACHEVAR=yes" |
| 14223 |
+ |
else |
| 14224 |
+ |
eval "$as_CACHEVAR=no" |
| 14225 |
+ |
fi |
| 14226 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14227 |
+ |
CFLAGS=$ax_check_save_flags |
| 14228 |
+ |
fi |
| 14229 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14230 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14231 |
+ |
$as_echo "$ac_res" >&6; } |
| 14232 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14233 |
+ |
if ${CFLAGS+:} false; then : |
| 14234 |
+ |
case " $CFLAGS " in |
| 14235 |
+ |
*" $flag "*) |
| 14236 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14237 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 14238 |
+ |
ac_status=$? |
| 14239 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14240 |
+ |
test $ac_status = 0; } |
| 14241 |
+ |
;; |
| 14242 |
+ |
*) |
| 14243 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14244 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14245 |
+ |
ac_status=$? |
| 14246 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14247 |
+ |
test $ac_status = 0; } |
| 14248 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14249 |
+ |
;; |
| 14250 |
+ |
esac |
| 14251 |
+ |
else |
| 14252 |
+ |
CFLAGS="$flag" |
| 14253 |
+ |
fi |
| 14254 |
+ |
|
| 14255 |
+ |
else |
| 14256 |
+ |
: |
| 14257 |
+ |
fi |
| 14258 |
+ |
|
| 14259 |
+ |
done |
| 14260 |
|
|
| 14261 |
|
|
| 14262 |
|
|
| 14263 |
|
|
| 14264 |
< |
# Check whether --with-topiclen was given. |
| 14265 |
< |
if test "${with_topiclen+set}" = set; then : |
| 14266 |
< |
withval=$with_topiclen; topiclen="$withval" |
| 14264 |
> |
|
| 14265 |
> |
for flag in -Wbad-function-cast; do |
| 14266 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14267 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14268 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14269 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14270 |
> |
$as_echo_n "(cached) " >&6 |
| 14271 |
|
else |
| 14272 |
< |
topiclen="160" |
| 14272 |
> |
|
| 14273 |
> |
ax_check_save_flags=$CFLAGS |
| 14274 |
> |
CFLAGS="$CFLAGS $flag" |
| 14275 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14276 |
> |
/* end confdefs.h. */ |
| 14277 |
> |
|
| 14278 |
> |
int |
| 14279 |
> |
main () |
| 14280 |
> |
{ |
| 14281 |
> |
|
| 14282 |
> |
; |
| 14283 |
> |
return 0; |
| 14284 |
> |
} |
| 14285 |
> |
_ACEOF |
| 14286 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14287 |
> |
eval "$as_CACHEVAR=yes" |
| 14288 |
> |
else |
| 14289 |
> |
eval "$as_CACHEVAR=no" |
| 14290 |
> |
fi |
| 14291 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14292 |
> |
CFLAGS=$ax_check_save_flags |
| 14293 |
> |
fi |
| 14294 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14295 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14296 |
> |
$as_echo "$ac_res" >&6; } |
| 14297 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14298 |
> |
if ${CFLAGS+:} false; then : |
| 14299 |
> |
case " $CFLAGS " in |
| 14300 |
> |
*" $flag "*) |
| 14301 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14302 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14303 |
> |
ac_status=$? |
| 14304 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14305 |
> |
test $ac_status = 0; } |
| 14306 |
> |
;; |
| 14307 |
> |
*) |
| 14308 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14309 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14310 |
> |
ac_status=$? |
| 14311 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14312 |
> |
test $ac_status = 0; } |
| 14313 |
> |
CFLAGS="$CFLAGS $flag" |
| 14314 |
> |
;; |
| 14315 |
> |
esac |
| 14316 |
> |
else |
| 14317 |
> |
CFLAGS="$flag" |
| 14318 |
|
fi |
| 14319 |
|
|
| 14320 |
+ |
else |
| 14321 |
+ |
: |
| 14322 |
+ |
fi |
| 14323 |
|
|
| 14324 |
< |
cat >>confdefs.h <<_ACEOF |
| 14325 |
< |
#define TOPICLEN ($topiclen) |
| 14324 |
> |
done |
| 14325 |
> |
|
| 14326 |
> |
|
| 14327 |
> |
|
| 14328 |
> |
|
| 14329 |
> |
|
| 14330 |
> |
for flag in -Wcast-align; do |
| 14331 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14332 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14333 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14334 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14335 |
> |
$as_echo_n "(cached) " >&6 |
| 14336 |
> |
else |
| 14337 |
> |
|
| 14338 |
> |
ax_check_save_flags=$CFLAGS |
| 14339 |
> |
CFLAGS="$CFLAGS $flag" |
| 14340 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14341 |
> |
/* end confdefs.h. */ |
| 14342 |
> |
|
| 14343 |
> |
int |
| 14344 |
> |
main () |
| 14345 |
> |
{ |
| 14346 |
> |
|
| 14347 |
> |
; |
| 14348 |
> |
return 0; |
| 14349 |
> |
} |
| 14350 |
|
_ACEOF |
| 14351 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14352 |
+ |
eval "$as_CACHEVAR=yes" |
| 14353 |
+ |
else |
| 14354 |
+ |
eval "$as_CACHEVAR=no" |
| 14355 |
+ |
fi |
| 14356 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14357 |
+ |
CFLAGS=$ax_check_save_flags |
| 14358 |
+ |
fi |
| 14359 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14360 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14361 |
+ |
$as_echo "$ac_res" >&6; } |
| 14362 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14363 |
+ |
if ${CFLAGS+:} false; then : |
| 14364 |
+ |
case " $CFLAGS " in |
| 14365 |
+ |
*" $flag "*) |
| 14366 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14367 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 14368 |
+ |
ac_status=$? |
| 14369 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14370 |
+ |
test $ac_status = 0; } |
| 14371 |
+ |
;; |
| 14372 |
+ |
*) |
| 14373 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14374 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14375 |
+ |
ac_status=$? |
| 14376 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14377 |
+ |
test $ac_status = 0; } |
| 14378 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14379 |
+ |
;; |
| 14380 |
+ |
esac |
| 14381 |
+ |
else |
| 14382 |
+ |
CFLAGS="$flag" |
| 14383 |
+ |
fi |
| 14384 |
+ |
|
| 14385 |
+ |
else |
| 14386 |
+ |
: |
| 14387 |
+ |
fi |
| 14388 |
+ |
|
| 14389 |
+ |
done |
| 14390 |
+ |
|
| 14391 |
+ |
|
| 14392 |
|
|
| 14393 |
|
|
| 14394 |
|
|
| 14395 |
< |
# Check whether --enable-halfops was given. |
| 14396 |
< |
if test "${enable_halfops+set}" = set; then : |
| 14397 |
< |
enableval=$enable_halfops; halfops="$enableval" |
| 14395 |
> |
for flag in -Wcast-qual; do |
| 14396 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14397 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14398 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14399 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14400 |
> |
$as_echo_n "(cached) " >&6 |
| 14401 |
|
else |
| 14402 |
< |
halfops="no" |
| 14402 |
> |
|
| 14403 |
> |
ax_check_save_flags=$CFLAGS |
| 14404 |
> |
CFLAGS="$CFLAGS $flag" |
| 14405 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14406 |
> |
/* end confdefs.h. */ |
| 14407 |
> |
|
| 14408 |
> |
int |
| 14409 |
> |
main () |
| 14410 |
> |
{ |
| 14411 |
> |
|
| 14412 |
> |
; |
| 14413 |
> |
return 0; |
| 14414 |
> |
} |
| 14415 |
> |
_ACEOF |
| 14416 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14417 |
> |
eval "$as_CACHEVAR=yes" |
| 14418 |
> |
else |
| 14419 |
> |
eval "$as_CACHEVAR=no" |
| 14420 |
> |
fi |
| 14421 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14422 |
> |
CFLAGS=$ax_check_save_flags |
| 14423 |
> |
fi |
| 14424 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14425 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14426 |
> |
$as_echo "$ac_res" >&6; } |
| 14427 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14428 |
> |
if ${CFLAGS+:} false; then : |
| 14429 |
> |
case " $CFLAGS " in |
| 14430 |
> |
*" $flag "*) |
| 14431 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14432 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14433 |
> |
ac_status=$? |
| 14434 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14435 |
> |
test $ac_status = 0; } |
| 14436 |
> |
;; |
| 14437 |
> |
*) |
| 14438 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14439 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14440 |
> |
ac_status=$? |
| 14441 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14442 |
> |
test $ac_status = 0; } |
| 14443 |
> |
CFLAGS="$CFLAGS $flag" |
| 14444 |
> |
;; |
| 14445 |
> |
esac |
| 14446 |
> |
else |
| 14447 |
> |
CFLAGS="$flag" |
| 14448 |
|
fi |
| 14449 |
|
|
| 14450 |
< |
if test "$halfops" = "yes" ; then |
| 14450 |
> |
else |
| 14451 |
> |
: |
| 14452 |
> |
fi |
| 14453 |
|
|
| 14454 |
< |
$as_echo "#define HALFOPS 1" >>confdefs.h |
| 14454 |
> |
done |
| 14455 |
|
|
| 14409 |
– |
fi |
| 14456 |
|
|
| 14457 |
|
|
| 14458 |
< |
# Check whether --enable-debugging was given. |
| 14459 |
< |
if test "${enable_debugging+set}" = set; then : |
| 14460 |
< |
enableval=$enable_debugging; debugging="$enableval" |
| 14458 |
> |
|
| 14459 |
> |
|
| 14460 |
> |
for flag in -Wclobbered; do |
| 14461 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14462 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14463 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14464 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14465 |
> |
$as_echo_n "(cached) " >&6 |
| 14466 |
|
else |
| 14467 |
< |
debugging="no" |
| 14467 |
> |
|
| 14468 |
> |
ax_check_save_flags=$CFLAGS |
| 14469 |
> |
CFLAGS="$CFLAGS $flag" |
| 14470 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14471 |
> |
/* end confdefs.h. */ |
| 14472 |
> |
|
| 14473 |
> |
int |
| 14474 |
> |
main () |
| 14475 |
> |
{ |
| 14476 |
> |
|
| 14477 |
> |
; |
| 14478 |
> |
return 0; |
| 14479 |
> |
} |
| 14480 |
> |
_ACEOF |
| 14481 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14482 |
> |
eval "$as_CACHEVAR=yes" |
| 14483 |
> |
else |
| 14484 |
> |
eval "$as_CACHEVAR=no" |
| 14485 |
> |
fi |
| 14486 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14487 |
> |
CFLAGS=$ax_check_save_flags |
| 14488 |
> |
fi |
| 14489 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14490 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14491 |
> |
$as_echo "$ac_res" >&6; } |
| 14492 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14493 |
> |
if ${CFLAGS+:} false; then : |
| 14494 |
> |
case " $CFLAGS " in |
| 14495 |
> |
*" $flag "*) |
| 14496 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14497 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14498 |
> |
ac_status=$? |
| 14499 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14500 |
> |
test $ac_status = 0; } |
| 14501 |
> |
;; |
| 14502 |
> |
*) |
| 14503 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14504 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14505 |
> |
ac_status=$? |
| 14506 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14507 |
> |
test $ac_status = 0; } |
| 14508 |
> |
CFLAGS="$CFLAGS $flag" |
| 14509 |
> |
;; |
| 14510 |
> |
esac |
| 14511 |
> |
else |
| 14512 |
> |
CFLAGS="$flag" |
| 14513 |
|
fi |
| 14514 |
|
|
| 14515 |
< |
if test "$debugging" = "yes" ; then |
| 14515 |
> |
else |
| 14516 |
> |
: |
| 14517 |
> |
fi |
| 14518 |
|
|
| 14519 |
< |
$as_echo "#define DEBUG 1" >>confdefs.h |
| 14519 |
> |
done |
| 14520 |
|
|
| 14423 |
– |
CFLAGS="-Wall -g -O0" |
| 14424 |
– |
else |
| 14521 |
|
|
| 14522 |
< |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 14522 |
> |
|
| 14523 |
> |
|
| 14524 |
> |
|
| 14525 |
> |
for flag in -Wempty-body; do |
| 14526 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14527 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14528 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14529 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14530 |
> |
$as_echo_n "(cached) " >&6 |
| 14531 |
> |
else |
| 14532 |
> |
|
| 14533 |
> |
ax_check_save_flags=$CFLAGS |
| 14534 |
> |
CFLAGS="$CFLAGS $flag" |
| 14535 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14536 |
> |
/* end confdefs.h. */ |
| 14537 |
> |
|
| 14538 |
> |
int |
| 14539 |
> |
main () |
| 14540 |
> |
{ |
| 14541 |
> |
|
| 14542 |
> |
; |
| 14543 |
> |
return 0; |
| 14544 |
> |
} |
| 14545 |
> |
_ACEOF |
| 14546 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14547 |
> |
eval "$as_CACHEVAR=yes" |
| 14548 |
> |
else |
| 14549 |
> |
eval "$as_CACHEVAR=no" |
| 14550 |
> |
fi |
| 14551 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14552 |
> |
CFLAGS=$ax_check_save_flags |
| 14553 |
> |
fi |
| 14554 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14555 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14556 |
> |
$as_echo "$ac_res" >&6; } |
| 14557 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14558 |
> |
if ${CFLAGS+:} false; then : |
| 14559 |
> |
case " $CFLAGS " in |
| 14560 |
> |
*" $flag "*) |
| 14561 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14562 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14563 |
> |
ac_status=$? |
| 14564 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14565 |
> |
test $ac_status = 0; } |
| 14566 |
> |
;; |
| 14567 |
> |
*) |
| 14568 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14569 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14570 |
> |
ac_status=$? |
| 14571 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14572 |
> |
test $ac_status = 0; } |
| 14573 |
> |
CFLAGS="$CFLAGS $flag" |
| 14574 |
> |
;; |
| 14575 |
> |
esac |
| 14576 |
> |
else |
| 14577 |
> |
CFLAGS="$flag" |
| 14578 |
> |
fi |
| 14579 |
> |
|
| 14580 |
> |
else |
| 14581 |
> |
: |
| 14582 |
> |
fi |
| 14583 |
> |
|
| 14584 |
> |
done |
| 14585 |
> |
|
| 14586 |
> |
|
| 14587 |
> |
|
| 14588 |
> |
|
| 14589 |
> |
|
| 14590 |
> |
for flag in -Wignored-qualifiers; do |
| 14591 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14592 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14593 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14594 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14595 |
> |
$as_echo_n "(cached) " >&6 |
| 14596 |
> |
else |
| 14597 |
> |
|
| 14598 |
> |
ax_check_save_flags=$CFLAGS |
| 14599 |
> |
CFLAGS="$CFLAGS $flag" |
| 14600 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14601 |
> |
/* end confdefs.h. */ |
| 14602 |
> |
|
| 14603 |
> |
int |
| 14604 |
> |
main () |
| 14605 |
> |
{ |
| 14606 |
> |
|
| 14607 |
> |
; |
| 14608 |
> |
return 0; |
| 14609 |
> |
} |
| 14610 |
> |
_ACEOF |
| 14611 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14612 |
> |
eval "$as_CACHEVAR=yes" |
| 14613 |
> |
else |
| 14614 |
> |
eval "$as_CACHEVAR=no" |
| 14615 |
> |
fi |
| 14616 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14617 |
> |
CFLAGS=$ax_check_save_flags |
| 14618 |
> |
fi |
| 14619 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14620 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14621 |
> |
$as_echo "$ac_res" >&6; } |
| 14622 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14623 |
> |
if ${CFLAGS+:} false; then : |
| 14624 |
> |
case " $CFLAGS " in |
| 14625 |
> |
*" $flag "*) |
| 14626 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14627 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14628 |
> |
ac_status=$? |
| 14629 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14630 |
> |
test $ac_status = 0; } |
| 14631 |
> |
;; |
| 14632 |
> |
*) |
| 14633 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14634 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14635 |
> |
ac_status=$? |
| 14636 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14637 |
> |
test $ac_status = 0; } |
| 14638 |
> |
CFLAGS="$CFLAGS $flag" |
| 14639 |
> |
;; |
| 14640 |
> |
esac |
| 14641 |
> |
else |
| 14642 |
> |
CFLAGS="$flag" |
| 14643 |
> |
fi |
| 14644 |
> |
|
| 14645 |
> |
else |
| 14646 |
> |
: |
| 14647 |
> |
fi |
| 14648 |
> |
|
| 14649 |
> |
done |
| 14650 |
> |
|
| 14651 |
> |
|
| 14652 |
> |
|
| 14653 |
> |
|
| 14654 |
> |
|
| 14655 |
> |
for flag in -Wlogical-op; do |
| 14656 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14657 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14658 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14659 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14660 |
> |
$as_echo_n "(cached) " >&6 |
| 14661 |
> |
else |
| 14662 |
> |
|
| 14663 |
> |
ax_check_save_flags=$CFLAGS |
| 14664 |
> |
CFLAGS="$CFLAGS $flag" |
| 14665 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14666 |
> |
/* end confdefs.h. */ |
| 14667 |
> |
|
| 14668 |
> |
int |
| 14669 |
> |
main () |
| 14670 |
> |
{ |
| 14671 |
> |
|
| 14672 |
> |
; |
| 14673 |
> |
return 0; |
| 14674 |
> |
} |
| 14675 |
> |
_ACEOF |
| 14676 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14677 |
> |
eval "$as_CACHEVAR=yes" |
| 14678 |
> |
else |
| 14679 |
> |
eval "$as_CACHEVAR=no" |
| 14680 |
> |
fi |
| 14681 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14682 |
> |
CFLAGS=$ax_check_save_flags |
| 14683 |
> |
fi |
| 14684 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14685 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14686 |
> |
$as_echo "$ac_res" >&6; } |
| 14687 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14688 |
> |
if ${CFLAGS+:} false; then : |
| 14689 |
> |
case " $CFLAGS " in |
| 14690 |
> |
*" $flag "*) |
| 14691 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14692 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14693 |
> |
ac_status=$? |
| 14694 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14695 |
> |
test $ac_status = 0; } |
| 14696 |
> |
;; |
| 14697 |
> |
*) |
| 14698 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14699 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14700 |
> |
ac_status=$? |
| 14701 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14702 |
> |
test $ac_status = 0; } |
| 14703 |
> |
CFLAGS="$CFLAGS $flag" |
| 14704 |
> |
;; |
| 14705 |
> |
esac |
| 14706 |
> |
else |
| 14707 |
> |
CFLAGS="$flag" |
| 14708 |
> |
fi |
| 14709 |
> |
|
| 14710 |
> |
else |
| 14711 |
> |
: |
| 14712 |
> |
fi |
| 14713 |
> |
|
| 14714 |
> |
done |
| 14715 |
> |
|
| 14716 |
> |
|
| 14717 |
> |
|
| 14718 |
> |
|
| 14719 |
> |
|
| 14720 |
> |
for flag in -Wmissing-declarations; do |
| 14721 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14722 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14723 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14724 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14725 |
> |
$as_echo_n "(cached) " >&6 |
| 14726 |
> |
else |
| 14727 |
> |
|
| 14728 |
> |
ax_check_save_flags=$CFLAGS |
| 14729 |
> |
CFLAGS="$CFLAGS $flag" |
| 14730 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14731 |
> |
/* end confdefs.h. */ |
| 14732 |
> |
|
| 14733 |
> |
int |
| 14734 |
> |
main () |
| 14735 |
> |
{ |
| 14736 |
> |
|
| 14737 |
> |
; |
| 14738 |
> |
return 0; |
| 14739 |
> |
} |
| 14740 |
> |
_ACEOF |
| 14741 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14742 |
> |
eval "$as_CACHEVAR=yes" |
| 14743 |
> |
else |
| 14744 |
> |
eval "$as_CACHEVAR=no" |
| 14745 |
> |
fi |
| 14746 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14747 |
> |
CFLAGS=$ax_check_save_flags |
| 14748 |
> |
fi |
| 14749 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14750 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14751 |
> |
$as_echo "$ac_res" >&6; } |
| 14752 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14753 |
> |
if ${CFLAGS+:} false; then : |
| 14754 |
> |
case " $CFLAGS " in |
| 14755 |
> |
*" $flag "*) |
| 14756 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14757 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14758 |
> |
ac_status=$? |
| 14759 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14760 |
> |
test $ac_status = 0; } |
| 14761 |
> |
;; |
| 14762 |
> |
*) |
| 14763 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14764 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14765 |
> |
ac_status=$? |
| 14766 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14767 |
> |
test $ac_status = 0; } |
| 14768 |
> |
CFLAGS="$CFLAGS $flag" |
| 14769 |
> |
;; |
| 14770 |
> |
esac |
| 14771 |
> |
else |
| 14772 |
> |
CFLAGS="$flag" |
| 14773 |
> |
fi |
| 14774 |
> |
|
| 14775 |
> |
else |
| 14776 |
> |
: |
| 14777 |
> |
fi |
| 14778 |
> |
|
| 14779 |
> |
done |
| 14780 |
> |
|
| 14781 |
> |
|
| 14782 |
> |
|
| 14783 |
> |
|
| 14784 |
> |
|
| 14785 |
> |
for flag in -Wmissing-field-initializers; do |
| 14786 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14787 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14788 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14789 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14790 |
> |
$as_echo_n "(cached) " >&6 |
| 14791 |
> |
else |
| 14792 |
> |
|
| 14793 |
> |
ax_check_save_flags=$CFLAGS |
| 14794 |
> |
CFLAGS="$CFLAGS $flag" |
| 14795 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14796 |
> |
/* end confdefs.h. */ |
| 14797 |
> |
|
| 14798 |
> |
int |
| 14799 |
> |
main () |
| 14800 |
> |
{ |
| 14801 |
> |
|
| 14802 |
> |
; |
| 14803 |
> |
return 0; |
| 14804 |
> |
} |
| 14805 |
> |
_ACEOF |
| 14806 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14807 |
> |
eval "$as_CACHEVAR=yes" |
| 14808 |
> |
else |
| 14809 |
> |
eval "$as_CACHEVAR=no" |
| 14810 |
> |
fi |
| 14811 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14812 |
> |
CFLAGS=$ax_check_save_flags |
| 14813 |
> |
fi |
| 14814 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14815 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14816 |
> |
$as_echo "$ac_res" >&6; } |
| 14817 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14818 |
> |
if ${CFLAGS+:} false; then : |
| 14819 |
> |
case " $CFLAGS " in |
| 14820 |
> |
*" $flag "*) |
| 14821 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14822 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14823 |
> |
ac_status=$? |
| 14824 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14825 |
> |
test $ac_status = 0; } |
| 14826 |
> |
;; |
| 14827 |
> |
*) |
| 14828 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14829 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14830 |
> |
ac_status=$? |
| 14831 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14832 |
> |
test $ac_status = 0; } |
| 14833 |
> |
CFLAGS="$CFLAGS $flag" |
| 14834 |
> |
;; |
| 14835 |
> |
esac |
| 14836 |
> |
else |
| 14837 |
> |
CFLAGS="$flag" |
| 14838 |
> |
fi |
| 14839 |
> |
|
| 14840 |
> |
else |
| 14841 |
> |
: |
| 14842 |
> |
fi |
| 14843 |
> |
|
| 14844 |
> |
done |
| 14845 |
> |
|
| 14846 |
> |
|
| 14847 |
> |
|
| 14848 |
> |
|
| 14849 |
> |
|
| 14850 |
> |
for flag in -Wmissing-include-dirs; do |
| 14851 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14852 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14853 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14854 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14855 |
> |
$as_echo_n "(cached) " >&6 |
| 14856 |
> |
else |
| 14857 |
> |
|
| 14858 |
> |
ax_check_save_flags=$CFLAGS |
| 14859 |
> |
CFLAGS="$CFLAGS $flag" |
| 14860 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14861 |
> |
/* end confdefs.h. */ |
| 14862 |
> |
|
| 14863 |
> |
int |
| 14864 |
> |
main () |
| 14865 |
> |
{ |
| 14866 |
> |
|
| 14867 |
> |
; |
| 14868 |
> |
return 0; |
| 14869 |
> |
} |
| 14870 |
> |
_ACEOF |
| 14871 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14872 |
> |
eval "$as_CACHEVAR=yes" |
| 14873 |
> |
else |
| 14874 |
> |
eval "$as_CACHEVAR=no" |
| 14875 |
> |
fi |
| 14876 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14877 |
> |
CFLAGS=$ax_check_save_flags |
| 14878 |
> |
fi |
| 14879 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14880 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14881 |
> |
$as_echo "$ac_res" >&6; } |
| 14882 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14883 |
> |
if ${CFLAGS+:} false; then : |
| 14884 |
> |
case " $CFLAGS " in |
| 14885 |
> |
*" $flag "*) |
| 14886 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14887 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14888 |
> |
ac_status=$? |
| 14889 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14890 |
> |
test $ac_status = 0; } |
| 14891 |
> |
;; |
| 14892 |
> |
*) |
| 14893 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14894 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14895 |
> |
ac_status=$? |
| 14896 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14897 |
> |
test $ac_status = 0; } |
| 14898 |
> |
CFLAGS="$CFLAGS $flag" |
| 14899 |
> |
;; |
| 14900 |
> |
esac |
| 14901 |
> |
else |
| 14902 |
> |
CFLAGS="$flag" |
| 14903 |
> |
fi |
| 14904 |
> |
|
| 14905 |
> |
else |
| 14906 |
> |
: |
| 14907 |
> |
fi |
| 14908 |
> |
|
| 14909 |
> |
done |
| 14910 |
> |
|
| 14911 |
> |
|
| 14912 |
> |
|
| 14913 |
> |
|
| 14914 |
> |
|
| 14915 |
> |
for flag in -Wmissing-parameter-type; do |
| 14916 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14917 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14918 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14919 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14920 |
> |
$as_echo_n "(cached) " >&6 |
| 14921 |
> |
else |
| 14922 |
> |
|
| 14923 |
> |
ax_check_save_flags=$CFLAGS |
| 14924 |
> |
CFLAGS="$CFLAGS $flag" |
| 14925 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14926 |
> |
/* end confdefs.h. */ |
| 14927 |
> |
|
| 14928 |
> |
int |
| 14929 |
> |
main () |
| 14930 |
> |
{ |
| 14931 |
> |
|
| 14932 |
> |
; |
| 14933 |
> |
return 0; |
| 14934 |
> |
} |
| 14935 |
> |
_ACEOF |
| 14936 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14937 |
> |
eval "$as_CACHEVAR=yes" |
| 14938 |
> |
else |
| 14939 |
> |
eval "$as_CACHEVAR=no" |
| 14940 |
> |
fi |
| 14941 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14942 |
> |
CFLAGS=$ax_check_save_flags |
| 14943 |
> |
fi |
| 14944 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14945 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14946 |
> |
$as_echo "$ac_res" >&6; } |
| 14947 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14948 |
> |
if ${CFLAGS+:} false; then : |
| 14949 |
> |
case " $CFLAGS " in |
| 14950 |
> |
*" $flag "*) |
| 14951 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14952 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14953 |
> |
ac_status=$? |
| 14954 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14955 |
> |
test $ac_status = 0; } |
| 14956 |
> |
;; |
| 14957 |
> |
*) |
| 14958 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14959 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14960 |
> |
ac_status=$? |
| 14961 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14962 |
> |
test $ac_status = 0; } |
| 14963 |
> |
CFLAGS="$CFLAGS $flag" |
| 14964 |
> |
;; |
| 14965 |
> |
esac |
| 14966 |
> |
else |
| 14967 |
> |
CFLAGS="$flag" |
| 14968 |
> |
fi |
| 14969 |
> |
|
| 14970 |
> |
else |
| 14971 |
> |
: |
| 14972 |
> |
fi |
| 14973 |
> |
|
| 14974 |
> |
done |
| 14975 |
> |
|
| 14976 |
> |
|
| 14977 |
> |
|
| 14978 |
> |
|
| 14979 |
> |
|
| 14980 |
> |
for flag in -Wmissing-prototypes; do |
| 14981 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14982 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14983 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14984 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14985 |
> |
$as_echo_n "(cached) " >&6 |
| 14986 |
> |
else |
| 14987 |
> |
|
| 14988 |
> |
ax_check_save_flags=$CFLAGS |
| 14989 |
> |
CFLAGS="$CFLAGS $flag" |
| 14990 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14991 |
> |
/* end confdefs.h. */ |
| 14992 |
> |
|
| 14993 |
> |
int |
| 14994 |
> |
main () |
| 14995 |
> |
{ |
| 14996 |
> |
|
| 14997 |
> |
; |
| 14998 |
> |
return 0; |
| 14999 |
> |
} |
| 15000 |
> |
_ACEOF |
| 15001 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15002 |
> |
eval "$as_CACHEVAR=yes" |
| 15003 |
> |
else |
| 15004 |
> |
eval "$as_CACHEVAR=no" |
| 15005 |
> |
fi |
| 15006 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15007 |
> |
CFLAGS=$ax_check_save_flags |
| 15008 |
> |
fi |
| 15009 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15010 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15011 |
> |
$as_echo "$ac_res" >&6; } |
| 15012 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15013 |
> |
if ${CFLAGS+:} false; then : |
| 15014 |
> |
case " $CFLAGS " in |
| 15015 |
> |
*" $flag "*) |
| 15016 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15017 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15018 |
> |
ac_status=$? |
| 15019 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15020 |
> |
test $ac_status = 0; } |
| 15021 |
> |
;; |
| 15022 |
> |
*) |
| 15023 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15024 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15025 |
> |
ac_status=$? |
| 15026 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15027 |
> |
test $ac_status = 0; } |
| 15028 |
> |
CFLAGS="$CFLAGS $flag" |
| 15029 |
> |
;; |
| 15030 |
> |
esac |
| 15031 |
> |
else |
| 15032 |
> |
CFLAGS="$flag" |
| 15033 |
> |
fi |
| 15034 |
> |
|
| 15035 |
> |
else |
| 15036 |
> |
: |
| 15037 |
> |
fi |
| 15038 |
> |
|
| 15039 |
> |
done |
| 15040 |
> |
|
| 15041 |
> |
|
| 15042 |
> |
|
| 15043 |
> |
|
| 15044 |
> |
|
| 15045 |
> |
for flag in -Wnested-externs; do |
| 15046 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15047 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15048 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15049 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15050 |
> |
$as_echo_n "(cached) " >&6 |
| 15051 |
> |
else |
| 15052 |
> |
|
| 15053 |
> |
ax_check_save_flags=$CFLAGS |
| 15054 |
> |
CFLAGS="$CFLAGS $flag" |
| 15055 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15056 |
> |
/* end confdefs.h. */ |
| 15057 |
> |
|
| 15058 |
> |
int |
| 15059 |
> |
main () |
| 15060 |
> |
{ |
| 15061 |
> |
|
| 15062 |
> |
; |
| 15063 |
> |
return 0; |
| 15064 |
> |
} |
| 15065 |
> |
_ACEOF |
| 15066 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15067 |
> |
eval "$as_CACHEVAR=yes" |
| 15068 |
> |
else |
| 15069 |
> |
eval "$as_CACHEVAR=no" |
| 15070 |
> |
fi |
| 15071 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15072 |
> |
CFLAGS=$ax_check_save_flags |
| 15073 |
> |
fi |
| 15074 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15075 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15076 |
> |
$as_echo "$ac_res" >&6; } |
| 15077 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15078 |
> |
if ${CFLAGS+:} false; then : |
| 15079 |
> |
case " $CFLAGS " in |
| 15080 |
> |
*" $flag "*) |
| 15081 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15082 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15083 |
> |
ac_status=$? |
| 15084 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15085 |
> |
test $ac_status = 0; } |
| 15086 |
> |
;; |
| 15087 |
> |
*) |
| 15088 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15089 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15090 |
> |
ac_status=$? |
| 15091 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15092 |
> |
test $ac_status = 0; } |
| 15093 |
> |
CFLAGS="$CFLAGS $flag" |
| 15094 |
> |
;; |
| 15095 |
> |
esac |
| 15096 |
> |
else |
| 15097 |
> |
CFLAGS="$flag" |
| 15098 |
> |
fi |
| 15099 |
> |
|
| 15100 |
> |
else |
| 15101 |
> |
: |
| 15102 |
> |
fi |
| 15103 |
> |
|
| 15104 |
> |
done |
| 15105 |
> |
|
| 15106 |
> |
|
| 15107 |
> |
|
| 15108 |
> |
|
| 15109 |
> |
|
| 15110 |
> |
for flag in -Wold-style-declaration; do |
| 15111 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15112 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15113 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15114 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15115 |
> |
$as_echo_n "(cached) " >&6 |
| 15116 |
> |
else |
| 15117 |
> |
|
| 15118 |
> |
ax_check_save_flags=$CFLAGS |
| 15119 |
> |
CFLAGS="$CFLAGS $flag" |
| 15120 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15121 |
> |
/* end confdefs.h. */ |
| 15122 |
> |
|
| 15123 |
> |
int |
| 15124 |
> |
main () |
| 15125 |
> |
{ |
| 15126 |
> |
|
| 15127 |
> |
; |
| 15128 |
> |
return 0; |
| 15129 |
> |
} |
| 15130 |
> |
_ACEOF |
| 15131 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15132 |
> |
eval "$as_CACHEVAR=yes" |
| 15133 |
> |
else |
| 15134 |
> |
eval "$as_CACHEVAR=no" |
| 15135 |
> |
fi |
| 15136 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15137 |
> |
CFLAGS=$ax_check_save_flags |
| 15138 |
> |
fi |
| 15139 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15140 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15141 |
> |
$as_echo "$ac_res" >&6; } |
| 15142 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15143 |
> |
if ${CFLAGS+:} false; then : |
| 15144 |
> |
case " $CFLAGS " in |
| 15145 |
> |
*" $flag "*) |
| 15146 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15147 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15148 |
> |
ac_status=$? |
| 15149 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15150 |
> |
test $ac_status = 0; } |
| 15151 |
> |
;; |
| 15152 |
> |
*) |
| 15153 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15154 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15155 |
> |
ac_status=$? |
| 15156 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15157 |
> |
test $ac_status = 0; } |
| 15158 |
> |
CFLAGS="$CFLAGS $flag" |
| 15159 |
> |
;; |
| 15160 |
> |
esac |
| 15161 |
> |
else |
| 15162 |
> |
CFLAGS="$flag" |
| 15163 |
> |
fi |
| 15164 |
> |
|
| 15165 |
> |
else |
| 15166 |
> |
: |
| 15167 |
> |
fi |
| 15168 |
> |
|
| 15169 |
> |
done |
| 15170 |
> |
|
| 15171 |
> |
|
| 15172 |
> |
|
| 15173 |
> |
|
| 15174 |
> |
|
| 15175 |
> |
for flag in -Woverride-init; do |
| 15176 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15177 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15178 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15179 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15180 |
> |
$as_echo_n "(cached) " >&6 |
| 15181 |
> |
else |
| 15182 |
> |
|
| 15183 |
> |
ax_check_save_flags=$CFLAGS |
| 15184 |
> |
CFLAGS="$CFLAGS $flag" |
| 15185 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15186 |
> |
/* end confdefs.h. */ |
| 15187 |
> |
|
| 15188 |
> |
int |
| 15189 |
> |
main () |
| 15190 |
> |
{ |
| 15191 |
> |
|
| 15192 |
> |
; |
| 15193 |
> |
return 0; |
| 15194 |
> |
} |
| 15195 |
> |
_ACEOF |
| 15196 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15197 |
> |
eval "$as_CACHEVAR=yes" |
| 15198 |
> |
else |
| 15199 |
> |
eval "$as_CACHEVAR=no" |
| 15200 |
> |
fi |
| 15201 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15202 |
> |
CFLAGS=$ax_check_save_flags |
| 15203 |
> |
fi |
| 15204 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15205 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15206 |
> |
$as_echo "$ac_res" >&6; } |
| 15207 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15208 |
> |
if ${CFLAGS+:} false; then : |
| 15209 |
> |
case " $CFLAGS " in |
| 15210 |
> |
*" $flag "*) |
| 15211 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15212 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15213 |
> |
ac_status=$? |
| 15214 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15215 |
> |
test $ac_status = 0; } |
| 15216 |
> |
;; |
| 15217 |
> |
*) |
| 15218 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15219 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15220 |
> |
ac_status=$? |
| 15221 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15222 |
> |
test $ac_status = 0; } |
| 15223 |
> |
CFLAGS="$CFLAGS $flag" |
| 15224 |
> |
;; |
| 15225 |
> |
esac |
| 15226 |
> |
else |
| 15227 |
> |
CFLAGS="$flag" |
| 15228 |
> |
fi |
| 15229 |
> |
|
| 15230 |
> |
else |
| 15231 |
> |
: |
| 15232 |
> |
fi |
| 15233 |
> |
|
| 15234 |
> |
done |
| 15235 |
> |
|
| 15236 |
> |
|
| 15237 |
> |
|
| 15238 |
> |
|
| 15239 |
> |
|
| 15240 |
> |
for flag in -Wpointer-arith; do |
| 15241 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15242 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15243 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15244 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15245 |
> |
$as_echo_n "(cached) " >&6 |
| 15246 |
> |
else |
| 15247 |
> |
|
| 15248 |
> |
ax_check_save_flags=$CFLAGS |
| 15249 |
> |
CFLAGS="$CFLAGS $flag" |
| 15250 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15251 |
> |
/* end confdefs.h. */ |
| 15252 |
> |
|
| 15253 |
> |
int |
| 15254 |
> |
main () |
| 15255 |
> |
{ |
| 15256 |
> |
|
| 15257 |
> |
; |
| 15258 |
> |
return 0; |
| 15259 |
> |
} |
| 15260 |
> |
_ACEOF |
| 15261 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15262 |
> |
eval "$as_CACHEVAR=yes" |
| 15263 |
> |
else |
| 15264 |
> |
eval "$as_CACHEVAR=no" |
| 15265 |
> |
fi |
| 15266 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15267 |
> |
CFLAGS=$ax_check_save_flags |
| 15268 |
> |
fi |
| 15269 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15270 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15271 |
> |
$as_echo "$ac_res" >&6; } |
| 15272 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15273 |
> |
if ${CFLAGS+:} false; then : |
| 15274 |
> |
case " $CFLAGS " in |
| 15275 |
> |
*" $flag "*) |
| 15276 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15277 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15278 |
> |
ac_status=$? |
| 15279 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15280 |
> |
test $ac_status = 0; } |
| 15281 |
> |
;; |
| 15282 |
> |
*) |
| 15283 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15284 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15285 |
> |
ac_status=$? |
| 15286 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15287 |
> |
test $ac_status = 0; } |
| 15288 |
> |
CFLAGS="$CFLAGS $flag" |
| 15289 |
> |
;; |
| 15290 |
> |
esac |
| 15291 |
> |
else |
| 15292 |
> |
CFLAGS="$flag" |
| 15293 |
> |
fi |
| 15294 |
> |
|
| 15295 |
> |
else |
| 15296 |
> |
: |
| 15297 |
> |
fi |
| 15298 |
> |
|
| 15299 |
> |
done |
| 15300 |
> |
|
| 15301 |
> |
|
| 15302 |
> |
|
| 15303 |
> |
|
| 15304 |
> |
|
| 15305 |
> |
for flag in -Wredundant-decls; do |
| 15306 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15307 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15308 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15309 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15310 |
> |
$as_echo_n "(cached) " >&6 |
| 15311 |
> |
else |
| 15312 |
> |
|
| 15313 |
> |
ax_check_save_flags=$CFLAGS |
| 15314 |
> |
CFLAGS="$CFLAGS $flag" |
| 15315 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15316 |
> |
/* end confdefs.h. */ |
| 15317 |
> |
|
| 15318 |
> |
int |
| 15319 |
> |
main () |
| 15320 |
> |
{ |
| 15321 |
> |
|
| 15322 |
> |
; |
| 15323 |
> |
return 0; |
| 15324 |
> |
} |
| 15325 |
> |
_ACEOF |
| 15326 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15327 |
> |
eval "$as_CACHEVAR=yes" |
| 15328 |
> |
else |
| 15329 |
> |
eval "$as_CACHEVAR=no" |
| 15330 |
> |
fi |
| 15331 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15332 |
> |
CFLAGS=$ax_check_save_flags |
| 15333 |
> |
fi |
| 15334 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15335 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15336 |
> |
$as_echo "$ac_res" >&6; } |
| 15337 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15338 |
> |
if ${CFLAGS+:} false; then : |
| 15339 |
> |
case " $CFLAGS " in |
| 15340 |
> |
*" $flag "*) |
| 15341 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15342 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15343 |
> |
ac_status=$? |
| 15344 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15345 |
> |
test $ac_status = 0; } |
| 15346 |
> |
;; |
| 15347 |
> |
*) |
| 15348 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15349 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15350 |
> |
ac_status=$? |
| 15351 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15352 |
> |
test $ac_status = 0; } |
| 15353 |
> |
CFLAGS="$CFLAGS $flag" |
| 15354 |
> |
;; |
| 15355 |
> |
esac |
| 15356 |
> |
else |
| 15357 |
> |
CFLAGS="$flag" |
| 15358 |
> |
fi |
| 15359 |
> |
|
| 15360 |
> |
else |
| 15361 |
> |
: |
| 15362 |
> |
fi |
| 15363 |
> |
|
| 15364 |
> |
done |
| 15365 |
> |
|
| 15366 |
> |
|
| 15367 |
> |
|
| 15368 |
> |
|
| 15369 |
> |
|
| 15370 |
> |
for flag in -Wshadow; do |
| 15371 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15372 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15373 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15374 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15375 |
> |
$as_echo_n "(cached) " >&6 |
| 15376 |
> |
else |
| 15377 |
> |
|
| 15378 |
> |
ax_check_save_flags=$CFLAGS |
| 15379 |
> |
CFLAGS="$CFLAGS $flag" |
| 15380 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15381 |
> |
/* end confdefs.h. */ |
| 15382 |
> |
|
| 15383 |
> |
int |
| 15384 |
> |
main () |
| 15385 |
> |
{ |
| 15386 |
> |
|
| 15387 |
> |
; |
| 15388 |
> |
return 0; |
| 15389 |
> |
} |
| 15390 |
> |
_ACEOF |
| 15391 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15392 |
> |
eval "$as_CACHEVAR=yes" |
| 15393 |
> |
else |
| 15394 |
> |
eval "$as_CACHEVAR=no" |
| 15395 |
> |
fi |
| 15396 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15397 |
> |
CFLAGS=$ax_check_save_flags |
| 15398 |
> |
fi |
| 15399 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15400 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15401 |
> |
$as_echo "$ac_res" >&6; } |
| 15402 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15403 |
> |
if ${CFLAGS+:} false; then : |
| 15404 |
> |
case " $CFLAGS " in |
| 15405 |
> |
*" $flag "*) |
| 15406 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15407 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15408 |
> |
ac_status=$? |
| 15409 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15410 |
> |
test $ac_status = 0; } |
| 15411 |
> |
;; |
| 15412 |
> |
*) |
| 15413 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15414 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15415 |
> |
ac_status=$? |
| 15416 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15417 |
> |
test $ac_status = 0; } |
| 15418 |
> |
CFLAGS="$CFLAGS $flag" |
| 15419 |
> |
;; |
| 15420 |
> |
esac |
| 15421 |
> |
else |
| 15422 |
> |
CFLAGS="$flag" |
| 15423 |
> |
fi |
| 15424 |
> |
|
| 15425 |
> |
else |
| 15426 |
> |
: |
| 15427 |
> |
fi |
| 15428 |
> |
|
| 15429 |
> |
done |
| 15430 |
> |
|
| 15431 |
> |
|
| 15432 |
> |
|
| 15433 |
> |
|
| 15434 |
> |
|
| 15435 |
> |
for flag in -Wsign-compare; do |
| 15436 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15437 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15438 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15439 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15440 |
> |
$as_echo_n "(cached) " >&6 |
| 15441 |
> |
else |
| 15442 |
> |
|
| 15443 |
> |
ax_check_save_flags=$CFLAGS |
| 15444 |
> |
CFLAGS="$CFLAGS $flag" |
| 15445 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15446 |
> |
/* end confdefs.h. */ |
| 15447 |
> |
|
| 15448 |
> |
int |
| 15449 |
> |
main () |
| 15450 |
> |
{ |
| 15451 |
> |
|
| 15452 |
> |
; |
| 15453 |
> |
return 0; |
| 15454 |
> |
} |
| 15455 |
> |
_ACEOF |
| 15456 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15457 |
> |
eval "$as_CACHEVAR=yes" |
| 15458 |
> |
else |
| 15459 |
> |
eval "$as_CACHEVAR=no" |
| 15460 |
> |
fi |
| 15461 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15462 |
> |
CFLAGS=$ax_check_save_flags |
| 15463 |
> |
fi |
| 15464 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15465 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15466 |
> |
$as_echo "$ac_res" >&6; } |
| 15467 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15468 |
> |
if ${CFLAGS+:} false; then : |
| 15469 |
> |
case " $CFLAGS " in |
| 15470 |
> |
*" $flag "*) |
| 15471 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15472 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15473 |
> |
ac_status=$? |
| 15474 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15475 |
> |
test $ac_status = 0; } |
| 15476 |
> |
;; |
| 15477 |
> |
*) |
| 15478 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15479 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15480 |
> |
ac_status=$? |
| 15481 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15482 |
> |
test $ac_status = 0; } |
| 15483 |
> |
CFLAGS="$CFLAGS $flag" |
| 15484 |
> |
;; |
| 15485 |
> |
esac |
| 15486 |
> |
else |
| 15487 |
> |
CFLAGS="$flag" |
| 15488 |
> |
fi |
| 15489 |
> |
|
| 15490 |
> |
else |
| 15491 |
> |
: |
| 15492 |
> |
fi |
| 15493 |
> |
|
| 15494 |
> |
done |
| 15495 |
> |
|
| 15496 |
> |
|
| 15497 |
> |
|
| 15498 |
> |
|
| 15499 |
> |
|
| 15500 |
> |
for flag in -Wtype-limits; do |
| 15501 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15502 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15503 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15504 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15505 |
> |
$as_echo_n "(cached) " >&6 |
| 15506 |
> |
else |
| 15507 |
> |
|
| 15508 |
> |
ax_check_save_flags=$CFLAGS |
| 15509 |
> |
CFLAGS="$CFLAGS $flag" |
| 15510 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15511 |
> |
/* end confdefs.h. */ |
| 15512 |
> |
|
| 15513 |
> |
int |
| 15514 |
> |
main () |
| 15515 |
> |
{ |
| 15516 |
> |
|
| 15517 |
> |
; |
| 15518 |
> |
return 0; |
| 15519 |
> |
} |
| 15520 |
> |
_ACEOF |
| 15521 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15522 |
> |
eval "$as_CACHEVAR=yes" |
| 15523 |
> |
else |
| 15524 |
> |
eval "$as_CACHEVAR=no" |
| 15525 |
> |
fi |
| 15526 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15527 |
> |
CFLAGS=$ax_check_save_flags |
| 15528 |
> |
fi |
| 15529 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15530 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15531 |
> |
$as_echo "$ac_res" >&6; } |
| 15532 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15533 |
> |
if ${CFLAGS+:} false; then : |
| 15534 |
> |
case " $CFLAGS " in |
| 15535 |
> |
*" $flag "*) |
| 15536 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15537 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15538 |
> |
ac_status=$? |
| 15539 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15540 |
> |
test $ac_status = 0; } |
| 15541 |
> |
;; |
| 15542 |
> |
*) |
| 15543 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15544 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15545 |
> |
ac_status=$? |
| 15546 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15547 |
> |
test $ac_status = 0; } |
| 15548 |
> |
CFLAGS="$CFLAGS $flag" |
| 15549 |
> |
;; |
| 15550 |
> |
esac |
| 15551 |
> |
else |
| 15552 |
> |
CFLAGS="$flag" |
| 15553 |
> |
fi |
| 15554 |
> |
|
| 15555 |
> |
else |
| 15556 |
> |
: |
| 15557 |
> |
fi |
| 15558 |
> |
|
| 15559 |
> |
done |
| 15560 |
> |
|
| 15561 |
> |
|
| 15562 |
> |
|
| 15563 |
> |
|
| 15564 |
> |
|
| 15565 |
> |
for flag in -Wundef; do |
| 15566 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15567 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15568 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15569 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15570 |
> |
$as_echo_n "(cached) " >&6 |
| 15571 |
> |
else |
| 15572 |
> |
|
| 15573 |
> |
ax_check_save_flags=$CFLAGS |
| 15574 |
> |
CFLAGS="$CFLAGS $flag" |
| 15575 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15576 |
> |
/* end confdefs.h. */ |
| 15577 |
> |
|
| 15578 |
> |
int |
| 15579 |
> |
main () |
| 15580 |
> |
{ |
| 15581 |
> |
|
| 15582 |
> |
; |
| 15583 |
> |
return 0; |
| 15584 |
> |
} |
| 15585 |
> |
_ACEOF |
| 15586 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15587 |
> |
eval "$as_CACHEVAR=yes" |
| 15588 |
> |
else |
| 15589 |
> |
eval "$as_CACHEVAR=no" |
| 15590 |
> |
fi |
| 15591 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15592 |
> |
CFLAGS=$ax_check_save_flags |
| 15593 |
> |
fi |
| 15594 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15595 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15596 |
> |
$as_echo "$ac_res" >&6; } |
| 15597 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15598 |
> |
if ${CFLAGS+:} false; then : |
| 15599 |
> |
case " $CFLAGS " in |
| 15600 |
> |
*" $flag "*) |
| 15601 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15602 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15603 |
> |
ac_status=$? |
| 15604 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15605 |
> |
test $ac_status = 0; } |
| 15606 |
> |
;; |
| 15607 |
> |
*) |
| 15608 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15609 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15610 |
> |
ac_status=$? |
| 15611 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15612 |
> |
test $ac_status = 0; } |
| 15613 |
> |
CFLAGS="$CFLAGS $flag" |
| 15614 |
> |
;; |
| 15615 |
> |
esac |
| 15616 |
> |
else |
| 15617 |
> |
CFLAGS="$flag" |
| 15618 |
> |
fi |
| 15619 |
> |
|
| 15620 |
> |
else |
| 15621 |
> |
: |
| 15622 |
> |
fi |
| 15623 |
> |
|
| 15624 |
> |
done |
| 15625 |
> |
|
| 15626 |
> |
|
| 15627 |
> |
|
| 15628 |
> |
|
| 15629 |
> |
|
| 15630 |
> |
for flag in -Wuninitialized; do |
| 15631 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15632 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15633 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15634 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15635 |
> |
$as_echo_n "(cached) " >&6 |
| 15636 |
> |
else |
| 15637 |
> |
|
| 15638 |
> |
ax_check_save_flags=$CFLAGS |
| 15639 |
> |
CFLAGS="$CFLAGS $flag" |
| 15640 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15641 |
> |
/* end confdefs.h. */ |
| 15642 |
> |
|
| 15643 |
> |
int |
| 15644 |
> |
main () |
| 15645 |
> |
{ |
| 15646 |
> |
|
| 15647 |
> |
; |
| 15648 |
> |
return 0; |
| 15649 |
> |
} |
| 15650 |
> |
_ACEOF |
| 15651 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15652 |
> |
eval "$as_CACHEVAR=yes" |
| 15653 |
> |
else |
| 15654 |
> |
eval "$as_CACHEVAR=no" |
| 15655 |
> |
fi |
| 15656 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15657 |
> |
CFLAGS=$ax_check_save_flags |
| 15658 |
> |
fi |
| 15659 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15660 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15661 |
> |
$as_echo "$ac_res" >&6; } |
| 15662 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15663 |
> |
if ${CFLAGS+:} false; then : |
| 15664 |
> |
case " $CFLAGS " in |
| 15665 |
> |
*" $flag "*) |
| 15666 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15667 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15668 |
> |
ac_status=$? |
| 15669 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15670 |
> |
test $ac_status = 0; } |
| 15671 |
> |
;; |
| 15672 |
> |
*) |
| 15673 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15674 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15675 |
> |
ac_status=$? |
| 15676 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15677 |
> |
test $ac_status = 0; } |
| 15678 |
> |
CFLAGS="$CFLAGS $flag" |
| 15679 |
> |
;; |
| 15680 |
> |
esac |
| 15681 |
> |
else |
| 15682 |
> |
CFLAGS="$flag" |
| 15683 |
> |
fi |
| 15684 |
> |
|
| 15685 |
> |
else |
| 15686 |
> |
: |
| 15687 |
> |
fi |
| 15688 |
> |
|
| 15689 |
> |
done |
| 15690 |
> |
|
| 15691 |
> |
|
| 15692 |
> |
|
| 15693 |
> |
|
| 15694 |
> |
|
| 15695 |
> |
for flag in -Wwrite-strings; do |
| 15696 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15697 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15698 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15699 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15700 |
> |
$as_echo_n "(cached) " >&6 |
| 15701 |
> |
else |
| 15702 |
> |
|
| 15703 |
> |
ax_check_save_flags=$CFLAGS |
| 15704 |
> |
CFLAGS="$CFLAGS $flag" |
| 15705 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15706 |
> |
/* end confdefs.h. */ |
| 15707 |
> |
|
| 15708 |
> |
int |
| 15709 |
> |
main () |
| 15710 |
> |
{ |
| 15711 |
> |
|
| 15712 |
> |
; |
| 15713 |
> |
return 0; |
| 15714 |
> |
} |
| 15715 |
> |
_ACEOF |
| 15716 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15717 |
> |
eval "$as_CACHEVAR=yes" |
| 15718 |
> |
else |
| 15719 |
> |
eval "$as_CACHEVAR=no" |
| 15720 |
> |
fi |
| 15721 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15722 |
> |
CFLAGS=$ax_check_save_flags |
| 15723 |
> |
fi |
| 15724 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15725 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15726 |
> |
$as_echo "$ac_res" >&6; } |
| 15727 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15728 |
> |
if ${CFLAGS+:} false; then : |
| 15729 |
> |
case " $CFLAGS " in |
| 15730 |
> |
*" $flag "*) |
| 15731 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15732 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15733 |
> |
ac_status=$? |
| 15734 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15735 |
> |
test $ac_status = 0; } |
| 15736 |
> |
;; |
| 15737 |
> |
*) |
| 15738 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15739 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15740 |
> |
ac_status=$? |
| 15741 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15742 |
> |
test $ac_status = 0; } |
| 15743 |
> |
CFLAGS="$CFLAGS $flag" |
| 15744 |
> |
;; |
| 15745 |
> |
esac |
| 15746 |
> |
else |
| 15747 |
> |
CFLAGS="$flag" |
| 15748 |
> |
fi |
| 15749 |
> |
|
| 15750 |
> |
else |
| 15751 |
> |
: |
| 15752 |
> |
fi |
| 15753 |
> |
|
| 15754 |
> |
done |
| 15755 |
|
|
| 15756 |
|
fi |
| 15757 |
|
|
| 15758 |
|
|
| 15759 |
< |
# Check whether --enable-warnings was given. |
| 15760 |
< |
if test "${enable_warnings+set}" = set; then : |
| 15761 |
< |
enableval=$enable_warnings; warnings="$enableval" |
| 15759 |
> |
# Check whether --enable-openssl was given. |
| 15760 |
> |
if test "${enable_openssl+set}" = set; then : |
| 15761 |
> |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 15762 |
|
else |
| 15763 |
< |
warnings="no" |
| 15763 |
> |
cf_enable_openssl="auto" |
| 15764 |
|
fi |
| 15765 |
|
|
| 15766 |
< |
if test "$warnings" = "yes" ; then |
| 15767 |
< |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 15766 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
| 15767 |
> |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
| 15768 |
> |
if test "$cf_enable_openssl" != "no"; then |
| 15769 |
> |
cf_openssl_basedir="" |
| 15770 |
> |
if test "$cf_enable_openssl" != "auto" && |
| 15771 |
> |
test "$cf_enable_openssl" != "yes"; then |
| 15772 |
> |
cf_openssl_basedir="${cf_enable_openssl}" |
| 15773 |
> |
else |
| 15774 |
> |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 15775 |
> |
/opt /opt/openssl /usr/local/openssl; do |
| 15776 |
> |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 15777 |
> |
cf_openssl_basedir="${dirs}" |
| 15778 |
> |
break |
| 15779 |
> |
fi |
| 15780 |
> |
done |
| 15781 |
> |
unset dirs |
| 15782 |
|
fi |
| 15783 |
|
|
| 15784 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 15785 |
+ |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 15786 |
+ |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 15787 |
+ |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 15788 |
+ |
else |
| 15789 |
+ |
cf_openssl_basedir="" |
| 15790 |
+ |
fi |
| 15791 |
+ |
else |
| 15792 |
+ |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 15793 |
+ |
cf_openssl_basedir="/usr" |
| 15794 |
+ |
fi |
| 15795 |
+ |
fi |
| 15796 |
+ |
|
| 15797 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 15798 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 15799 |
+ |
$as_echo "$cf_openssl_basedir" >&6; } |
| 15800 |
+ |
cf_enable_openssl="yes" |
| 15801 |
+ |
else |
| 15802 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 15803 |
+ |
$as_echo "not found. Please check your path." >&6; } |
| 15804 |
+ |
cf_enable_openssl="no" |
| 15805 |
+ |
fi |
| 15806 |
+ |
unset cf_openssl_basedir |
| 15807 |
+ |
else |
| 15808 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 15809 |
+ |
$as_echo "disabled" >&6; } |
| 15810 |
+ |
fi |
| 15811 |
+ |
|
| 15812 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
| 15813 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5 |
| 15814 |
+ |
$as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; } |
| 15815 |
+ |
if test "$cross_compiling" = yes; then : |
| 15816 |
+ |
cf_openssl_version_ok=no |
| 15817 |
+ |
else |
| 15818 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15819 |
+ |
/* end confdefs.h. */ |
| 15820 |
+ |
|
| 15821 |
+ |
|
| 15822 |
+ |
#include <openssl/opensslv.h> |
| 15823 |
+ |
#include <stdlib.h> |
| 15824 |
+ |
int |
| 15825 |
+ |
main () |
| 15826 |
+ |
{ |
| 15827 |
+ |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
| 15828 |
+ |
; |
| 15829 |
+ |
return 0; |
| 15830 |
+ |
} |
| 15831 |
+ |
_ACEOF |
| 15832 |
+ |
if ac_fn_c_try_run "$LINENO"; then : |
| 15833 |
+ |
cf_openssl_version_ok=yes |
| 15834 |
+ |
else |
| 15835 |
+ |
cf_openssl_version_ok=no |
| 15836 |
+ |
fi |
| 15837 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15838 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15839 |
+ |
fi |
| 15840 |
+ |
|
| 15841 |
+ |
|
| 15842 |
+ |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 15843 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 15844 |
+ |
$as_echo "found" >&6; } |
| 15845 |
+ |
|
| 15846 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 15847 |
+ |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 15848 |
+ |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 15849 |
+ |
$as_echo_n "(cached) " >&6 |
| 15850 |
+ |
else |
| 15851 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 15852 |
+ |
LIBS="-lcrypto $LIBS" |
| 15853 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15854 |
+ |
/* end confdefs.h. */ |
| 15855 |
+ |
|
| 15856 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 15857 |
+ |
Use char because int might match the return type of a GCC |
| 15858 |
+ |
builtin and then its argument prototype would still apply. */ |
| 15859 |
+ |
#ifdef __cplusplus |
| 15860 |
+ |
extern "C" |
| 15861 |
+ |
#endif |
| 15862 |
+ |
char RSA_free (); |
| 15863 |
+ |
int |
| 15864 |
+ |
main () |
| 15865 |
+ |
{ |
| 15866 |
+ |
return RSA_free (); |
| 15867 |
+ |
; |
| 15868 |
+ |
return 0; |
| 15869 |
+ |
} |
| 15870 |
+ |
_ACEOF |
| 15871 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 15872 |
+ |
ac_cv_lib_crypto_RSA_free=yes |
| 15873 |
+ |
else |
| 15874 |
+ |
ac_cv_lib_crypto_RSA_free=no |
| 15875 |
+ |
fi |
| 15876 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 15877 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 15878 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 15879 |
+ |
fi |
| 15880 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 15881 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 15882 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 15883 |
+ |
cat >>confdefs.h <<_ACEOF |
| 15884 |
+ |
#define HAVE_LIBCRYPTO 1 |
| 15885 |
+ |
_ACEOF |
| 15886 |
+ |
|
| 15887 |
+ |
LIBS="-lcrypto $LIBS" |
| 15888 |
+ |
|
| 15889 |
+ |
fi |
| 15890 |
+ |
|
| 15891 |
+ |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 15892 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 15893 |
+ |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 15894 |
+ |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 15895 |
+ |
$as_echo_n "(cached) " >&6 |
| 15896 |
+ |
else |
| 15897 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 15898 |
+ |
LIBS="-lssl $LIBS" |
| 15899 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15900 |
+ |
/* end confdefs.h. */ |
| 15901 |
+ |
|
| 15902 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 15903 |
+ |
Use char because int might match the return type of a GCC |
| 15904 |
+ |
builtin and then its argument prototype would still apply. */ |
| 15905 |
+ |
#ifdef __cplusplus |
| 15906 |
+ |
extern "C" |
| 15907 |
+ |
#endif |
| 15908 |
+ |
char SSL_connect (); |
| 15909 |
+ |
int |
| 15910 |
+ |
main () |
| 15911 |
+ |
{ |
| 15912 |
+ |
return SSL_connect (); |
| 15913 |
+ |
; |
| 15914 |
+ |
return 0; |
| 15915 |
+ |
} |
| 15916 |
+ |
_ACEOF |
| 15917 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 15918 |
+ |
ac_cv_lib_ssl_SSL_connect=yes |
| 15919 |
+ |
else |
| 15920 |
+ |
ac_cv_lib_ssl_SSL_connect=no |
| 15921 |
+ |
fi |
| 15922 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 15923 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 15924 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 15925 |
+ |
fi |
| 15926 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 15927 |
+ |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 15928 |
+ |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 15929 |
+ |
cat >>confdefs.h <<_ACEOF |
| 15930 |
+ |
#define HAVE_LIBSSL 1 |
| 15931 |
+ |
_ACEOF |
| 15932 |
+ |
|
| 15933 |
+ |
LIBS="-lssl $LIBS" |
| 15934 |
+ |
|
| 15935 |
+ |
fi |
| 15936 |
+ |
|
| 15937 |
+ |
fi |
| 15938 |
+ |
|
| 15939 |
+ |
else |
| 15940 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
| 15941 |
+ |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
| 15942 |
+ |
cf_enable_openssl="no" |
| 15943 |
+ |
fi |
| 15944 |
+ |
fi |
| 15945 |
+ |
|
| 15946 |
+ |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 15947 |
+ |
ENABLE_SSL_TRUE= |
| 15948 |
+ |
ENABLE_SSL_FALSE='#' |
| 15949 |
+ |
else |
| 15950 |
+ |
ENABLE_SSL_TRUE='#' |
| 15951 |
+ |
ENABLE_SSL_FALSE= |
| 15952 |
+ |
fi |
| 15953 |
+ |
|
| 15954 |
+ |
|
| 15955 |
|
|
| 15956 |
|
|
| 15957 |
|
prefix_NONE= |
| 16039 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 16040 |
|
|
| 16041 |
|
|
| 16042 |
< |
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" |
| 16042 |
> |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile" |
| 16043 |
|
|
| 16044 |
|
|
| 16045 |
|
cat >confcache <<\_ACEOF |
| 16606 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
| 16607 |
|
# values after options handling. |
| 16608 |
|
ac_log=" |
| 16609 |
< |
This file was extended by ircd-hybrid $as_me 8beta1, which was |
| 16609 |
> |
This file was extended by ircd-hybrid $as_me 8.2.0, which was |
| 16610 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 16611 |
|
|
| 16612 |
|
CONFIG_FILES = $CONFIG_FILES |
| 16672 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16673 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 16674 |
|
ac_cs_version="\\ |
| 16675 |
< |
ircd-hybrid config.status 8beta1 |
| 16675 |
> |
ircd-hybrid config.status 8.2.0 |
| 16676 |
|
configured by $0, generated by GNU Autoconf 2.69, |
| 16677 |
|
with options \\"\$ac_cs_config\\" |
| 16678 |
|
|
| 17082 |
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 17083 |
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 17084 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15572 |
– |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
| 15573 |
– |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
| 17085 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 17086 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 15576 |
– |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
| 17087 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 17088 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 17089 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 17090 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15581 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15582 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 17091 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 17092 |
|
|
| 17093 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 17685 |
|
|
| 17686 |
|
case $ac_file$ac_mode in |
| 17687 |
|
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 17688 |
< |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 17688 |
> |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 17689 |
|
# are listed without --file. Let's play safe and only enable the eval |
| 17690 |
|
# if we detect the quoting. |
| 17691 |
|
case $CONFIG_FILES in |
| 17736 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 17737 |
|
test -z "$DEPDIR" && continue |
| 17738 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 17739 |
< |
test -z "am__include" && continue |
| 17739 |
> |
test -z "$am__include" && continue |
| 17740 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 17741 |
|
# Find all dependency output files, they are included files with |
| 17742 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |