| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1856 2013-04-24 19:43:22Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 4363 2014-08-02 22:23:09Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
< |
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 4 |
> |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0rc2. |
| 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='TRUNK' |
| 597 |
< |
PACKAGE_STRING='ircd-hybrid TRUNK' |
| 596 |
> |
PACKAGE_VERSION='8.2.0rc2' |
| 597 |
> |
PACKAGE_STRING='ircd-hybrid 8.2.0rc2' |
| 598 |
|
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
| 599 |
|
PACKAGE_URL='' |
| 600 |
|
|
| 805 |
|
with_ltdl_include |
| 806 |
|
with_ltdl_lib |
| 807 |
|
enable_ltdl_install |
| 808 |
< |
enable_libpcre |
| 809 |
< |
enable_libGeoIP |
| 810 |
< |
enable_openssl |
| 808 |
> |
enable_libgeoip |
| 809 |
|
enable_assert |
| 810 |
|
enable_kqueue |
| 811 |
|
enable_epoll |
| 812 |
|
enable_devpoll |
| 813 |
|
enable_poll |
| 816 |
– |
enable_select |
| 817 |
– |
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 TRUNK to adapt to many kinds of systems. |
| 1369 |
> |
\`configure' configures ircd-hybrid 8.2.0rc2 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 TRUNK:";; |
| 1439 |
> |
short | recursive ) echo "Configuration of ircd-hybrid 8.2.0rc2:";; |
| 1440 |
|
esac |
| 1441 |
|
cat <<\_ACEOF |
| 1442 |
|
|
| 1459 |
|
optimize for fast installation [default=yes] |
| 1460 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1461 |
|
--enable-ltdl-install install libltdl |
| 1465 |
– |
--disable-libpcre Disable PCRE support |
| 1462 |
|
--disable-libgeoip Disable GeoIP support |
| 1467 |
– |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1468 |
– |
--disable-openssl Disable OpenSSL support. |
| 1463 |
|
--enable-assert Enable assert() statements |
| 1464 |
|
--enable-kqueue Force kqueue usage. |
| 1465 |
|
--enable-epoll Force epoll usage. |
| 1466 |
|
--enable-devpoll Force devpoll usage. |
| 1467 |
|
--enable-poll Force poll usage. |
| 1474 |
– |
--enable-select Force select usage. |
| 1475 |
– |
--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] |
| 1564 |
|
test -n "$ac_init_help" && exit $ac_status |
| 1565 |
|
if $ac_init_version; then |
| 1566 |
|
cat <<\_ACEOF |
| 1567 |
< |
ircd-hybrid configure TRUNK |
| 1567 |
> |
ircd-hybrid configure 8.2.0rc2 |
| 1568 |
|
generated by GNU Autoconf 2.69 |
| 1569 |
|
|
| 1570 |
|
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1939 |
|
|
| 1940 |
|
} # ac_fn_c_check_type |
| 1941 |
|
|
| 1948 |
– |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1949 |
– |
# ---------------------------------------------------- |
| 1950 |
– |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 1951 |
– |
# INCLUDES, setting cache variable VAR accordingly. |
| 1952 |
– |
ac_fn_c_check_member () |
| 1953 |
– |
{ |
| 1954 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1955 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1956 |
– |
$as_echo_n "checking for $2.$3... " >&6; } |
| 1957 |
– |
if eval \${$4+:} false; then : |
| 1958 |
– |
$as_echo_n "(cached) " >&6 |
| 1959 |
– |
else |
| 1960 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1961 |
– |
/* end confdefs.h. */ |
| 1962 |
– |
$5 |
| 1963 |
– |
int |
| 1964 |
– |
main () |
| 1965 |
– |
{ |
| 1966 |
– |
static $2 ac_aggr; |
| 1967 |
– |
if (ac_aggr.$3) |
| 1968 |
– |
return 0; |
| 1969 |
– |
; |
| 1970 |
– |
return 0; |
| 1971 |
– |
} |
| 1972 |
– |
_ACEOF |
| 1973 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1974 |
– |
eval "$4=yes" |
| 1975 |
– |
else |
| 1976 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1977 |
– |
/* end confdefs.h. */ |
| 1978 |
– |
$5 |
| 1979 |
– |
int |
| 1980 |
– |
main () |
| 1981 |
– |
{ |
| 1982 |
– |
static $2 ac_aggr; |
| 1983 |
– |
if (sizeof ac_aggr.$3) |
| 1984 |
– |
return 0; |
| 1985 |
– |
; |
| 1986 |
– |
return 0; |
| 1987 |
– |
} |
| 1988 |
– |
_ACEOF |
| 1989 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1990 |
– |
eval "$4=yes" |
| 1991 |
– |
else |
| 1992 |
– |
eval "$4=no" |
| 1993 |
– |
fi |
| 1994 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 |
– |
fi |
| 1996 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1997 |
– |
fi |
| 1998 |
– |
eval ac_res=\$$4 |
| 1999 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2000 |
– |
$as_echo "$ac_res" >&6; } |
| 2001 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2002 |
– |
|
| 2003 |
– |
} # ac_fn_c_check_member |
| 2004 |
– |
|
| 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 TRUNK, which was |
| 2036 |
> |
It was created by ircd-hybrid $as_me 8.2.0rc2, which was |
| 2037 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 2038 |
|
|
| 2039 |
|
$ $0 $@ |
| 2392 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2393 |
|
|
| 2394 |
|
|
| 2395 |
< |
am__api_version='1.13' |
| 2395 |
> |
am__api_version='1.14' |
| 2396 |
|
|
| 2397 |
|
ac_aux_dir= |
| 2398 |
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2907 |
|
|
| 2908 |
|
# Define the identity of the package. |
| 2909 |
|
PACKAGE='ircd-hybrid' |
| 2910 |
< |
VERSION='TRUNK' |
| 2910 |
> |
VERSION='8.2.0rc2' |
| 2911 |
|
|
| 2912 |
|
|
| 2913 |
|
cat >>confdefs.h <<_ACEOF |
| 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 |
+ |
|
| 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 |
|
|
| 13439 |
|
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13440 |
|
fi |
| 13441 |
|
|
| 13442 |
+ |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13443 |
+ |
" |
| 13444 |
+ |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13445 |
+ |
|
| 13446 |
+ |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13447 |
+ |
|
| 13448 |
+ |
fi |
| 13449 |
+ |
|
| 13450 |
|
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
| 13451 |
|
#include <sys/socket.h> |
| 13452 |
|
#include <netdb.h> |
| 13487 |
|
|
| 13488 |
|
fi |
| 13489 |
|
|
| 13294 |
– |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
| 13295 |
– |
<sys/socket.h> |
| 13296 |
– |
" |
| 13297 |
– |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
| 13298 |
– |
|
| 13299 |
– |
cat >>confdefs.h <<_ACEOF |
| 13300 |
– |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
| 13301 |
– |
_ACEOF |
| 13302 |
– |
|
| 13303 |
– |
|
| 13304 |
– |
fi |
| 13305 |
– |
|
| 13306 |
– |
|
| 13307 |
– |
|
| 13308 |
– |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13309 |
– |
" |
| 13310 |
– |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13311 |
– |
|
| 13312 |
– |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13313 |
– |
|
| 13314 |
– |
fi |
| 13315 |
– |
|
| 13490 |
|
|
| 13491 |
|
|
| 13492 |
|
# Checks for typedefs, structures, and compiler characteristics. |
| 13832 |
|
fi |
| 13833 |
|
|
| 13834 |
|
|
| 13835 |
< |
# Check whether --enable-libpcre was given. |
| 13836 |
< |
if test "${enable_libpcre+set}" = set; then : |
| 13837 |
< |
enableval=$enable_libpcre; |
| 13664 |
< |
else |
| 13665 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 13666 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 13667 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 13668 |
< |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 13669 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13670 |
< |
$as_echo_n "(cached) " >&6 |
| 13671 |
< |
else |
| 13672 |
< |
ac_func_search_save_LIBS=$LIBS |
| 13673 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13674 |
< |
/* end confdefs.h. */ |
| 13675 |
< |
|
| 13676 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 13677 |
< |
Use char because int might match the return type of a GCC |
| 13678 |
< |
builtin and then its argument prototype would still apply. */ |
| 13679 |
< |
#ifdef __cplusplus |
| 13680 |
< |
extern "C" |
| 13681 |
< |
#endif |
| 13682 |
< |
char pcre_study (); |
| 13683 |
< |
int |
| 13684 |
< |
main () |
| 13685 |
< |
{ |
| 13686 |
< |
return pcre_study (); |
| 13687 |
< |
; |
| 13688 |
< |
return 0; |
| 13689 |
< |
} |
| 13690 |
< |
_ACEOF |
| 13691 |
< |
for ac_lib in '' pcre; do |
| 13692 |
< |
if test -z "$ac_lib"; then |
| 13693 |
< |
ac_res="none required" |
| 13694 |
< |
else |
| 13695 |
< |
ac_res=-l$ac_lib |
| 13696 |
< |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13697 |
< |
fi |
| 13698 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 13699 |
< |
ac_cv_search_pcre_study=$ac_res |
| 13700 |
< |
fi |
| 13701 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 13702 |
< |
conftest$ac_exeext |
| 13703 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13704 |
< |
break |
| 13705 |
< |
fi |
| 13706 |
< |
done |
| 13707 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13708 |
< |
|
| 13709 |
< |
else |
| 13710 |
< |
ac_cv_search_pcre_study=no |
| 13711 |
< |
fi |
| 13712 |
< |
rm conftest.$ac_ext |
| 13713 |
< |
LIBS=$ac_func_search_save_LIBS |
| 13714 |
< |
fi |
| 13715 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 13716 |
< |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13717 |
< |
ac_res=$ac_cv_search_pcre_study |
| 13718 |
< |
if test "$ac_res" != no; then : |
| 13719 |
< |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13720 |
< |
|
| 13721 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 13722 |
< |
|
| 13723 |
< |
fi |
| 13724 |
< |
|
| 13725 |
< |
fi |
| 13726 |
< |
|
| 13727 |
< |
|
| 13728 |
< |
fi |
| 13729 |
< |
|
| 13730 |
< |
|
| 13731 |
< |
# Check whether --enable-libGeoIP was given. |
| 13732 |
< |
if test "${enable_libGeoIP+set}" = set; then : |
| 13733 |
< |
enableval=$enable_libGeoIP; |
| 13835 |
> |
# Check whether --enable-libgeoip was given. |
| 13836 |
> |
if test "${enable_libgeoip+set}" = set; then : |
| 13837 |
> |
enableval=$enable_libgeoip; |
| 13838 |
|
else |
| 13839 |
|
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 13840 |
|
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 13902 |
|
fi |
| 13903 |
|
|
| 13904 |
|
|
| 13801 |
– |
# Check whether --enable-openssl was given. |
| 13802 |
– |
if test "${enable_openssl+set}" = set; then : |
| 13803 |
– |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 13804 |
– |
else |
| 13805 |
– |
cf_enable_openssl="auto" |
| 13806 |
– |
fi |
| 13807 |
– |
|
| 13808 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
| 13809 |
– |
$as_echo_n "checking for OpenSSL... " >&6; } |
| 13810 |
– |
if test "$cf_enable_openssl" != "no"; then |
| 13811 |
– |
cf_openssl_basedir="" |
| 13812 |
– |
if test "$cf_enable_openssl" != "auto" && |
| 13813 |
– |
test "$cf_enable_openssl" != "yes"; then |
| 13814 |
– |
cf_openssl_basedir="${cf_enable_openssl}" |
| 13815 |
– |
else |
| 13816 |
– |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 13817 |
– |
/opt /opt/openssl /usr/local/openssl; do |
| 13818 |
– |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 13819 |
– |
cf_openssl_basedir="${dirs}" |
| 13820 |
– |
break |
| 13821 |
– |
fi |
| 13822 |
– |
done |
| 13823 |
– |
unset dirs |
| 13824 |
– |
fi |
| 13825 |
– |
|
| 13826 |
– |
if test ! -z "$cf_openssl_basedir"; then |
| 13827 |
– |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 13828 |
– |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 13829 |
– |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 13830 |
– |
else |
| 13831 |
– |
cf_openssl_basedir="" |
| 13832 |
– |
fi |
| 13833 |
– |
else |
| 13834 |
– |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 13835 |
– |
cf_openssl_basedir="/usr" |
| 13836 |
– |
fi |
| 13837 |
– |
fi |
| 13838 |
– |
|
| 13839 |
– |
if test ! -z "$cf_openssl_basedir"; then |
| 13840 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 13841 |
– |
$as_echo "$cf_openssl_basedir" >&6; } |
| 13842 |
– |
cf_enable_openssl="yes" |
| 13843 |
– |
else |
| 13844 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 13845 |
– |
$as_echo "not found. Please check your path." >&6; } |
| 13846 |
– |
cf_enable_openssl="no" |
| 13847 |
– |
fi |
| 13848 |
– |
unset cf_openssl_basedir |
| 13849 |
– |
else |
| 13850 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 13851 |
– |
$as_echo "disabled" >&6; } |
| 13852 |
– |
fi |
| 13853 |
– |
|
| 13854 |
– |
if test "$cf_enable_openssl" != "no"; then : |
| 13855 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5 |
| 13856 |
– |
$as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; } |
| 13857 |
– |
if test "$cross_compiling" = yes; then : |
| 13858 |
– |
cf_openssl_version_ok=no |
| 13859 |
– |
else |
| 13860 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13861 |
– |
/* end confdefs.h. */ |
| 13862 |
– |
|
| 13863 |
– |
|
| 13864 |
– |
#include <openssl/opensslv.h> |
| 13865 |
– |
#include <stdlib.h> |
| 13866 |
– |
int |
| 13867 |
– |
main () |
| 13868 |
– |
{ |
| 13869 |
– |
exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f)); |
| 13870 |
– |
; |
| 13871 |
– |
return 0; |
| 13872 |
– |
} |
| 13873 |
– |
_ACEOF |
| 13874 |
– |
if ac_fn_c_try_run "$LINENO"; then : |
| 13875 |
– |
cf_openssl_version_ok=yes |
| 13876 |
– |
else |
| 13877 |
– |
cf_openssl_version_ok=no |
| 13878 |
– |
fi |
| 13879 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13880 |
– |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13881 |
– |
fi |
| 13882 |
– |
|
| 13883 |
– |
|
| 13884 |
– |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 13885 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 13886 |
– |
$as_echo "found" >&6; } |
| 13887 |
– |
|
| 13888 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 13889 |
– |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 13890 |
– |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 13891 |
– |
$as_echo_n "(cached) " >&6 |
| 13892 |
– |
else |
| 13893 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 13894 |
– |
LIBS="-lcrypto $LIBS" |
| 13895 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13896 |
– |
/* end confdefs.h. */ |
| 13897 |
– |
|
| 13898 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13899 |
– |
Use char because int might match the return type of a GCC |
| 13900 |
– |
builtin and then its argument prototype would still apply. */ |
| 13901 |
– |
#ifdef __cplusplus |
| 13902 |
– |
extern "C" |
| 13903 |
– |
#endif |
| 13904 |
– |
char RSA_free (); |
| 13905 |
– |
int |
| 13906 |
– |
main () |
| 13907 |
– |
{ |
| 13908 |
– |
return RSA_free (); |
| 13909 |
– |
; |
| 13910 |
– |
return 0; |
| 13911 |
– |
} |
| 13912 |
– |
_ACEOF |
| 13913 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 13914 |
– |
ac_cv_lib_crypto_RSA_free=yes |
| 13915 |
– |
else |
| 13916 |
– |
ac_cv_lib_crypto_RSA_free=no |
| 13917 |
– |
fi |
| 13918 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 13919 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 13920 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 13921 |
– |
fi |
| 13922 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 13923 |
– |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 13924 |
– |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 13925 |
– |
cat >>confdefs.h <<_ACEOF |
| 13926 |
– |
#define HAVE_LIBCRYPTO 1 |
| 13927 |
– |
_ACEOF |
| 13928 |
– |
|
| 13929 |
– |
LIBS="-lcrypto $LIBS" |
| 13930 |
– |
|
| 13931 |
– |
fi |
| 13932 |
– |
|
| 13933 |
– |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 13934 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 13935 |
– |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 13936 |
– |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 13937 |
– |
$as_echo_n "(cached) " >&6 |
| 13938 |
– |
else |
| 13939 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 13940 |
– |
LIBS="-lssl $LIBS" |
| 13941 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13942 |
– |
/* end confdefs.h. */ |
| 13943 |
– |
|
| 13944 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13945 |
– |
Use char because int might match the return type of a GCC |
| 13946 |
– |
builtin and then its argument prototype would still apply. */ |
| 13947 |
– |
#ifdef __cplusplus |
| 13948 |
– |
extern "C" |
| 13949 |
– |
#endif |
| 13950 |
– |
char SSL_connect (); |
| 13951 |
– |
int |
| 13952 |
– |
main () |
| 13953 |
– |
{ |
| 13954 |
– |
return SSL_connect (); |
| 13955 |
– |
; |
| 13956 |
– |
return 0; |
| 13957 |
– |
} |
| 13958 |
– |
_ACEOF |
| 13959 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 13960 |
– |
ac_cv_lib_ssl_SSL_connect=yes |
| 13961 |
– |
else |
| 13962 |
– |
ac_cv_lib_ssl_SSL_connect=no |
| 13963 |
– |
fi |
| 13964 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 13965 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 13966 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 13967 |
– |
fi |
| 13968 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 13969 |
– |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 13970 |
– |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 13971 |
– |
cat >>confdefs.h <<_ACEOF |
| 13972 |
– |
#define HAVE_LIBSSL 1 |
| 13973 |
– |
_ACEOF |
| 13974 |
– |
|
| 13975 |
– |
LIBS="-lssl $LIBS" |
| 13976 |
– |
|
| 13977 |
– |
fi |
| 13978 |
– |
|
| 13979 |
– |
fi |
| 13980 |
– |
|
| 13981 |
– |
else |
| 13982 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 13983 |
– |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 13984 |
– |
cf_enable_openssl="no" |
| 13985 |
– |
fi |
| 13986 |
– |
fi |
| 13987 |
– |
|
| 13988 |
– |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 13989 |
– |
ENABLE_SSL_TRUE= |
| 13990 |
– |
ENABLE_SSL_FALSE='#' |
| 13991 |
– |
else |
| 13992 |
– |
ENABLE_SSL_TRUE='#' |
| 13993 |
– |
ENABLE_SSL_FALSE= |
| 13994 |
– |
fi |
| 13995 |
– |
|
| 13996 |
– |
|
| 13997 |
– |
|
| 13905 |
|
# Check whether --enable-assert was given. |
| 13906 |
|
if test "${enable_assert+set}" = set; then : |
| 13907 |
|
enableval=$enable_assert; assert=$enableval |
| 13917 |
|
fi |
| 13918 |
|
|
| 13919 |
|
|
| 14013 |
– |
|
| 13920 |
|
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 13921 |
|
|
| 13922 |
|
|
| 13923 |
< |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
| 13923 |
> |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h |
| 13924 |
|
|
| 13925 |
|
|
| 13926 |
< |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h |
| 13926 |
> |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h |
| 13927 |
|
|
| 13928 |
|
|
| 13929 |
< |
$as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h |
| 13929 |
> |
$as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h |
| 13930 |
|
|
| 13931 |
|
|
| 13932 |
< |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h |
| 13932 |
> |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h |
| 13933 |
|
|
| 13934 |
|
|
| 13935 |
< |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h |
| 13935 |
> |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h |
| 13936 |
|
|
| 13937 |
|
|
| 13938 |
< |
$as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h |
| 13938 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h |
| 13939 |
|
|
| 13940 |
|
|
| 13941 |
|
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 13942 |
|
|
| 13943 |
|
|
| 13944 |
< |
$as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h |
| 13944 |
> |
$as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h |
| 13945 |
> |
|
| 13946 |
|
|
| 13947 |
+ |
$as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h |
| 13948 |
|
|
| 14041 |
– |
$as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h |
| 13949 |
|
|
| 13950 |
+ |
$as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h |
| 13951 |
|
|
| 13952 |
< |
$as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h |
| 13952 |
> |
|
| 13953 |
> |
$as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h |
| 13954 |
> |
|
| 13955 |
> |
|
| 13956 |
> |
$as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h |
| 13957 |
> |
|
| 13958 |
> |
|
| 13959 |
> |
$as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h |
| 13960 |
|
|
| 13961 |
|
|
| 13962 |
|
# Argument processing. |
| 13963 |
|
|
| 13964 |
< |
desired_iopoll_mechanism="none" |
| 13965 |
< |
# Check whether --enable-kqueue was given. |
| 13964 |
> |
desired_iopoll_mechanism="none" |
| 13965 |
> |
|
| 13966 |
> |
# Check whether --enable-kqueue was given. |
| 13967 |
|
if test "${enable_kqueue+set}" = set; then : |
| 13968 |
|
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 13969 |
|
fi |
| 13983 |
|
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 13984 |
|
fi |
| 13985 |
|
|
| 14070 |
– |
# Check whether --enable-select was given. |
| 14071 |
– |
if test "${enable_select+set}" = set; then : |
| 14072 |
– |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 14073 |
– |
fi |
| 13986 |
|
|
| 13987 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 13987 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 13988 |
|
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 13989 |
+ |
|
| 13990 |
|
iopoll_mechanism_none=0 |
| 13991 |
|
|
| 13992 |
|
cat >>confdefs.h <<_ACEOF |
| 13993 |
|
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 13994 |
|
_ACEOF |
| 13995 |
|
|
| 13996 |
< |
iopoll_mechanism_kqueue=1 |
| 13996 |
> |
|
| 13997 |
> |
iopoll_mechanism_kqueue=1 |
| 13998 |
|
|
| 13999 |
|
cat >>confdefs.h <<_ACEOF |
| 14000 |
|
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 14048 |
|
fi |
| 14049 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14050 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14051 |
< |
iopoll_mechanism_epoll=2 |
| 14051 |
> |
|
| 14052 |
> |
iopoll_mechanism_epoll=2 |
| 14053 |
|
|
| 14054 |
|
cat >>confdefs.h <<_ACEOF |
| 14055 |
|
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 14056 |
|
_ACEOF |
| 14057 |
|
|
| 14143 |
– |
if test "$cross_compiling" = yes; then : |
| 14144 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14145 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14146 |
– |
as_fn_error $? "cannot run test program while cross compiling |
| 14147 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 14148 |
– |
else |
| 14058 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14059 |
|
/* end confdefs.h. */ |
| 14151 |
– |
|
| 14060 |
|
#include <sys/epoll.h> |
| 14153 |
– |
#include <sys/syscall.h> |
| 14154 |
– |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
| 14155 |
– |
#if !defined(__NR_epoll_create) |
| 14156 |
– |
#if defined(__ia64__) |
| 14157 |
– |
#define __NR_epoll_create 1243 |
| 14158 |
– |
#elif defined(__x86_64__) |
| 14159 |
– |
#define __NR_epoll_create 214 |
| 14160 |
– |
#elif defined(__sparc64__) || defined(__sparc__) |
| 14161 |
– |
#define __NR_epoll_create 193 |
| 14162 |
– |
#elif defined(__s390__) || defined(__m68k__) |
| 14163 |
– |
#define __NR_epoll_create 249 |
| 14164 |
– |
#elif defined(__ppc64__) || defined(__ppc__) |
| 14165 |
– |
#define __NR_epoll_create 236 |
| 14166 |
– |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
| 14167 |
– |
#define __NR_epoll_create 224 |
| 14168 |
– |
#elif defined(__alpha__) |
| 14169 |
– |
#define __NR_epoll_create 407 |
| 14170 |
– |
#elif defined(__sh64__) |
| 14171 |
– |
#define __NR_epoll_create 282 |
| 14172 |
– |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
| 14173 |
– |
#define __NR_epoll_create 254 |
| 14174 |
– |
#else |
| 14175 |
– |
#error No system call numbers defined for epoll family. |
| 14176 |
– |
#endif |
| 14177 |
– |
#endif |
| 14178 |
– |
_syscall1(int, epoll_create, int, size) |
| 14179 |
– |
#endif |
| 14180 |
– |
|
| 14061 |
|
int |
| 14062 |
|
main () |
| 14063 |
|
{ |
| 14064 |
< |
return epoll_create(256) == -1 ? 1 : 0 |
| 14064 |
> |
epoll_create(256); |
| 14065 |
|
; |
| 14066 |
|
return 0; |
| 14067 |
|
} |
| 14068 |
|
_ACEOF |
| 14069 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14069 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14070 |
|
is_epoll_mechanism_available="yes" |
| 14071 |
|
else |
| 14072 |
|
is_epoll_mechanism_available="no" |
| 14073 |
|
fi |
| 14074 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14075 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14196 |
< |
fi |
| 14074 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 14075 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14076 |
|
|
| 14077 |
< |
iopoll_mechanism_devpoll=3 |
| 14077 |
> |
iopoll_mechanism_devpoll=3 |
| 14078 |
|
|
| 14079 |
|
cat >>confdefs.h <<_ACEOF |
| 14080 |
|
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 14124 |
|
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14125 |
|
|
| 14126 |
|
fi |
| 14127 |
< |
iopoll_mechanism_poll=4 |
| 14127 |
> |
|
| 14128 |
> |
iopoll_mechanism_poll=4 |
| 14129 |
|
|
| 14130 |
|
cat >>confdefs.h <<_ACEOF |
| 14131 |
|
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14179 |
|
fi |
| 14180 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14181 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14302 |
– |
iopoll_mechanism_select=5 |
| 14303 |
– |
|
| 14304 |
– |
cat >>confdefs.h <<_ACEOF |
| 14305 |
– |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14306 |
– |
_ACEOF |
| 14307 |
– |
|
| 14308 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14309 |
– |
/* end confdefs.h. */ |
| 14310 |
– |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14311 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14312 |
– |
#define select innocuous_select |
| 14313 |
– |
|
| 14314 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 14315 |
– |
which can conflict with char select (); below. |
| 14316 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14317 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 14182 |
|
|
| 14183 |
< |
#ifdef __STDC__ |
| 14184 |
< |
# include <limits.h> |
| 14321 |
< |
#else |
| 14322 |
< |
# include <assert.h> |
| 14323 |
< |
#endif |
| 14324 |
< |
|
| 14325 |
< |
#undef select |
| 14326 |
< |
|
| 14327 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 14328 |
< |
Use char because int might match the return type of a GCC |
| 14329 |
< |
builtin and then its argument prototype would still apply. */ |
| 14330 |
< |
#ifdef __cplusplus |
| 14331 |
< |
extern "C" |
| 14332 |
< |
#endif |
| 14333 |
< |
char select (); |
| 14334 |
< |
/* The GNU C library defines this for functions which it implements |
| 14335 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14336 |
< |
something starting with __ and the normal name is an alias. */ |
| 14337 |
< |
#if defined __stub_select || defined __stub___select |
| 14338 |
< |
choke me |
| 14339 |
< |
#endif |
| 14340 |
< |
|
| 14341 |
< |
int |
| 14342 |
< |
main () |
| 14343 |
< |
{ |
| 14344 |
< |
return select (); |
| 14345 |
< |
; |
| 14346 |
< |
return 0; |
| 14347 |
< |
} |
| 14348 |
< |
_ACEOF |
| 14349 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14350 |
< |
is_select_mechanism_available="yes" |
| 14351 |
< |
else |
| 14352 |
< |
is_select_mechanism_available="no" |
| 14353 |
< |
fi |
| 14354 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14355 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 14356 |
< |
optimal_iopoll_mechanism="none" |
| 14357 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 14183 |
> |
optimal_iopoll_mechanism="none" |
| 14184 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
| 14185 |
|
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14186 |
|
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14187 |
|
optimal_iopoll_mechanism="$mechanism" |
| 14188 |
|
break |
| 14189 |
|
fi |
| 14190 |
|
done |
| 14191 |
< |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14191 |
> |
|
| 14192 |
> |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14193 |
|
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14194 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14195 |
|
$as_echo "none" >&6; } |
| 14211 |
|
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14212 |
|
fi |
| 14213 |
|
fi |
| 14214 |
< |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14214 |
> |
|
| 14215 |
> |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14216 |
|
|
| 14217 |
|
cat >>confdefs.h <<_ACEOF |
| 14218 |
|
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 14220 |
|
|
| 14221 |
|
|
| 14222 |
|
|
| 14394 |
– |
# Check whether --enable-halfops was given. |
| 14395 |
– |
if test "${enable_halfops+set}" = set; then : |
| 14396 |
– |
enableval=$enable_halfops; halfops="$enableval" |
| 14397 |
– |
else |
| 14398 |
– |
halfops="no" |
| 14399 |
– |
fi |
| 14400 |
– |
|
| 14401 |
– |
if test "$halfops" = "yes" ; then |
| 14402 |
– |
|
| 14403 |
– |
$as_echo "#define HALFOPS 1" >>confdefs.h |
| 14404 |
– |
|
| 14405 |
– |
fi |
| 14406 |
– |
|
| 14407 |
– |
|
| 14223 |
|
# Check whether --enable-debugging was given. |
| 14224 |
|
if test "${enable_debugging+set}" = set; then : |
| 14225 |
|
enableval=$enable_debugging; debugging="$enableval" |
| 14239 |
|
warnings="no" |
| 14240 |
|
fi |
| 14241 |
|
|
| 14242 |
+ |
|
| 14243 |
|
if test "$warnings" = "yes" ; then |
| 14244 |
< |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 14244 |
> |
|
| 14245 |
> |
|
| 14246 |
> |
|
| 14247 |
> |
|
| 14248 |
> |
for flag in -Wall; do |
| 14249 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14250 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14251 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14252 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14253 |
> |
$as_echo_n "(cached) " >&6 |
| 14254 |
> |
else |
| 14255 |
> |
|
| 14256 |
> |
ax_check_save_flags=$CFLAGS |
| 14257 |
> |
CFLAGS="$CFLAGS $flag" |
| 14258 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14259 |
> |
/* end confdefs.h. */ |
| 14260 |
> |
|
| 14261 |
> |
int |
| 14262 |
> |
main () |
| 14263 |
> |
{ |
| 14264 |
> |
|
| 14265 |
> |
; |
| 14266 |
> |
return 0; |
| 14267 |
> |
} |
| 14268 |
> |
_ACEOF |
| 14269 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14270 |
> |
eval "$as_CACHEVAR=yes" |
| 14271 |
> |
else |
| 14272 |
> |
eval "$as_CACHEVAR=no" |
| 14273 |
> |
fi |
| 14274 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14275 |
> |
CFLAGS=$ax_check_save_flags |
| 14276 |
> |
fi |
| 14277 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14278 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14279 |
> |
$as_echo "$ac_res" >&6; } |
| 14280 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14281 |
> |
if ${CFLAGS+:} false; then : |
| 14282 |
> |
case " $CFLAGS " in |
| 14283 |
> |
*" $flag "*) |
| 14284 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14285 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14286 |
> |
ac_status=$? |
| 14287 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14288 |
> |
test $ac_status = 0; } |
| 14289 |
> |
;; |
| 14290 |
> |
*) |
| 14291 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14292 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14293 |
> |
ac_status=$? |
| 14294 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14295 |
> |
test $ac_status = 0; } |
| 14296 |
> |
CFLAGS="$CFLAGS $flag" |
| 14297 |
> |
;; |
| 14298 |
> |
esac |
| 14299 |
> |
else |
| 14300 |
> |
CFLAGS="$flag" |
| 14301 |
> |
fi |
| 14302 |
> |
|
| 14303 |
> |
else |
| 14304 |
> |
: |
| 14305 |
> |
fi |
| 14306 |
> |
|
| 14307 |
> |
done |
| 14308 |
> |
|
| 14309 |
> |
|
| 14310 |
> |
|
| 14311 |
> |
|
| 14312 |
> |
|
| 14313 |
> |
for flag in -Wextra; do |
| 14314 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14315 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14316 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14317 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14318 |
> |
$as_echo_n "(cached) " >&6 |
| 14319 |
> |
else |
| 14320 |
> |
|
| 14321 |
> |
ax_check_save_flags=$CFLAGS |
| 14322 |
> |
CFLAGS="$CFLAGS $flag" |
| 14323 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14324 |
> |
/* end confdefs.h. */ |
| 14325 |
> |
|
| 14326 |
> |
int |
| 14327 |
> |
main () |
| 14328 |
> |
{ |
| 14329 |
> |
|
| 14330 |
> |
; |
| 14331 |
> |
return 0; |
| 14332 |
> |
} |
| 14333 |
> |
_ACEOF |
| 14334 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14335 |
> |
eval "$as_CACHEVAR=yes" |
| 14336 |
> |
else |
| 14337 |
> |
eval "$as_CACHEVAR=no" |
| 14338 |
> |
fi |
| 14339 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14340 |
> |
CFLAGS=$ax_check_save_flags |
| 14341 |
> |
fi |
| 14342 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14343 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14344 |
> |
$as_echo "$ac_res" >&6; } |
| 14345 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14346 |
> |
if ${CFLAGS+:} false; then : |
| 14347 |
> |
case " $CFLAGS " in |
| 14348 |
> |
*" $flag "*) |
| 14349 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14350 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14351 |
> |
ac_status=$? |
| 14352 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14353 |
> |
test $ac_status = 0; } |
| 14354 |
> |
;; |
| 14355 |
> |
*) |
| 14356 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14357 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14358 |
> |
ac_status=$? |
| 14359 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14360 |
> |
test $ac_status = 0; } |
| 14361 |
> |
CFLAGS="$CFLAGS $flag" |
| 14362 |
> |
;; |
| 14363 |
> |
esac |
| 14364 |
> |
else |
| 14365 |
> |
CFLAGS="$flag" |
| 14366 |
> |
fi |
| 14367 |
> |
|
| 14368 |
> |
else |
| 14369 |
> |
: |
| 14370 |
> |
fi |
| 14371 |
> |
|
| 14372 |
> |
done |
| 14373 |
> |
|
| 14374 |
> |
|
| 14375 |
> |
|
| 14376 |
> |
|
| 14377 |
> |
|
| 14378 |
> |
for flag in -Wno-unused; do |
| 14379 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14380 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14381 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14382 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14383 |
> |
$as_echo_n "(cached) " >&6 |
| 14384 |
> |
else |
| 14385 |
> |
|
| 14386 |
> |
ax_check_save_flags=$CFLAGS |
| 14387 |
> |
CFLAGS="$CFLAGS $flag" |
| 14388 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14389 |
> |
/* end confdefs.h. */ |
| 14390 |
> |
|
| 14391 |
> |
int |
| 14392 |
> |
main () |
| 14393 |
> |
{ |
| 14394 |
> |
|
| 14395 |
> |
; |
| 14396 |
> |
return 0; |
| 14397 |
> |
} |
| 14398 |
> |
_ACEOF |
| 14399 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14400 |
> |
eval "$as_CACHEVAR=yes" |
| 14401 |
> |
else |
| 14402 |
> |
eval "$as_CACHEVAR=no" |
| 14403 |
> |
fi |
| 14404 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14405 |
> |
CFLAGS=$ax_check_save_flags |
| 14406 |
> |
fi |
| 14407 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14408 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14409 |
> |
$as_echo "$ac_res" >&6; } |
| 14410 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14411 |
> |
if ${CFLAGS+:} false; then : |
| 14412 |
> |
case " $CFLAGS " in |
| 14413 |
> |
*" $flag "*) |
| 14414 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14415 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14416 |
> |
ac_status=$? |
| 14417 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14418 |
> |
test $ac_status = 0; } |
| 14419 |
> |
;; |
| 14420 |
> |
*) |
| 14421 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14422 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14423 |
> |
ac_status=$? |
| 14424 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14425 |
> |
test $ac_status = 0; } |
| 14426 |
> |
CFLAGS="$CFLAGS $flag" |
| 14427 |
> |
;; |
| 14428 |
> |
esac |
| 14429 |
> |
else |
| 14430 |
> |
CFLAGS="$flag" |
| 14431 |
> |
fi |
| 14432 |
> |
|
| 14433 |
> |
else |
| 14434 |
> |
: |
| 14435 |
> |
fi |
| 14436 |
> |
|
| 14437 |
> |
done |
| 14438 |
> |
|
| 14439 |
> |
|
| 14440 |
> |
|
| 14441 |
> |
|
| 14442 |
> |
|
| 14443 |
> |
for flag in -Wcast-qual; do |
| 14444 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14445 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14446 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14447 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14448 |
> |
$as_echo_n "(cached) " >&6 |
| 14449 |
> |
else |
| 14450 |
> |
|
| 14451 |
> |
ax_check_save_flags=$CFLAGS |
| 14452 |
> |
CFLAGS="$CFLAGS $flag" |
| 14453 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14454 |
> |
/* end confdefs.h. */ |
| 14455 |
> |
|
| 14456 |
> |
int |
| 14457 |
> |
main () |
| 14458 |
> |
{ |
| 14459 |
> |
|
| 14460 |
> |
; |
| 14461 |
> |
return 0; |
| 14462 |
> |
} |
| 14463 |
> |
_ACEOF |
| 14464 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14465 |
> |
eval "$as_CACHEVAR=yes" |
| 14466 |
> |
else |
| 14467 |
> |
eval "$as_CACHEVAR=no" |
| 14468 |
> |
fi |
| 14469 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14470 |
> |
CFLAGS=$ax_check_save_flags |
| 14471 |
> |
fi |
| 14472 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14473 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14474 |
> |
$as_echo "$ac_res" >&6; } |
| 14475 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14476 |
> |
if ${CFLAGS+:} false; then : |
| 14477 |
> |
case " $CFLAGS " in |
| 14478 |
> |
*" $flag "*) |
| 14479 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14480 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14481 |
> |
ac_status=$? |
| 14482 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14483 |
> |
test $ac_status = 0; } |
| 14484 |
> |
;; |
| 14485 |
> |
*) |
| 14486 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14487 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14488 |
> |
ac_status=$? |
| 14489 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14490 |
> |
test $ac_status = 0; } |
| 14491 |
> |
CFLAGS="$CFLAGS $flag" |
| 14492 |
> |
;; |
| 14493 |
> |
esac |
| 14494 |
> |
else |
| 14495 |
> |
CFLAGS="$flag" |
| 14496 |
> |
fi |
| 14497 |
> |
|
| 14498 |
> |
else |
| 14499 |
> |
: |
| 14500 |
> |
fi |
| 14501 |
> |
|
| 14502 |
> |
done |
| 14503 |
> |
|
| 14504 |
> |
|
| 14505 |
> |
|
| 14506 |
> |
|
| 14507 |
> |
|
| 14508 |
> |
for flag in -Wcast-align; do |
| 14509 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14510 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14511 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14512 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14513 |
> |
$as_echo_n "(cached) " >&6 |
| 14514 |
> |
else |
| 14515 |
> |
|
| 14516 |
> |
ax_check_save_flags=$CFLAGS |
| 14517 |
> |
CFLAGS="$CFLAGS $flag" |
| 14518 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14519 |
> |
/* end confdefs.h. */ |
| 14520 |
> |
|
| 14521 |
> |
int |
| 14522 |
> |
main () |
| 14523 |
> |
{ |
| 14524 |
> |
|
| 14525 |
> |
; |
| 14526 |
> |
return 0; |
| 14527 |
> |
} |
| 14528 |
> |
_ACEOF |
| 14529 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14530 |
> |
eval "$as_CACHEVAR=yes" |
| 14531 |
> |
else |
| 14532 |
> |
eval "$as_CACHEVAR=no" |
| 14533 |
> |
fi |
| 14534 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14535 |
> |
CFLAGS=$ax_check_save_flags |
| 14536 |
> |
fi |
| 14537 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14538 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14539 |
> |
$as_echo "$ac_res" >&6; } |
| 14540 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14541 |
> |
if ${CFLAGS+:} false; then : |
| 14542 |
> |
case " $CFLAGS " in |
| 14543 |
> |
*" $flag "*) |
| 14544 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14545 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14546 |
> |
ac_status=$? |
| 14547 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14548 |
> |
test $ac_status = 0; } |
| 14549 |
> |
;; |
| 14550 |
> |
*) |
| 14551 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14552 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14553 |
> |
ac_status=$? |
| 14554 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14555 |
> |
test $ac_status = 0; } |
| 14556 |
> |
CFLAGS="$CFLAGS $flag" |
| 14557 |
> |
;; |
| 14558 |
> |
esac |
| 14559 |
> |
else |
| 14560 |
> |
CFLAGS="$flag" |
| 14561 |
> |
fi |
| 14562 |
> |
|
| 14563 |
> |
else |
| 14564 |
> |
: |
| 14565 |
> |
fi |
| 14566 |
> |
|
| 14567 |
> |
done |
| 14568 |
> |
|
| 14569 |
> |
|
| 14570 |
> |
|
| 14571 |
> |
|
| 14572 |
> |
|
| 14573 |
> |
for flag in -Wbad-function-cast; do |
| 14574 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14575 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14576 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14577 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14578 |
> |
$as_echo_n "(cached) " >&6 |
| 14579 |
> |
else |
| 14580 |
> |
|
| 14581 |
> |
ax_check_save_flags=$CFLAGS |
| 14582 |
> |
CFLAGS="$CFLAGS $flag" |
| 14583 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14584 |
> |
/* end confdefs.h. */ |
| 14585 |
> |
|
| 14586 |
> |
int |
| 14587 |
> |
main () |
| 14588 |
> |
{ |
| 14589 |
> |
|
| 14590 |
> |
; |
| 14591 |
> |
return 0; |
| 14592 |
> |
} |
| 14593 |
> |
_ACEOF |
| 14594 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14595 |
> |
eval "$as_CACHEVAR=yes" |
| 14596 |
> |
else |
| 14597 |
> |
eval "$as_CACHEVAR=no" |
| 14598 |
> |
fi |
| 14599 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14600 |
> |
CFLAGS=$ax_check_save_flags |
| 14601 |
> |
fi |
| 14602 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14603 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14604 |
> |
$as_echo "$ac_res" >&6; } |
| 14605 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14606 |
> |
if ${CFLAGS+:} false; then : |
| 14607 |
> |
case " $CFLAGS " in |
| 14608 |
> |
*" $flag "*) |
| 14609 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14610 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14611 |
> |
ac_status=$? |
| 14612 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14613 |
> |
test $ac_status = 0; } |
| 14614 |
> |
;; |
| 14615 |
> |
*) |
| 14616 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14617 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14618 |
> |
ac_status=$? |
| 14619 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14620 |
> |
test $ac_status = 0; } |
| 14621 |
> |
CFLAGS="$CFLAGS $flag" |
| 14622 |
> |
;; |
| 14623 |
> |
esac |
| 14624 |
> |
else |
| 14625 |
> |
CFLAGS="$flag" |
| 14626 |
> |
fi |
| 14627 |
> |
|
| 14628 |
> |
else |
| 14629 |
> |
: |
| 14630 |
> |
fi |
| 14631 |
> |
|
| 14632 |
> |
done |
| 14633 |
> |
|
| 14634 |
> |
|
| 14635 |
> |
|
| 14636 |
> |
|
| 14637 |
> |
|
| 14638 |
> |
for flag in -Wlogical-op; do |
| 14639 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14640 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14641 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14642 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14643 |
> |
$as_echo_n "(cached) " >&6 |
| 14644 |
> |
else |
| 14645 |
> |
|
| 14646 |
> |
ax_check_save_flags=$CFLAGS |
| 14647 |
> |
CFLAGS="$CFLAGS $flag" |
| 14648 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14649 |
> |
/* end confdefs.h. */ |
| 14650 |
> |
|
| 14651 |
> |
int |
| 14652 |
> |
main () |
| 14653 |
> |
{ |
| 14654 |
> |
|
| 14655 |
> |
; |
| 14656 |
> |
return 0; |
| 14657 |
> |
} |
| 14658 |
> |
_ACEOF |
| 14659 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14660 |
> |
eval "$as_CACHEVAR=yes" |
| 14661 |
> |
else |
| 14662 |
> |
eval "$as_CACHEVAR=no" |
| 14663 |
> |
fi |
| 14664 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14665 |
> |
CFLAGS=$ax_check_save_flags |
| 14666 |
> |
fi |
| 14667 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14668 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14669 |
> |
$as_echo "$ac_res" >&6; } |
| 14670 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14671 |
> |
if ${CFLAGS+:} false; then : |
| 14672 |
> |
case " $CFLAGS " in |
| 14673 |
> |
*" $flag "*) |
| 14674 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14675 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14676 |
> |
ac_status=$? |
| 14677 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14678 |
> |
test $ac_status = 0; } |
| 14679 |
> |
;; |
| 14680 |
> |
*) |
| 14681 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14682 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14683 |
> |
ac_status=$? |
| 14684 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14685 |
> |
test $ac_status = 0; } |
| 14686 |
> |
CFLAGS="$CFLAGS $flag" |
| 14687 |
> |
;; |
| 14688 |
> |
esac |
| 14689 |
> |
else |
| 14690 |
> |
CFLAGS="$flag" |
| 14691 |
> |
fi |
| 14692 |
> |
|
| 14693 |
> |
else |
| 14694 |
> |
: |
| 14695 |
> |
fi |
| 14696 |
> |
|
| 14697 |
> |
done |
| 14698 |
> |
|
| 14699 |
> |
|
| 14700 |
> |
|
| 14701 |
> |
|
| 14702 |
> |
|
| 14703 |
> |
for flag in -Wmissing-declarations; do |
| 14704 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14705 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14706 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14707 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14708 |
> |
$as_echo_n "(cached) " >&6 |
| 14709 |
> |
else |
| 14710 |
> |
|
| 14711 |
> |
ax_check_save_flags=$CFLAGS |
| 14712 |
> |
CFLAGS="$CFLAGS $flag" |
| 14713 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14714 |
> |
/* end confdefs.h. */ |
| 14715 |
> |
|
| 14716 |
> |
int |
| 14717 |
> |
main () |
| 14718 |
> |
{ |
| 14719 |
> |
|
| 14720 |
> |
; |
| 14721 |
> |
return 0; |
| 14722 |
> |
} |
| 14723 |
> |
_ACEOF |
| 14724 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14725 |
> |
eval "$as_CACHEVAR=yes" |
| 14726 |
> |
else |
| 14727 |
> |
eval "$as_CACHEVAR=no" |
| 14728 |
> |
fi |
| 14729 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14730 |
> |
CFLAGS=$ax_check_save_flags |
| 14731 |
> |
fi |
| 14732 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14733 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14734 |
> |
$as_echo "$ac_res" >&6; } |
| 14735 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14736 |
> |
if ${CFLAGS+:} false; then : |
| 14737 |
> |
case " $CFLAGS " in |
| 14738 |
> |
*" $flag "*) |
| 14739 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14740 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14741 |
> |
ac_status=$? |
| 14742 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14743 |
> |
test $ac_status = 0; } |
| 14744 |
> |
;; |
| 14745 |
> |
*) |
| 14746 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14747 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14748 |
> |
ac_status=$? |
| 14749 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14750 |
> |
test $ac_status = 0; } |
| 14751 |
> |
CFLAGS="$CFLAGS $flag" |
| 14752 |
> |
;; |
| 14753 |
> |
esac |
| 14754 |
> |
else |
| 14755 |
> |
CFLAGS="$flag" |
| 14756 |
> |
fi |
| 14757 |
> |
|
| 14758 |
> |
else |
| 14759 |
> |
: |
| 14760 |
> |
fi |
| 14761 |
> |
|
| 14762 |
> |
done |
| 14763 |
> |
|
| 14764 |
> |
|
| 14765 |
> |
|
| 14766 |
> |
|
| 14767 |
> |
|
| 14768 |
> |
for flag in -Wmissing-include-dirs; do |
| 14769 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14770 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14771 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14772 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14773 |
> |
$as_echo_n "(cached) " >&6 |
| 14774 |
> |
else |
| 14775 |
> |
|
| 14776 |
> |
ax_check_save_flags=$CFLAGS |
| 14777 |
> |
CFLAGS="$CFLAGS $flag" |
| 14778 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14779 |
> |
/* end confdefs.h. */ |
| 14780 |
> |
|
| 14781 |
> |
int |
| 14782 |
> |
main () |
| 14783 |
> |
{ |
| 14784 |
> |
|
| 14785 |
> |
; |
| 14786 |
> |
return 0; |
| 14787 |
> |
} |
| 14788 |
> |
_ACEOF |
| 14789 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14790 |
> |
eval "$as_CACHEVAR=yes" |
| 14791 |
> |
else |
| 14792 |
> |
eval "$as_CACHEVAR=no" |
| 14793 |
> |
fi |
| 14794 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14795 |
> |
CFLAGS=$ax_check_save_flags |
| 14796 |
> |
fi |
| 14797 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14798 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14799 |
> |
$as_echo "$ac_res" >&6; } |
| 14800 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14801 |
> |
if ${CFLAGS+:} false; then : |
| 14802 |
> |
case " $CFLAGS " in |
| 14803 |
> |
*" $flag "*) |
| 14804 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14805 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14806 |
> |
ac_status=$? |
| 14807 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14808 |
> |
test $ac_status = 0; } |
| 14809 |
> |
;; |
| 14810 |
> |
*) |
| 14811 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14812 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14813 |
> |
ac_status=$? |
| 14814 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14815 |
> |
test $ac_status = 0; } |
| 14816 |
> |
CFLAGS="$CFLAGS $flag" |
| 14817 |
> |
;; |
| 14818 |
> |
esac |
| 14819 |
> |
else |
| 14820 |
> |
CFLAGS="$flag" |
| 14821 |
> |
fi |
| 14822 |
> |
|
| 14823 |
> |
else |
| 14824 |
> |
: |
| 14825 |
> |
fi |
| 14826 |
> |
|
| 14827 |
> |
done |
| 14828 |
> |
|
| 14829 |
> |
|
| 14830 |
> |
|
| 14831 |
> |
|
| 14832 |
> |
|
| 14833 |
> |
for flag in -Wmissing-prototypes; do |
| 14834 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14835 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14836 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14837 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14838 |
> |
$as_echo_n "(cached) " >&6 |
| 14839 |
> |
else |
| 14840 |
> |
|
| 14841 |
> |
ax_check_save_flags=$CFLAGS |
| 14842 |
> |
CFLAGS="$CFLAGS $flag" |
| 14843 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14844 |
> |
/* end confdefs.h. */ |
| 14845 |
> |
|
| 14846 |
> |
int |
| 14847 |
> |
main () |
| 14848 |
> |
{ |
| 14849 |
> |
|
| 14850 |
> |
; |
| 14851 |
> |
return 0; |
| 14852 |
> |
} |
| 14853 |
> |
_ACEOF |
| 14854 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14855 |
> |
eval "$as_CACHEVAR=yes" |
| 14856 |
> |
else |
| 14857 |
> |
eval "$as_CACHEVAR=no" |
| 14858 |
> |
fi |
| 14859 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14860 |
> |
CFLAGS=$ax_check_save_flags |
| 14861 |
> |
fi |
| 14862 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14863 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14864 |
> |
$as_echo "$ac_res" >&6; } |
| 14865 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14866 |
> |
if ${CFLAGS+:} false; then : |
| 14867 |
> |
case " $CFLAGS " in |
| 14868 |
> |
*" $flag "*) |
| 14869 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14870 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14871 |
> |
ac_status=$? |
| 14872 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14873 |
> |
test $ac_status = 0; } |
| 14874 |
> |
;; |
| 14875 |
> |
*) |
| 14876 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14877 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14878 |
> |
ac_status=$? |
| 14879 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14880 |
> |
test $ac_status = 0; } |
| 14881 |
> |
CFLAGS="$CFLAGS $flag" |
| 14882 |
> |
;; |
| 14883 |
> |
esac |
| 14884 |
> |
else |
| 14885 |
> |
CFLAGS="$flag" |
| 14886 |
> |
fi |
| 14887 |
> |
|
| 14888 |
> |
else |
| 14889 |
> |
: |
| 14890 |
> |
fi |
| 14891 |
> |
|
| 14892 |
> |
done |
| 14893 |
> |
|
| 14894 |
> |
|
| 14895 |
> |
|
| 14896 |
> |
|
| 14897 |
> |
|
| 14898 |
> |
for flag in -Wnested-externs; do |
| 14899 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14900 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14901 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14902 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14903 |
> |
$as_echo_n "(cached) " >&6 |
| 14904 |
> |
else |
| 14905 |
> |
|
| 14906 |
> |
ax_check_save_flags=$CFLAGS |
| 14907 |
> |
CFLAGS="$CFLAGS $flag" |
| 14908 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14909 |
> |
/* end confdefs.h. */ |
| 14910 |
> |
|
| 14911 |
> |
int |
| 14912 |
> |
main () |
| 14913 |
> |
{ |
| 14914 |
> |
|
| 14915 |
> |
; |
| 14916 |
> |
return 0; |
| 14917 |
> |
} |
| 14918 |
> |
_ACEOF |
| 14919 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14920 |
> |
eval "$as_CACHEVAR=yes" |
| 14921 |
> |
else |
| 14922 |
> |
eval "$as_CACHEVAR=no" |
| 14923 |
> |
fi |
| 14924 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14925 |
> |
CFLAGS=$ax_check_save_flags |
| 14926 |
> |
fi |
| 14927 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14928 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14929 |
> |
$as_echo "$ac_res" >&6; } |
| 14930 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14931 |
> |
if ${CFLAGS+:} false; then : |
| 14932 |
> |
case " $CFLAGS " in |
| 14933 |
> |
*" $flag "*) |
| 14934 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14935 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14936 |
> |
ac_status=$? |
| 14937 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14938 |
> |
test $ac_status = 0; } |
| 14939 |
> |
;; |
| 14940 |
> |
*) |
| 14941 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14942 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14943 |
> |
ac_status=$? |
| 14944 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14945 |
> |
test $ac_status = 0; } |
| 14946 |
> |
CFLAGS="$CFLAGS $flag" |
| 14947 |
> |
;; |
| 14948 |
> |
esac |
| 14949 |
> |
else |
| 14950 |
> |
CFLAGS="$flag" |
| 14951 |
> |
fi |
| 14952 |
> |
|
| 14953 |
> |
else |
| 14954 |
> |
: |
| 14955 |
> |
fi |
| 14956 |
> |
|
| 14957 |
> |
done |
| 14958 |
> |
|
| 14959 |
> |
|
| 14960 |
> |
|
| 14961 |
> |
|
| 14962 |
> |
|
| 14963 |
> |
for flag in -Wpointer-arith; do |
| 14964 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14965 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14966 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14967 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14968 |
> |
$as_echo_n "(cached) " >&6 |
| 14969 |
> |
else |
| 14970 |
> |
|
| 14971 |
> |
ax_check_save_flags=$CFLAGS |
| 14972 |
> |
CFLAGS="$CFLAGS $flag" |
| 14973 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14974 |
> |
/* end confdefs.h. */ |
| 14975 |
> |
|
| 14976 |
> |
int |
| 14977 |
> |
main () |
| 14978 |
> |
{ |
| 14979 |
> |
|
| 14980 |
> |
; |
| 14981 |
> |
return 0; |
| 14982 |
> |
} |
| 14983 |
> |
_ACEOF |
| 14984 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14985 |
> |
eval "$as_CACHEVAR=yes" |
| 14986 |
> |
else |
| 14987 |
> |
eval "$as_CACHEVAR=no" |
| 14988 |
> |
fi |
| 14989 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14990 |
> |
CFLAGS=$ax_check_save_flags |
| 14991 |
> |
fi |
| 14992 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14993 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14994 |
> |
$as_echo "$ac_res" >&6; } |
| 14995 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14996 |
> |
if ${CFLAGS+:} false; then : |
| 14997 |
> |
case " $CFLAGS " in |
| 14998 |
> |
*" $flag "*) |
| 14999 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15000 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15001 |
> |
ac_status=$? |
| 15002 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15003 |
> |
test $ac_status = 0; } |
| 15004 |
> |
;; |
| 15005 |
> |
*) |
| 15006 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15007 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15008 |
> |
ac_status=$? |
| 15009 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15010 |
> |
test $ac_status = 0; } |
| 15011 |
> |
CFLAGS="$CFLAGS $flag" |
| 15012 |
> |
;; |
| 15013 |
> |
esac |
| 15014 |
> |
else |
| 15015 |
> |
CFLAGS="$flag" |
| 15016 |
> |
fi |
| 15017 |
> |
|
| 15018 |
> |
else |
| 15019 |
> |
: |
| 15020 |
> |
fi |
| 15021 |
> |
|
| 15022 |
> |
done |
| 15023 |
> |
|
| 15024 |
> |
|
| 15025 |
> |
|
| 15026 |
> |
|
| 15027 |
> |
|
| 15028 |
> |
for flag in -Wredundant-decls; do |
| 15029 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15030 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15031 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15032 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15033 |
> |
$as_echo_n "(cached) " >&6 |
| 15034 |
> |
else |
| 15035 |
> |
|
| 15036 |
> |
ax_check_save_flags=$CFLAGS |
| 15037 |
> |
CFLAGS="$CFLAGS $flag" |
| 15038 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15039 |
> |
/* end confdefs.h. */ |
| 15040 |
> |
|
| 15041 |
> |
int |
| 15042 |
> |
main () |
| 15043 |
> |
{ |
| 15044 |
> |
|
| 15045 |
> |
; |
| 15046 |
> |
return 0; |
| 15047 |
> |
} |
| 15048 |
> |
_ACEOF |
| 15049 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15050 |
> |
eval "$as_CACHEVAR=yes" |
| 15051 |
> |
else |
| 15052 |
> |
eval "$as_CACHEVAR=no" |
| 15053 |
> |
fi |
| 15054 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15055 |
> |
CFLAGS=$ax_check_save_flags |
| 15056 |
> |
fi |
| 15057 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15058 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15059 |
> |
$as_echo "$ac_res" >&6; } |
| 15060 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15061 |
> |
if ${CFLAGS+:} false; then : |
| 15062 |
> |
case " $CFLAGS " in |
| 15063 |
> |
*" $flag "*) |
| 15064 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15065 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15066 |
> |
ac_status=$? |
| 15067 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15068 |
> |
test $ac_status = 0; } |
| 15069 |
> |
;; |
| 15070 |
> |
*) |
| 15071 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15072 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15073 |
> |
ac_status=$? |
| 15074 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15075 |
> |
test $ac_status = 0; } |
| 15076 |
> |
CFLAGS="$CFLAGS $flag" |
| 15077 |
> |
;; |
| 15078 |
> |
esac |
| 15079 |
> |
else |
| 15080 |
> |
CFLAGS="$flag" |
| 15081 |
> |
fi |
| 15082 |
> |
|
| 15083 |
> |
else |
| 15084 |
> |
: |
| 15085 |
> |
fi |
| 15086 |
> |
|
| 15087 |
> |
done |
| 15088 |
> |
|
| 15089 |
> |
|
| 15090 |
> |
|
| 15091 |
> |
|
| 15092 |
> |
|
| 15093 |
> |
for flag in -Wshadow; do |
| 15094 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15095 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15096 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15097 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15098 |
> |
$as_echo_n "(cached) " >&6 |
| 15099 |
> |
else |
| 15100 |
> |
|
| 15101 |
> |
ax_check_save_flags=$CFLAGS |
| 15102 |
> |
CFLAGS="$CFLAGS $flag" |
| 15103 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15104 |
> |
/* end confdefs.h. */ |
| 15105 |
> |
|
| 15106 |
> |
int |
| 15107 |
> |
main () |
| 15108 |
> |
{ |
| 15109 |
> |
|
| 15110 |
> |
; |
| 15111 |
> |
return 0; |
| 15112 |
> |
} |
| 15113 |
> |
_ACEOF |
| 15114 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15115 |
> |
eval "$as_CACHEVAR=yes" |
| 15116 |
> |
else |
| 15117 |
> |
eval "$as_CACHEVAR=no" |
| 15118 |
> |
fi |
| 15119 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15120 |
> |
CFLAGS=$ax_check_save_flags |
| 15121 |
> |
fi |
| 15122 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15123 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15124 |
> |
$as_echo "$ac_res" >&6; } |
| 15125 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15126 |
> |
if ${CFLAGS+:} false; then : |
| 15127 |
> |
case " $CFLAGS " in |
| 15128 |
> |
*" $flag "*) |
| 15129 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15130 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15131 |
> |
ac_status=$? |
| 15132 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15133 |
> |
test $ac_status = 0; } |
| 15134 |
> |
;; |
| 15135 |
> |
*) |
| 15136 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15137 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15138 |
> |
ac_status=$? |
| 15139 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15140 |
> |
test $ac_status = 0; } |
| 15141 |
> |
CFLAGS="$CFLAGS $flag" |
| 15142 |
> |
;; |
| 15143 |
> |
esac |
| 15144 |
> |
else |
| 15145 |
> |
CFLAGS="$flag" |
| 15146 |
> |
fi |
| 15147 |
> |
|
| 15148 |
> |
else |
| 15149 |
> |
: |
| 15150 |
> |
fi |
| 15151 |
> |
|
| 15152 |
> |
done |
| 15153 |
> |
|
| 15154 |
> |
|
| 15155 |
> |
|
| 15156 |
> |
|
| 15157 |
> |
|
| 15158 |
> |
for flag in -Wwrite-strings; do |
| 15159 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15160 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15161 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15162 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15163 |
> |
$as_echo_n "(cached) " >&6 |
| 15164 |
> |
else |
| 15165 |
> |
|
| 15166 |
> |
ax_check_save_flags=$CFLAGS |
| 15167 |
> |
CFLAGS="$CFLAGS $flag" |
| 15168 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15169 |
> |
/* end confdefs.h. */ |
| 15170 |
> |
|
| 15171 |
> |
int |
| 15172 |
> |
main () |
| 15173 |
> |
{ |
| 15174 |
> |
|
| 15175 |
> |
; |
| 15176 |
> |
return 0; |
| 15177 |
> |
} |
| 15178 |
> |
_ACEOF |
| 15179 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15180 |
> |
eval "$as_CACHEVAR=yes" |
| 15181 |
> |
else |
| 15182 |
> |
eval "$as_CACHEVAR=no" |
| 15183 |
> |
fi |
| 15184 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15185 |
> |
CFLAGS=$ax_check_save_flags |
| 15186 |
> |
fi |
| 15187 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15188 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15189 |
> |
$as_echo "$ac_res" >&6; } |
| 15190 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15191 |
> |
if ${CFLAGS+:} false; then : |
| 15192 |
> |
case " $CFLAGS " in |
| 15193 |
> |
*" $flag "*) |
| 15194 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15195 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15196 |
> |
ac_status=$? |
| 15197 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15198 |
> |
test $ac_status = 0; } |
| 15199 |
> |
;; |
| 15200 |
> |
*) |
| 15201 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15202 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15203 |
> |
ac_status=$? |
| 15204 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15205 |
> |
test $ac_status = 0; } |
| 15206 |
> |
CFLAGS="$CFLAGS $flag" |
| 15207 |
> |
;; |
| 15208 |
> |
esac |
| 15209 |
> |
else |
| 15210 |
> |
CFLAGS="$flag" |
| 15211 |
> |
fi |
| 15212 |
> |
|
| 15213 |
> |
else |
| 15214 |
> |
: |
| 15215 |
> |
fi |
| 15216 |
> |
|
| 15217 |
> |
done |
| 15218 |
> |
|
| 15219 |
> |
|
| 15220 |
> |
|
| 15221 |
> |
|
| 15222 |
> |
|
| 15223 |
> |
for flag in -Wundef; do |
| 15224 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15225 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15226 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15227 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15228 |
> |
$as_echo_n "(cached) " >&6 |
| 15229 |
> |
else |
| 15230 |
> |
|
| 15231 |
> |
ax_check_save_flags=$CFLAGS |
| 15232 |
> |
CFLAGS="$CFLAGS $flag" |
| 15233 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15234 |
> |
/* end confdefs.h. */ |
| 15235 |
> |
|
| 15236 |
> |
int |
| 15237 |
> |
main () |
| 15238 |
> |
{ |
| 15239 |
> |
|
| 15240 |
> |
; |
| 15241 |
> |
return 0; |
| 15242 |
> |
} |
| 15243 |
> |
_ACEOF |
| 15244 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15245 |
> |
eval "$as_CACHEVAR=yes" |
| 15246 |
> |
else |
| 15247 |
> |
eval "$as_CACHEVAR=no" |
| 15248 |
> |
fi |
| 15249 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15250 |
> |
CFLAGS=$ax_check_save_flags |
| 15251 |
> |
fi |
| 15252 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15253 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15254 |
> |
$as_echo "$ac_res" >&6; } |
| 15255 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15256 |
> |
if ${CFLAGS+:} false; then : |
| 15257 |
> |
case " $CFLAGS " in |
| 15258 |
> |
*" $flag "*) |
| 15259 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15260 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15261 |
> |
ac_status=$? |
| 15262 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15263 |
> |
test $ac_status = 0; } |
| 15264 |
> |
;; |
| 15265 |
> |
*) |
| 15266 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15267 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15268 |
> |
ac_status=$? |
| 15269 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15270 |
> |
test $ac_status = 0; } |
| 15271 |
> |
CFLAGS="$CFLAGS $flag" |
| 15272 |
> |
;; |
| 15273 |
> |
esac |
| 15274 |
> |
else |
| 15275 |
> |
CFLAGS="$flag" |
| 15276 |
> |
fi |
| 15277 |
> |
|
| 15278 |
> |
else |
| 15279 |
> |
: |
| 15280 |
> |
fi |
| 15281 |
> |
|
| 15282 |
> |
done |
| 15283 |
> |
|
| 15284 |
|
fi |
| 15285 |
|
|
| 15286 |
|
|
| 15287 |
+ |
# Check whether --enable-openssl was given. |
| 15288 |
+ |
if test "${enable_openssl+set}" = set; then : |
| 15289 |
+ |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 15290 |
+ |
else |
| 15291 |
+ |
cf_enable_openssl="auto" |
| 15292 |
+ |
fi |
| 15293 |
+ |
|
| 15294 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
| 15295 |
+ |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
| 15296 |
+ |
if test "$cf_enable_openssl" != "no"; then |
| 15297 |
+ |
cf_openssl_basedir="" |
| 15298 |
+ |
if test "$cf_enable_openssl" != "auto" && |
| 15299 |
+ |
test "$cf_enable_openssl" != "yes"; then |
| 15300 |
+ |
cf_openssl_basedir="${cf_enable_openssl}" |
| 15301 |
+ |
else |
| 15302 |
+ |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 15303 |
+ |
/opt /opt/openssl /usr/local/openssl; do |
| 15304 |
+ |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 15305 |
+ |
cf_openssl_basedir="${dirs}" |
| 15306 |
+ |
break |
| 15307 |
+ |
fi |
| 15308 |
+ |
done |
| 15309 |
+ |
unset dirs |
| 15310 |
+ |
fi |
| 15311 |
+ |
|
| 15312 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 15313 |
+ |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 15314 |
+ |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 15315 |
+ |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 15316 |
+ |
else |
| 15317 |
+ |
cf_openssl_basedir="" |
| 15318 |
+ |
fi |
| 15319 |
+ |
else |
| 15320 |
+ |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 15321 |
+ |
cf_openssl_basedir="/usr" |
| 15322 |
+ |
fi |
| 15323 |
+ |
fi |
| 15324 |
+ |
|
| 15325 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 15326 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 15327 |
+ |
$as_echo "$cf_openssl_basedir" >&6; } |
| 15328 |
+ |
cf_enable_openssl="yes" |
| 15329 |
+ |
else |
| 15330 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 15331 |
+ |
$as_echo "not found. Please check your path." >&6; } |
| 15332 |
+ |
cf_enable_openssl="no" |
| 15333 |
+ |
fi |
| 15334 |
+ |
unset cf_openssl_basedir |
| 15335 |
+ |
else |
| 15336 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 15337 |
+ |
$as_echo "disabled" >&6; } |
| 15338 |
+ |
fi |
| 15339 |
+ |
|
| 15340 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
| 15341 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5 |
| 15342 |
+ |
$as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; } |
| 15343 |
+ |
if test "$cross_compiling" = yes; then : |
| 15344 |
+ |
cf_openssl_version_ok=no |
| 15345 |
+ |
else |
| 15346 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15347 |
+ |
/* end confdefs.h. */ |
| 15348 |
+ |
|
| 15349 |
+ |
|
| 15350 |
+ |
#include <openssl/opensslv.h> |
| 15351 |
+ |
#include <stdlib.h> |
| 15352 |
+ |
int |
| 15353 |
+ |
main () |
| 15354 |
+ |
{ |
| 15355 |
+ |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
| 15356 |
+ |
; |
| 15357 |
+ |
return 0; |
| 15358 |
+ |
} |
| 15359 |
+ |
_ACEOF |
| 15360 |
+ |
if ac_fn_c_try_run "$LINENO"; then : |
| 15361 |
+ |
cf_openssl_version_ok=yes |
| 15362 |
+ |
else |
| 15363 |
+ |
cf_openssl_version_ok=no |
| 15364 |
+ |
fi |
| 15365 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15366 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15367 |
+ |
fi |
| 15368 |
+ |
|
| 15369 |
+ |
|
| 15370 |
+ |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 15371 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 15372 |
+ |
$as_echo "found" >&6; } |
| 15373 |
+ |
|
| 15374 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 15375 |
+ |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 15376 |
+ |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 15377 |
+ |
$as_echo_n "(cached) " >&6 |
| 15378 |
+ |
else |
| 15379 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 15380 |
+ |
LIBS="-lcrypto $LIBS" |
| 15381 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15382 |
+ |
/* end confdefs.h. */ |
| 15383 |
+ |
|
| 15384 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 15385 |
+ |
Use char because int might match the return type of a GCC |
| 15386 |
+ |
builtin and then its argument prototype would still apply. */ |
| 15387 |
+ |
#ifdef __cplusplus |
| 15388 |
+ |
extern "C" |
| 15389 |
+ |
#endif |
| 15390 |
+ |
char RSA_free (); |
| 15391 |
+ |
int |
| 15392 |
+ |
main () |
| 15393 |
+ |
{ |
| 15394 |
+ |
return RSA_free (); |
| 15395 |
+ |
; |
| 15396 |
+ |
return 0; |
| 15397 |
+ |
} |
| 15398 |
+ |
_ACEOF |
| 15399 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 15400 |
+ |
ac_cv_lib_crypto_RSA_free=yes |
| 15401 |
+ |
else |
| 15402 |
+ |
ac_cv_lib_crypto_RSA_free=no |
| 15403 |
+ |
fi |
| 15404 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 15405 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 15406 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 15407 |
+ |
fi |
| 15408 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 15409 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 15410 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 15411 |
+ |
cat >>confdefs.h <<_ACEOF |
| 15412 |
+ |
#define HAVE_LIBCRYPTO 1 |
| 15413 |
+ |
_ACEOF |
| 15414 |
+ |
|
| 15415 |
+ |
LIBS="-lcrypto $LIBS" |
| 15416 |
+ |
|
| 15417 |
+ |
fi |
| 15418 |
+ |
|
| 15419 |
+ |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 15420 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 15421 |
+ |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 15422 |
+ |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 15423 |
+ |
$as_echo_n "(cached) " >&6 |
| 15424 |
+ |
else |
| 15425 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 15426 |
+ |
LIBS="-lssl $LIBS" |
| 15427 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15428 |
+ |
/* end confdefs.h. */ |
| 15429 |
+ |
|
| 15430 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 15431 |
+ |
Use char because int might match the return type of a GCC |
| 15432 |
+ |
builtin and then its argument prototype would still apply. */ |
| 15433 |
+ |
#ifdef __cplusplus |
| 15434 |
+ |
extern "C" |
| 15435 |
+ |
#endif |
| 15436 |
+ |
char SSL_connect (); |
| 15437 |
+ |
int |
| 15438 |
+ |
main () |
| 15439 |
+ |
{ |
| 15440 |
+ |
return SSL_connect (); |
| 15441 |
+ |
; |
| 15442 |
+ |
return 0; |
| 15443 |
+ |
} |
| 15444 |
+ |
_ACEOF |
| 15445 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 15446 |
+ |
ac_cv_lib_ssl_SSL_connect=yes |
| 15447 |
+ |
else |
| 15448 |
+ |
ac_cv_lib_ssl_SSL_connect=no |
| 15449 |
+ |
fi |
| 15450 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 15451 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 15452 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 15453 |
+ |
fi |
| 15454 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 15455 |
+ |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 15456 |
+ |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 15457 |
+ |
cat >>confdefs.h <<_ACEOF |
| 15458 |
+ |
#define HAVE_LIBSSL 1 |
| 15459 |
+ |
_ACEOF |
| 15460 |
+ |
|
| 15461 |
+ |
LIBS="-lssl $LIBS" |
| 15462 |
+ |
|
| 15463 |
+ |
fi |
| 15464 |
+ |
|
| 15465 |
+ |
fi |
| 15466 |
+ |
|
| 15467 |
+ |
else |
| 15468 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
| 15469 |
+ |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
| 15470 |
+ |
cf_enable_openssl="no" |
| 15471 |
+ |
fi |
| 15472 |
+ |
fi |
| 15473 |
+ |
|
| 15474 |
+ |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 15475 |
+ |
ENABLE_SSL_TRUE= |
| 15476 |
+ |
ENABLE_SSL_FALSE='#' |
| 15477 |
+ |
else |
| 15478 |
+ |
ENABLE_SSL_TRUE='#' |
| 15479 |
+ |
ENABLE_SSL_FALSE= |
| 15480 |
+ |
fi |
| 15481 |
+ |
|
| 15482 |
+ |
|
| 15483 |
+ |
|
| 15484 |
|
|
| 15485 |
|
prefix_NONE= |
| 15486 |
|
exec_prefix_NONE= |
| 15567 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 15568 |
|
|
| 15569 |
|
|
| 15570 |
< |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 15570 |
> |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile" |
| 15571 |
|
|
| 15572 |
|
|
| 15573 |
|
cat >confcache <<\_ACEOF |
| 16134 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
| 16135 |
|
# values after options handling. |
| 16136 |
|
ac_log=" |
| 16137 |
< |
This file was extended by ircd-hybrid $as_me TRUNK, which was |
| 16137 |
> |
This file was extended by ircd-hybrid $as_me 8.2.0rc2, which was |
| 16138 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 16139 |
|
|
| 16140 |
|
CONFIG_FILES = $CONFIG_FILES |
| 16200 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16201 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 16202 |
|
ac_cs_version="\\ |
| 16203 |
< |
ircd-hybrid config.status TRUNK |
| 16203 |
> |
ircd-hybrid config.status 8.2.0rc2 |
| 16204 |
|
configured by $0, generated by GNU Autoconf 2.69, |
| 16205 |
|
with options \\"\$ac_cs_config\\" |
| 16206 |
|
|
| 16616 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 16617 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 16618 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15567 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15568 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 16619 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 16620 |
|
|
| 16621 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 17264 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 17265 |
|
test -z "$DEPDIR" && continue |
| 17266 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 17267 |
< |
test -z "am__include" && continue |
| 17267 |
> |
test -z "$am__include" && continue |
| 17268 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 17269 |
|
# Find all dependency output files, they are included files with |
| 17270 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |