ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
(Generate patch)

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 7785 by michael, Sun Oct 9 18:44:23 2016 UTC vs.
Revision 9413 by michael, Sun May 31 12:33:17 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 7668 2016-07-20 17:09:49Z michael .
2 > # From configure.ac Id: configure.ac 9331 2020-04-11 12:55:47Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# Line 709 | Line 709 | am__nodep
709   AMDEPBACKSLASH
710   AMDEP_FALSE
711   AMDEP_TRUE
712 am__quote
712   am__include
713   DEPDIR
714   OBJEXT
# Line 768 | Line 767 | infodir
767   docdir
768   oldincludedir
769   includedir
770 + runstatedir
771   localstatedir
772   sharedstatedir
773   sysconfdir
# Line 786 | Line 786 | PACKAGE_VERSION
786   PACKAGE_TARNAME
787   PACKAGE_NAME
788   PATH_SEPARATOR
789 < SHELL'
789 > SHELL
790 > am__quote'
791   ac_subst_files=''
792   ac_user_opts='
793   enable_option_checking
# Line 812 | Line 813 | enable_poll
813   enable_assert
814   enable_debugging
815   enable_warnings
816 < enable_openssl
817 < enable_gnutls
817 < enable_libgeoip
816 > enable_efence
817 > with_tls
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 866 | Line 866 | datadir='${datarootdir}'
866   sysconfdir='${prefix}/etc'
867   sharedstatedir='${prefix}/com'
868   localstatedir='${prefix}/var'
869 + runstatedir='${localstatedir}/run'
870   includedir='${prefix}/include'
871   oldincludedir='/usr/include'
872   docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# Line 1118 | Line 1119 | do
1119    | -silent | --silent | --silen | --sile | --sil)
1120      silent=yes ;;
1121  
1122 +  -runstatedir | --runstatedir | --runstatedi | --runstated \
1123 +  | --runstate | --runstat | --runsta | --runst | --runs \
1124 +  | --run | --ru | --r)
1125 +    ac_prev=runstatedir ;;
1126 +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1127 +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1128 +  | --run=* | --ru=* | --r=*)
1129 +    runstatedir=$ac_optarg ;;
1130 +
1131    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132      ac_prev=sbindir ;;
1133    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
# Line 1255 | Line 1265 | fi
1265   for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                  datadir sysconfdir sharedstatedir localstatedir includedir \
1267                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 <                libdir localedir mandir
1268 >                libdir localedir mandir runstatedir
1269   do
1270    eval ac_val=\$$ac_var
1271    # Remove trailing slashes.
# Line 1408 | Line 1418 | Fine tuning of the installation director
1418    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1419    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1420    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1421 +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1422    --libdir=DIR            object code libraries [EPREFIX/lib]
1423    --includedir=DIR        C header files [PREFIX/include]
1424    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
# Line 1468 | Line 1479 | Optional Features:
1479    --enable-assert         Enable assert() statements
1480    --enable-debugging      Enable debugging.
1481    --enable-warnings       Enable compiler warnings.
1482 <  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1483 <  --disable-openssl            Disable LibreSSL/OpenSSL support.
1473 <  --enable-gnutls             Enable GnuTLS support.
1474 <  --disable-gnutls             Disable GnuTLS support.
1475 <  --disable-libgeoip      Disable GeoIP support
1482 >  --enable-efence         Enable linking with Electric Fence 'efence' memory
1483 >                          debugger library.
1484  
1485   Optional Packages:
1486    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 1488 | Line 1496 | Optional Packages:
1496    --with-included-ltdl    use the GNU ltdl sources included here
1497    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1498    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1499 +  --with-tls              Enables TLS with specified library. Options:
1500 +                          'openssl', 'wolfssl', 'gnutls' or 'none'
1501  
1502   Some influential environment variables:
1503    CC          C compiler command
# Line 2322 | Line 2332 | $as_echo "$as_me: creating cache $cache_
2332    >$cache_file
2333   fi
2334  
2325 as_fn_append ac_func_list " strtok_r"
2335   as_fn_append ac_func_list " strlcat"
2336   as_fn_append ac_func_list " strlcpy"
2337   as_fn_append ac_header_list " crypt.h"
2329 as_fn_append ac_header_list " sys/resource.h"
2338   as_fn_append ac_header_list " sys/param.h"
2339   as_fn_append ac_header_list " types.h"
2340   as_fn_append ac_header_list " socket.h"
# Line 2399 | Line 2407 | ac_link='$CC -o conftest$ac_exeext $CFLA
2407   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408  
2409  
2410 < am__api_version='1.15'
2410 > am__api_version='1.16'
2411  
2412   ac_aux_dir=
2413   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2944 | Line 2952 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2952  
2953   # For better backward compatibility.  To be removed once Automake 1.9.x
2954   # dies out for good.  For more background, see:
2955 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2955 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2957   mkdir_p='$(MKDIR_P)'
2958  
2959   # We need awk for the "check" target (and possibly the TAP driver).  The
# Line 2996 | Line 3004 | END
3004   Aborting the configuration process, to ensure you take notice of the issue.
3005  
3006   You can download and install GNU coreutils to get an 'rm' implementation
3007 < that behaves properly: <http://www.gnu.org/software/coreutils/>.
3007 > that behaves properly: <https://www.gnu.org/software/coreutils/>.
3008  
3009   If you want to complete the configuration process using your problematic
3010   'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
# Line 3040 | Line 3048 | DEPDIR="${am__leading_dot}deps"
3048  
3049   ac_config_commands="$ac_config_commands depfiles"
3050  
3051 <
3052 < am_make=${MAKE-make}
3053 < cat > confinc << 'END'
3051 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3052 > $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3053 > cat > confinc.mk << 'END'
3054   am__doit:
3055 <        @echo this is the am__doit target
3055 >        @echo this is the am__doit target >confinc.out
3056   .PHONY: am__doit
3057   END
3050 # If we don't find an include directive, just comment out the code.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3052 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3058   am__include="#"
3059   am__quote=
3060 < _am_result=none
3061 < # First try GNU make style include.
3062 < echo "include confinc" > confmf
3063 < # Ignore all kinds of additional output from 'make'.
3064 < case `$am_make -s -f confmf 2> /dev/null` in #(
3065 < *the\ am__doit\ target*)
3066 <  am__include=include
3067 <  am__quote=
3068 <  _am_result=GNU
3069 <  ;;
3070 < esac
3071 < # Now try BSD make style include.
3072 < if test "$am__include" = "#"; then
3073 <   echo '.include "confinc"' > confmf
3074 <   case `$am_make -s -f confmf 2> /dev/null` in #(
3075 <   *the\ am__doit\ target*)
3076 <     am__include=.include
3077 <     am__quote="\""
3078 <     _am_result=BSD
3060 > # BSD make does it like this.
3061 > echo '.include "confinc.mk" # ignored' > confmf.BSD
3062 > # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3063 > echo 'include confinc.mk # ignored' > confmf.GNU
3064 > _am_result=no
3065 > for s in GNU BSD; do
3066 >  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3067 >   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3068 >   ac_status=$?
3069 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 >   (exit $ac_status); }
3071 >  case $?:`cat confinc.out 2>/dev/null` in #(
3072 >  '0:this is the am__doit target') :
3073 >    case $s in #(
3074 >  BSD) :
3075 >    am__include='.include' am__quote='"' ;; #(
3076 >  *) :
3077 >    am__include='include' am__quote='' ;;
3078 > esac ;; #(
3079 >  *) :
3080       ;;
3081 <   esac
3082 < fi
3083 <
3084 <
3085 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3086 < $as_echo "$_am_result" >&6; }
3087 < rm -f confinc confmf
3081 > esac
3082 >  if test "$am__include" != "#"; then
3083 >    _am_result="yes ($s style)"
3084 >    break
3085 >  fi
3086 > done
3087 > rm -f confinc.* confmf.*
3088 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3089 > $as_echo "${_am_result}" >&6; }
3090  
3091   # Check whether --enable-dependency-tracking was given.
3092   if test "${enable_dependency_tracking+set}" = set; then :
# Line 5780 | Line 5788 | linux* | k*bsd*-gnu | kopensolaris*-gnu
5788    lt_cv_deplibs_check_method=pass_all
5789    ;;
5790  
5791 < netbsd*)
5791 > netbsd* | netbsdelf*-gnu)
5792    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5793      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5794    else
# Line 6643 | Line 6651 | _LT_EOF
6651    test $ac_status = 0; }; then
6652      # Now try to grab the symbols.
6653      nlist=conftest.nm
6654 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6655 <  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6648 <  ac_status=$?
6649 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 <  test $ac_status = 0; } && test -s "$nlist"; then
6654 >    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6655 >    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6656        # Try sorting and uniquifying the output.
6657        if sort "$nlist" | uniq > "$nlist"T; then
6658          mv -f "$nlist"T "$nlist"
# Line 8994 | Line 8999 | lt_prog_compiler_static=
8999          lt_prog_compiler_pic='-KPIC'
9000          lt_prog_compiler_static='-static'
9001          ;;
9002 +      # flang / f18. f95 an alias for gfortran or flang on Debian
9003 +      flang* | f18* | f95*)
9004 +        lt_prog_compiler_wl='-Wl,'
9005 +        lt_prog_compiler_pic='-fPIC'
9006 +        lt_prog_compiler_static='-static'
9007 +        ;;
9008        # icc used to be incompatible with GCC.
9009        # ICC 10 doesn't accept -KPIC any more.
9010        icc* | ifort*)
# Line 9470 | Line 9481 | $as_echo_n "checking whether the $compil
9481    openbsd* | bitrig*)
9482      with_gnu_ld=no
9483      ;;
9484 +  linux* | k*bsd*-gnu | gnu*)
9485 +    link_all_deplibs=no
9486 +    ;;
9487    esac
9488  
9489    ld_shlibs=yes
# Line 9724 | Line 9738 | _LT_EOF
9738        fi
9739        ;;
9740  
9741 <    netbsd*)
9741 >    netbsd* | netbsdelf*-gnu)
9742        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9743          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9744          wlarc=
# Line 10394 | Line 10408 | $as_echo "$lt_cv_irix_exported_symbol" >
10408          if test yes = "$lt_cv_irix_exported_symbol"; then
10409            archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10410          fi
10411 +        link_all_deplibs=no
10412        else
10413          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10414          archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
# Line 10415 | Line 10430 | $as_echo "$lt_cv_irix_exported_symbol" >
10430        esac
10431        ;;
10432  
10433 <    netbsd*)
10433 >    netbsd* | netbsdelf*-gnu)
10434        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10436        else
# Line 11530 | Line 11545 | fi
11545    dynamic_linker='GNU/Linux ld.so'
11546    ;;
11547  
11548 + netbsdelf*-gnu)
11549 +  version_type=linux
11550 +  need_lib_prefix=no
11551 +  need_version=no
11552 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11553 +  soname_spec='${libname}${release}${shared_ext}$major'
11554 +  shlibpath_var=LD_LIBRARY_PATH
11555 +  shlibpath_overrides_runpath=no
11556 +  hardcode_into_libs=yes
11557 +  dynamic_linker='NetBSD ld.elf_so'
11558 +  ;;
11559 +
11560   netbsd*)
11561    version_type=sunos
11562    need_lib_prefix=no
# Line 13152 | Line 13179 | else
13179      # at 6.2 and later dlopen does load deplibs.
13180      lt_cv_sys_dlopen_deplibs=yes
13181      ;;
13182 <  netbsd*)
13182 >  netbsd* | netbsdelf*-gnu)
13183      lt_cv_sys_dlopen_deplibs=yes
13184      ;;
13185    openbsd*)
# Line 13727 | Line 13754 | $as_echo "$ssp_cv_lib" >&6; }
13754    fi
13755  
13756  
13730
13731
13732
13733
13734 for flag in -fno-strict-aliasing; do
13735  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13737 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13738 if eval \${$as_CACHEVAR+:} false; then :
13739  $as_echo_n "(cached) " >&6
13740 else
13741
13742  ax_check_save_flags=$CFLAGS
13743  CFLAGS="$CFLAGS  $flag"
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746
13747 int
13748 main ()
13749 {
13750
13751  ;
13752  return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756  eval "$as_CACHEVAR=yes"
13757 else
13758  eval "$as_CACHEVAR=no"
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761  CFLAGS=$ax_check_save_flags
13762 fi
13763 eval ac_res=\$$as_CACHEVAR
13764               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13765 $as_echo "$ac_res" >&6; }
13766 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13767
13768 if ${CFLAGS+:} false; then :
13769
13770  case " $CFLAGS " in #(
13771  *" $flag "*) :
13772    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13773  (: CFLAGS already contains $flag) 2>&5
13774  ac_status=$?
13775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776  test $ac_status = 0; } ;; #(
13777  *) :
13778
13779     as_fn_append CFLAGS " $flag"
13780     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13781  (: CFLAGS="$CFLAGS") 2>&5
13782  ac_status=$?
13783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784  test $ac_status = 0; }
13785     ;;
13786 esac
13787
13788 else
13789
13790  CFLAGS=$flag
13791  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13792  (: CFLAGS="$CFLAGS") 2>&5
13793  ac_status=$?
13794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795  test $ac_status = 0; }
13796
13797 fi
13798
13799 else
13800  :
13801 fi
13802
13803 done
13804
13805
13757    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13758   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13759  
# Line 14235 | Line 14186 | done
14186  
14187  
14188  
14238
14239
14189   # Checks for header files.
14190  
14191  
# Line 14267 | Line 14216 | done
14216  
14217  
14218  
14270
14271
14219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14220   $as_echo_n "checking for library containing crypt... " >&6; }
14221   if ${ac_cv_search_crypt+:} false; then :
# Line 14326 | Line 14273 | if test "$ac_res" != no; then :
14273   fi
14274  
14275  
14329 # Define various chunk sizes for the pooling allocator
14330
14331
14332 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14333
14334
14335 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14336
14337
14338 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14339
14340
14341 $as_echo "#define MP_CHUNK_SIZE_INVITE 4*1024" >>confdefs.h
14342
14343
14344 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14345
14346
14347 $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14348
14349
14350 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14351
14352
14353 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14354
14355
14356 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14357
14358
14359 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14360
14361
14362 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14363
14364
14365 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14366
14367
14368 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14369
14370
14371 $as_echo "#define MP_CHUNK_SIZE_WHOWAS 256*1024" >>confdefs.h
14372
14373
14374
14276   # Argument processing.
14277  
14278    desired_iopoll_mechanism="none"
# Line 14474 | Line 14375 | _ACEOF
14375   int
14376   main ()
14377   {
14378 < epoll_create(256);
14378 > epoll_create1(EPOLL_CLOEXEC);
14379    ;
14380    return 0;
14381   }
# Line 14902 | Line 14803 | done
14803  
14804  
14805  
14806 + for flag in -Wcast-function-type; do
14807 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14808 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14809 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14810 + if eval \${$as_CACHEVAR+:} false; then :
14811 +  $as_echo_n "(cached) " >&6
14812 + else
14813 +
14814 +  ax_check_save_flags=$CFLAGS
14815 +  CFLAGS="$CFLAGS  $flag"
14816 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 + /* end confdefs.h.  */
14818 +
14819 + int
14820 + main ()
14821 + {
14822 +
14823 +  ;
14824 +  return 0;
14825 + }
14826 + _ACEOF
14827 + if ac_fn_c_try_compile "$LINENO"; then :
14828 +  eval "$as_CACHEVAR=yes"
14829 + else
14830 +  eval "$as_CACHEVAR=no"
14831 + fi
14832 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 +  CFLAGS=$ax_check_save_flags
14834 + fi
14835 + eval ac_res=\$$as_CACHEVAR
14836 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14837 + $as_echo "$ac_res" >&6; }
14838 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14839 +
14840 + if ${CFLAGS+:} false; then :
14841 +
14842 +  case " $CFLAGS " in #(
14843 +  *" $flag "*) :
14844 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14845 +  (: CFLAGS already contains $flag) 2>&5
14846 +  ac_status=$?
14847 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 +  test $ac_status = 0; } ;; #(
14849 +  *) :
14850 +
14851 +     as_fn_append CFLAGS " $flag"
14852 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14853 +  (: CFLAGS="$CFLAGS") 2>&5
14854 +  ac_status=$?
14855 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856 +  test $ac_status = 0; }
14857 +     ;;
14858 + esac
14859 +
14860 + else
14861 +
14862 +  CFLAGS=$flag
14863 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14864 +  (: CFLAGS="$CFLAGS") 2>&5
14865 +  ac_status=$?
14866 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 +  test $ac_status = 0; }
14868 +
14869 + fi
14870 +
14871 + else
14872 +  :
14873 + fi
14874 +
14875 + done
14876 +
14877 +
14878 +
14879 +
14880 +
14881   for flag in -Wcast-qual; do
14882    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15052 | Line 15028 | done
15028  
15029  
15030  
15031 + for flag in -Wduplicated-cond; do
15032 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15033 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15034 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15035 + if eval \${$as_CACHEVAR+:} false; then :
15036 +  $as_echo_n "(cached) " >&6
15037 + else
15038 +
15039 +  ax_check_save_flags=$CFLAGS
15040 +  CFLAGS="$CFLAGS  $flag"
15041 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 + /* end confdefs.h.  */
15043 +
15044 + int
15045 + main ()
15046 + {
15047 +
15048 +  ;
15049 +  return 0;
15050 + }
15051 + _ACEOF
15052 + if ac_fn_c_try_compile "$LINENO"; then :
15053 +  eval "$as_CACHEVAR=yes"
15054 + else
15055 +  eval "$as_CACHEVAR=no"
15056 + fi
15057 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 +  CFLAGS=$ax_check_save_flags
15059 + fi
15060 + eval ac_res=\$$as_CACHEVAR
15061 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15062 + $as_echo "$ac_res" >&6; }
15063 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15064 +
15065 + if ${CFLAGS+:} false; then :
15066 +
15067 +  case " $CFLAGS " in #(
15068 +  *" $flag "*) :
15069 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15070 +  (: CFLAGS already contains $flag) 2>&5
15071 +  ac_status=$?
15072 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073 +  test $ac_status = 0; } ;; #(
15074 +  *) :
15075 +
15076 +     as_fn_append CFLAGS " $flag"
15077 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15078 +  (: CFLAGS="$CFLAGS") 2>&5
15079 +  ac_status=$?
15080 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15081 +  test $ac_status = 0; }
15082 +     ;;
15083 + esac
15084 +
15085 + else
15086 +
15087 +  CFLAGS=$flag
15088 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15089 +  (: CFLAGS="$CFLAGS") 2>&5
15090 +  ac_status=$?
15091 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15092 +  test $ac_status = 0; }
15093 +
15094 + fi
15095 +
15096 + else
15097 +  :
15098 + fi
15099 +
15100 + done
15101 +
15102 +
15103 +
15104 +
15105 +
15106   for flag in -Wempty-body; do
15107    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 16102 | Line 16153 | done
16153  
16154  
16155  
16156 + for flag in -Wshift-negative-value; do
16157 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16158 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16159 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16160 + if eval \${$as_CACHEVAR+:} false; then :
16161 +  $as_echo_n "(cached) " >&6
16162 + else
16163 +
16164 +  ax_check_save_flags=$CFLAGS
16165 +  CFLAGS="$CFLAGS  $flag"
16166 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 + /* end confdefs.h.  */
16168 +
16169 + int
16170 + main ()
16171 + {
16172 +
16173 +  ;
16174 +  return 0;
16175 + }
16176 + _ACEOF
16177 + if ac_fn_c_try_compile "$LINENO"; then :
16178 +  eval "$as_CACHEVAR=yes"
16179 + else
16180 +  eval "$as_CACHEVAR=no"
16181 + fi
16182 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 +  CFLAGS=$ax_check_save_flags
16184 + fi
16185 + eval ac_res=\$$as_CACHEVAR
16186 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16187 + $as_echo "$ac_res" >&6; }
16188 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16189 +
16190 + if ${CFLAGS+:} false; then :
16191 +
16192 +  case " $CFLAGS " in #(
16193 +  *" $flag "*) :
16194 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16195 +  (: CFLAGS already contains $flag) 2>&5
16196 +  ac_status=$?
16197 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 +  test $ac_status = 0; } ;; #(
16199 +  *) :
16200 +
16201 +     as_fn_append CFLAGS " $flag"
16202 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16203 +  (: CFLAGS="$CFLAGS") 2>&5
16204 +  ac_status=$?
16205 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16206 +  test $ac_status = 0; }
16207 +     ;;
16208 + esac
16209 +
16210 + else
16211 +
16212 +  CFLAGS=$flag
16213 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16214 +  (: CFLAGS="$CFLAGS") 2>&5
16215 +  ac_status=$?
16216 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16217 +  test $ac_status = 0; }
16218 +
16219 + fi
16220 +
16221 + else
16222 +  :
16223 + fi
16224 +
16225 + done
16226 +
16227 +
16228 +
16229 +
16230 +
16231   for flag in -Wsign-compare; do
16232    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 16477 | Line 16603 | done
16603   fi
16604  
16605  
16606 < # Check whether --enable-openssl was given.
16607 < if test "${enable_openssl+set}" = set; then :
16608 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16609 < else
16610 <   cf_enable_openssl="auto"
16606 >  # Check whether --enable-efence was given.
16607 > if test "${enable_efence+set}" = set; then :
16608 >  enableval=$enable_efence; efence="$enableval"
16609 > else
16610 >  efence="no"
16611   fi
16612  
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16488 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16489 if test "$cf_enable_openssl" != "no"; then
16490  cf_openssl_basedir=""
16491  if test "$cf_enable_openssl" != "auto" &&
16492     test "$cf_enable_openssl" != "yes"; then
16493          cf_openssl_basedir="${cf_enable_openssl}"
16494  else
16495        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16496                /opt /opt/openssl /usr/local/openssl; do
16497      if test -f "${dirs}/include/openssl/opensslv.h"; then
16498        cf_openssl_basedir="${dirs}"
16499        break
16500      fi
16501    done
16502    unset dirs
16503  fi
16613  
16614 <    if test ! -z "$cf_openssl_basedir"; then
16506 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16507 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16508 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16509 <    else
16510 <                  cf_openssl_basedir=""
16511 <    fi
16512 <  else
16513 <                            if test -f "/usr/include/openssl/opensslv.h"; then
16514 <      cf_openssl_basedir="/usr"
16515 <    fi
16516 <  fi
16614 >  if test "$efence" = "yes"; then :
16615  
16616 <      if test ! -z "$cf_openssl_basedir"; then
16617 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16618 < $as_echo "$cf_openssl_basedir" >&6; }
16619 <    cf_enable_openssl="yes"
16616 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16617 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16618 > if ${ac_cv_search_EF_Print+:} false; then :
16619 >  $as_echo_n "(cached) " >&6
16620 > else
16621 >  ac_func_search_save_LIBS=$LIBS
16622 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 > /* end confdefs.h.  */
16624 >
16625 > /* Override any GCC internal prototype to avoid an error.
16626 >   Use char because int might match the return type of a GCC
16627 >   builtin and then its argument prototype would still apply.  */
16628 > #ifdef __cplusplus
16629 > extern "C"
16630 > #endif
16631 > char EF_Print ();
16632 > int
16633 > main ()
16634 > {
16635 > return EF_Print ();
16636 >  ;
16637 >  return 0;
16638 > }
16639 > _ACEOF
16640 > for ac_lib in '' efence; do
16641 >  if test -z "$ac_lib"; then
16642 >    ac_res="none required"
16643    else
16644 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16645 < $as_echo "not found. Please check your path." >&6; }
16525 <    cf_enable_openssl="no"
16644 >    ac_res=-l$ac_lib
16645 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16646    fi
16647 <  unset cf_openssl_basedir
16647 >  if ac_fn_c_try_link "$LINENO"; then :
16648 >  ac_cv_search_EF_Print=$ac_res
16649 > fi
16650 > rm -f core conftest.err conftest.$ac_objext \
16651 >    conftest$ac_exeext
16652 >  if ${ac_cv_search_EF_Print+:} false; then :
16653 >  break
16654 > fi
16655 > done
16656 > if ${ac_cv_search_EF_Print+:} false; then :
16657 >
16658   else
16659 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16660 < $as_echo "disabled" >&6; }
16659 >  ac_cv_search_EF_Print=no
16660 > fi
16661 > rm conftest.$ac_ext
16662 > LIBS=$ac_func_search_save_LIBS
16663   fi
16664 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16665 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16666 + ac_res=$ac_cv_search_EF_Print
16667 + if test "$ac_res" != no; then :
16668 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16669  
16670 < if test "$cf_enable_openssl" != "no"; then :
16671 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16672 < $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16673 <  if test "$cross_compiling" = yes; then :
16674 <  cf_openssl_version_ok=no
16670 > else
16671 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16672 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16673 > as_fn_error $? "Electric Fence 'efence' library not found
16674 > See \`config.log' for more details" "$LINENO" 5; }
16675 > fi
16676 >
16677 >
16678 > fi
16679 >
16680 >
16681 >
16682 >
16683 > # Check whether --with-tls was given.
16684 > if test "${with_tls+set}" = set; then :
16685 >  withval=$with_tls; with_tls=$withval
16686 > else
16687 >  with_tls=auto
16688 > fi
16689 >
16690 >
16691 > if test "$with_tls" = "openssl" ||
16692 >   test "$with_tls" = "auto"; then
16693 >    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16694 > if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16695 >
16696 >      if test "$cross_compiling" = yes; then :
16697 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16698 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16699 > as_fn_error $? "cannot run test program while cross compiling
16700 > See \`config.log' for more details" "$LINENO" 5; }
16701   else
16702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703   /* end confdefs.h.  */
16704  
16705  
16706 <    #include <openssl/opensslv.h>
16707 <    #include <stdlib.h>
16706 >          #include <openssl/opensslv.h>
16707 >          #include <stdlib.h>
16708   int
16709   main ()
16710   {
16711 < exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16711 >
16712 >          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16713    ;
16714    return 0;
16715   }
16716   _ACEOF
16717   if ac_fn_c_try_run "$LINENO"; then :
16718 <  cf_openssl_version_ok=yes
16555 < else
16556 <  cf_openssl_version_ok=no
16557 < fi
16558 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16559 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16560 < fi
16561 <
16562 <
16563 <  if test "$cf_openssl_version_ok" = "yes"; then :
16564 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16565 < $as_echo "found" >&6; }
16566 <
16567 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16718 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16719   $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16720   if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16721    $as_echo_n "(cached) " >&6
# Line 16609 | Line 16760 | _ACEOF
16760  
16761   fi
16762  
16763 + fi
16764 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16765 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16766 + fi
16767 +
16768 + fi
16769 +
16770 +
16771 +
16772      if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16774   $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
# Line 16657 | Line 16817 | fi
16817  
16818   fi
16819  
16820 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16821 + $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16822 +    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16823 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16824 + $as_echo "found" >&6; }
16825   else
16826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16827   $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16663    cf_enable_openssl="no"
16828   fi
16665 fi
16666
16829  
16668 # Check whether --enable-gnutls was given.
16669 if test "${enable_gnutls+set}" = set; then :
16670  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16671 else
16672   cf_enable_gnutls="auto"
16830   fi
16831  
16832 <
16833 < if test "$cf_enable_openssl" != "auto" &&
16834 <   test "$cf_enable_openssl" != "yes"; then
16678 <  if test "$cf_enable_gnutls" != "no"; then
16832 > if test "$with_tls" = "gnutls" ||
16833 >   test "$with_tls" = "auto"; then
16834 >  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16835  
16836      ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16837   if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
# Line 16696 | Line 16852 | int
16852   main ()
16853   {
16854  
16855 <          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16855 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16856    ;
16857    return 0;
16858   }
16859   _ACEOF
16860   if ac_fn_c_try_run "$LINENO"; then :
16861 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16861 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16862   $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16863   if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16864    $as_echo_n "(cached) " >&6
# Line 16756 | Line 16912 | fi
16912  
16913  
16914  
16915 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16916 < $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16915 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16916 > $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16917      if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16919   $as_echo "found" >&6; }
# Line 16769 | Line 16925 | fi
16925    fi
16926   fi
16927  
16928 + if test "$with_tls" = "wolfssl" ||
16929 +   test "$with_tls" = "auto"; then
16930 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
16931 +     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
16932  
16933 <  # Check whether --enable-libgeoip was given.
16934 < if test "${enable_libgeoip+set}" = set; then :
16935 <  enableval=$enable_libgeoip;
16936 < else
16937 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
16938 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
16939 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
16940 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
16941 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16933 >    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16934 > if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
16935 >
16936 >      if test "$cross_compiling" = yes; then :
16937 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16938 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16939 > as_fn_error $? "cannot run test program while cross compiling
16940 > See \`config.log' for more details" "$LINENO" 5; }
16941 > else
16942 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 > /* end confdefs.h.  */
16944 >
16945 >
16946 >          #include <wolfssl/version.h>
16947 >          #include <stdlib.h>
16948 > int
16949 > main ()
16950 > {
16951 >
16952 >          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
16953 >  ;
16954 >  return 0;
16955 > }
16956 > _ACEOF
16957 > if ac_fn_c_try_run "$LINENO"; then :
16958 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
16959 > $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
16960 > if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
16961    $as_echo_n "(cached) " >&6
16962   else
16963 <  ac_func_search_save_LIBS=$LIBS
16963 >  ac_check_lib_save_LIBS=$LIBS
16964 > LIBS="-lwolfssl  $LIBS"
16965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966   /* end confdefs.h.  */
16967  
# Line 16791 | Line 16971 | cat confdefs.h - <<_ACEOF >conftest.$ac_
16971   #ifdef __cplusplus
16972   extern "C"
16973   #endif
16974 < char GeoIP_id_by_ipnum_v6_gl ();
16974 > char wolfSSL_X509_digest ();
16975   int
16976   main ()
16977   {
16978 < return GeoIP_id_by_ipnum_v6_gl ();
16978 > return wolfSSL_X509_digest ();
16979    ;
16980    return 0;
16981   }
16982   _ACEOF
16983 < for ac_lib in '' GeoIP; do
16984 <  if test -z "$ac_lib"; then
16985 <    ac_res="none required"
16986 <  else
16807 <    ac_res=-l$ac_lib
16808 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16809 <  fi
16810 <  if ac_fn_c_try_link "$LINENO"; then :
16811 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
16983 > if ac_fn_c_try_link "$LINENO"; then :
16984 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
16985 > else
16986 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
16987   fi
16988   rm -f core conftest.err conftest.$ac_objext \
16989 <    conftest$ac_exeext
16990 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16816 <  break
16989 >    conftest$ac_exeext conftest.$ac_ext
16990 > LIBS=$ac_check_lib_save_LIBS
16991   fi
16992 < done
16993 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16992 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
16993 > $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
16994 > if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
16995 >  cat >>confdefs.h <<_ACEOF
16996 > #define HAVE_LIBWOLFSSL 1
16997 > _ACEOF
16998 >
16999 >  LIBS="-lwolfssl $LIBS"
17000  
16821 else
16822  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
17001   fi
17002 < rm conftest.$ac_ext
16825 < LIBS=$ac_func_search_save_LIBS
17002 >
17003   fi
17004 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
17005 < $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
17006 < ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
17007 < if test "$ac_res" != no; then :
17008 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17004 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17005 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
17006 > fi
17007 >
17008 > fi
17009 >
17010 >
17011  
17012 < $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
17012 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17013 > $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17014 >    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17015 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17016 > $as_echo "found" >&6; }
17017 > else
17018 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17019 > $as_echo "no - wolfSSL support disabled" >&6; }
17020 > fi
17021  
17022 +  fi
17023   fi
17024  
17025 +
17026 +
17027 + # Disable -Wformat-truncation
17028 +
17029 +
17030 +
17031 +
17032 + for flag in -Wno-format-truncation; do
17033 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17034 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17035 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17036 + if eval \${$as_CACHEVAR+:} false; then :
17037 +  $as_echo_n "(cached) " >&6
17038 + else
17039 +
17040 +  ax_check_save_flags=$CFLAGS
17041 +  CFLAGS="$CFLAGS  $flag"
17042 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 + /* end confdefs.h.  */
17044 +
17045 + int
17046 + main ()
17047 + {
17048 +
17049 +  ;
17050 +  return 0;
17051 + }
17052 + _ACEOF
17053 + if ac_fn_c_try_compile "$LINENO"; then :
17054 +  eval "$as_CACHEVAR=yes"
17055 + else
17056 +  eval "$as_CACHEVAR=no"
17057 + fi
17058 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 +  CFLAGS=$ax_check_save_flags
17060   fi
17061 + eval ac_res=\$$as_CACHEVAR
17062 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17063 + $as_echo "$ac_res" >&6; }
17064 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17065 +
17066 + if ${CFLAGS+:} false; then :
17067 +
17068 +  case " $CFLAGS " in #(
17069 +  *" $flag "*) :
17070 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17071 +  (: CFLAGS already contains $flag) 2>&5
17072 +  ac_status=$?
17073 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17074 +  test $ac_status = 0; } ;; #(
17075 +  *) :
17076 +
17077 +     as_fn_append CFLAGS " $flag"
17078 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17079 +  (: CFLAGS="$CFLAGS") 2>&5
17080 +  ac_status=$?
17081 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 +  test $ac_status = 0; }
17083 +     ;;
17084 + esac
17085 +
17086 + else
17087  
17088 +  CFLAGS=$flag
17089 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17090 +  (: CFLAGS="$CFLAGS") 2>&5
17091 +  ac_status=$?
17092 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 +  test $ac_status = 0; }
17094  
17095   fi
17096  
17097 + else
17098 +  :
17099 + fi
17100 +
17101 + done
17102  
17103  
17104  
# Line 17675 | Line 17935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17935   #
17936   # INIT-COMMANDS
17937   #
17938 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17938 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17939  
17940  
17941   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 18579 | Line 18839 | $as_echo "$as_me: executing $ac_file com
18839    # Older Autoconf quotes --file arguments for eval, but not when files
18840    # are listed without --file.  Let's play safe and only enable the eval
18841    # if we detect the quoting.
18842 <  case $CONFIG_FILES in
18843 <  *\'*) eval set x "$CONFIG_FILES" ;;
18844 <  *)   set x $CONFIG_FILES ;;
18845 <  esac
18842 >  # TODO: see whether this extra hack can be removed once we start
18843 >  # requiring Autoconf 2.70 or later.
18844 >  case $CONFIG_FILES in #(
18845 >  *\'*) :
18846 >    eval set x "$CONFIG_FILES" ;; #(
18847 >  *) :
18848 >    set x $CONFIG_FILES ;; #(
18849 >  *) :
18850 >     ;;
18851 > esac
18852    shift
18853 <  for mf
18853 >  # Used to flag and report bootstrapping failures.
18854 >  am_rc=0
18855 >  for am_mf
18856    do
18857      # Strip MF so we end up with the name of the file.
18858 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18859 <    # Check whether this is an Automake generated Makefile or not.
18860 <    # We used to match only the files named 'Makefile.in', but
18861 <    # some people rename them; so instead we look at the file content.
18594 <    # Grep'ing the first line is not enough: some people post-process
18595 <    # each Makefile.in and add a new line on top of each file to say so.
18596 <    # Grep'ing the whole file is not good either: AIX grep has a line
18858 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18859 >    # Check whether this is an Automake generated Makefile which includes
18860 >    # dependency-tracking related rules and includes.
18861 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18862      # limit of 2048, but all sed's we know have understand at least 4000.
18863 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18864 <      dirpart=`$as_dirname -- "$mf" ||
18865 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18866 <         X"$mf" : 'X\(//\)[^/]' \| \
18867 <         X"$mf" : 'X\(//\)$' \| \
18868 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18869 < $as_echo X"$mf" |
18863 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18864 >      || continue
18865 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18866 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18868 >         X"$am_mf" : 'X\(//\)$' \| \
18869 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18870 > $as_echo X"$am_mf" |
18871      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18872              s//\1/
18873              q
# Line 18619 | Line 18885 | $as_echo X"$mf" |
18885              q
18886            }
18887            s/.*/./; q'`
18888 <    else
18889 <      continue
18890 <    fi
18891 <    # Extract the definition of DEPDIR, am__include, and am__quote
18892 <    # from the Makefile without running 'make'.
18893 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18628 <    test -z "$DEPDIR" && continue
18629 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18630 <    test -z "$am__include" && continue
18631 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18632 <    # Find all dependency output files, they are included files with
18633 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18634 <    # simplest approach to changing $(DEPDIR) to its actual value in the
18635 <    # expansion.
18636 <    for file in `sed -n "
18637 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18638 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18639 <      # Make sure the directory exists.
18640 <      test -f "$dirpart/$file" && continue
18641 <      fdir=`$as_dirname -- "$file" ||
18642 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18643 <         X"$file" : 'X\(//\)[^/]' \| \
18644 <         X"$file" : 'X\(//\)$' \| \
18645 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18646 < $as_echo X"$file" |
18647 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18648 <            s//\1/
18649 <            q
18650 <          }
18651 <          /^X\(\/\/\)[^/].*/{
18888 >    am_filepart=`$as_basename -- "$am_mf" ||
18889 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18890 >         X"$am_mf" : 'X\(//\)$' \| \
18891 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18892 > $as_echo X/"$am_mf" |
18893 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18894              s//\1/
18895              q
18896            }
18897 <          /^X\(\/\/\)$/{
18897 >          /^X\/\(\/\/\)$/{
18898              s//\1/
18899              q
18900            }
18901 <          /^X\(\/\).*/{
18901 >          /^X\/\(\/\).*/{
18902              s//\1/
18903              q
18904            }
18905            s/.*/./; q'`
18906 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18907 <      # echo "creating $dirpart/$file"
18908 <      echo '# dummy' > "$dirpart/$file"
18909 <    done
18906 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18907 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18908 >        | $MAKE -f - am--depfiles" >&5
18909 >   (cd "$am_dirpart" \
18910 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18911 >        | $MAKE -f - am--depfiles) >&5 2>&5
18912 >   ac_status=$?
18913 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 >   (exit $ac_status); } || am_rc=$?
18915    done
18916 +  if test $am_rc -ne 0; then
18917 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18918 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18919 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18920 +    for automatic dependency tracking.  Try re-running configure with the
18921 +    '--disable-dependency-tracking' option to at least be able to build
18922 +    the package (albeit without support for automatic dependency tracking).
18923 + See \`config.log' for more details" "$LINENO" 5; }
18924 +  fi
18925 +  { am_dirpart=; unset am_dirpart;}
18926 +  { am_filepart=; unset am_filepart;}
18927 +  { am_mf=; unset am_mf;}
18928 +  { am_rc=; unset am_rc;}
18929 +  rm -f conftest-deps.mk
18930   }
18931   ;;
18932      "libtool":C)
# Line 18683 | Line 18944 | $as_echo X"$file" |
18944      cat <<_LT_EOF >> "$cfgfile"
18945   #! $SHELL
18946   # Generated automatically by $as_me ($PACKAGE) $VERSION
18686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18947   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18948  
18949   # Provide generalized library-building support services.

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)