| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 8779 2019-01-13 11:32:53Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 9166 2020-01-18 19:06:14Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
|
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 5 |
|
# |
| 767 |
|
docdir |
| 768 |
|
oldincludedir |
| 769 |
|
includedir |
| 770 |
+ |
runstatedir |
| 771 |
|
localstatedir |
| 772 |
|
sharedstatedir |
| 773 |
|
sysconfdir |
| 816 |
|
enable_efence |
| 817 |
|
enable_openssl |
| 818 |
|
enable_gnutls |
| 819 |
+ |
enable_wolfssl |
| 820 |
|
' |
| 821 |
|
ac_precious_vars='build_alias |
| 822 |
|
host_alias |
| 868 |
|
sysconfdir='${prefix}/etc' |
| 869 |
|
sharedstatedir='${prefix}/com' |
| 870 |
|
localstatedir='${prefix}/var' |
| 871 |
+ |
runstatedir='${localstatedir}/run' |
| 872 |
|
includedir='${prefix}/include' |
| 873 |
|
oldincludedir='/usr/include' |
| 874 |
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1121 |
|
| -silent | --silent | --silen | --sile | --sil) |
| 1122 |
|
silent=yes ;; |
| 1123 |
|
|
| 1124 |
+ |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1125 |
+ |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1126 |
+ |
| --run | --ru | --r) |
| 1127 |
+ |
ac_prev=runstatedir ;; |
| 1128 |
+ |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1129 |
+ |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1130 |
+ |
| --run=* | --ru=* | --r=*) |
| 1131 |
+ |
runstatedir=$ac_optarg ;; |
| 1132 |
+ |
|
| 1133 |
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1134 |
|
ac_prev=sbindir ;; |
| 1135 |
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1267 |
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1268 |
|
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1269 |
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1270 |
< |
libdir localedir mandir |
| 1270 |
> |
libdir localedir mandir runstatedir |
| 1271 |
|
do |
| 1272 |
|
eval ac_val=\$$ac_var |
| 1273 |
|
# Remove trailing slashes. |
| 1420 |
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1421 |
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1422 |
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1423 |
+ |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1424 |
|
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1425 |
|
--includedir=DIR C header files [PREFIX/include] |
| 1426 |
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1487 |
|
--disable-openssl Disable LibreSSL/OpenSSL support. |
| 1488 |
|
--enable-gnutls Enable GnuTLS support. |
| 1489 |
|
--disable-gnutls Disable GnuTLS support. |
| 1490 |
+ |
--enable-wolfssl Enable wolfSSL support. |
| 1491 |
+ |
--disable-wolfssl Disable wolfSSL support. |
| 1492 |
|
|
| 1493 |
|
Optional Packages: |
| 1494 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 5796 |
|
lt_cv_deplibs_check_method=pass_all |
| 5797 |
|
;; |
| 5798 |
|
|
| 5799 |
< |
netbsd*) |
| 5799 |
> |
netbsd* | netbsdelf*-gnu) |
| 5800 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5801 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5802 |
|
else |
| 6659 |
|
test $ac_status = 0; }; then |
| 6660 |
|
# Now try to grab the symbols. |
| 6661 |
|
nlist=conftest.nm |
| 6662 |
< |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6663 |
< |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6649 |
< |
ac_status=$? |
| 6650 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6651 |
< |
test $ac_status = 0; } && test -s "$nlist"; then |
| 6662 |
> |
$ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 6663 |
> |
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 6664 |
|
# Try sorting and uniquifying the output. |
| 6665 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
| 6666 |
|
mv -f "$nlist"T "$nlist" |
| 9007 |
|
lt_prog_compiler_pic='-KPIC' |
| 9008 |
|
lt_prog_compiler_static='-static' |
| 9009 |
|
;; |
| 9010 |
+ |
# flang / f18. f95 an alias for gfortran or flang on Debian |
| 9011 |
+ |
flang* | f18* | f95*) |
| 9012 |
+ |
lt_prog_compiler_wl='-Wl,' |
| 9013 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 9014 |
+ |
lt_prog_compiler_static='-static' |
| 9015 |
+ |
;; |
| 9016 |
|
# icc used to be incompatible with GCC. |
| 9017 |
|
# ICC 10 doesn't accept -KPIC any more. |
| 9018 |
|
icc* | ifort*) |
| 9489 |
|
openbsd* | bitrig*) |
| 9490 |
|
with_gnu_ld=no |
| 9491 |
|
;; |
| 9492 |
+ |
linux* | k*bsd*-gnu | gnu*) |
| 9493 |
+ |
link_all_deplibs=no |
| 9494 |
+ |
;; |
| 9495 |
|
esac |
| 9496 |
|
|
| 9497 |
|
ld_shlibs=yes |
| 9746 |
|
fi |
| 9747 |
|
;; |
| 9748 |
|
|
| 9749 |
< |
netbsd*) |
| 9749 |
> |
netbsd* | netbsdelf*-gnu) |
| 9750 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9751 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9752 |
|
wlarc= |
| 10416 |
|
if test yes = "$lt_cv_irix_exported_symbol"; then |
| 10417 |
|
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' |
| 10418 |
|
fi |
| 10419 |
+ |
link_all_deplibs=no |
| 10420 |
|
else |
| 10421 |
|
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' |
| 10422 |
|
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' |
| 10438 |
|
esac |
| 10439 |
|
;; |
| 10440 |
|
|
| 10441 |
< |
netbsd*) |
| 10441 |
> |
netbsd* | netbsdelf*-gnu) |
| 10442 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10443 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10444 |
|
else |
| 11553 |
|
dynamic_linker='GNU/Linux ld.so' |
| 11554 |
|
;; |
| 11555 |
|
|
| 11556 |
+ |
netbsdelf*-gnu) |
| 11557 |
+ |
version_type=linux |
| 11558 |
+ |
need_lib_prefix=no |
| 11559 |
+ |
need_version=no |
| 11560 |
+ |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11561 |
+ |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11562 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11563 |
+ |
shlibpath_overrides_runpath=no |
| 11564 |
+ |
hardcode_into_libs=yes |
| 11565 |
+ |
dynamic_linker='NetBSD ld.elf_so' |
| 11566 |
+ |
;; |
| 11567 |
+ |
|
| 11568 |
|
netbsd*) |
| 11569 |
|
version_type=sunos |
| 11570 |
|
need_lib_prefix=no |
| 13187 |
|
# at 6.2 and later dlopen does load deplibs. |
| 13188 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13189 |
|
;; |
| 13190 |
< |
netbsd*) |
| 13190 |
> |
netbsd* | netbsdelf*-gnu) |
| 13191 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13192 |
|
;; |
| 13193 |
|
openbsd*) |
| 16744 |
|
fi |
| 16745 |
|
|
| 16746 |
|
if test "$cf_enable_openssl" != "no"; then : |
| 16747 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1f and above" >&5 |
| 16747 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5 |
| 16748 |
|
$as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; } |
| 16749 |
|
if test "$cross_compiling" = yes; then : |
| 16750 |
|
cf_openssl_version_ok=no |
| 16909 |
|
main () |
| 16910 |
|
{ |
| 16911 |
|
|
| 16912 |
< |
exit(!(GNUTLS_VERSION_NUMBER >= 0x030508)); |
| 16912 |
> |
exit(!(GNUTLS_VERSION_NUMBER >= 0x030605)); |
| 16913 |
|
; |
| 16914 |
|
return 0; |
| 16915 |
|
} |
| 16969 |
|
|
| 16970 |
|
|
| 16971 |
|
|
| 16972 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.5.8 and above" >&5 |
| 16973 |
< |
$as_echo_n "checking for GnuTLS 3.5.8 and above... " >&6; } |
| 16972 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5 |
| 16973 |
> |
$as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; } |
| 16974 |
|
if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then : |
| 16975 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 16976 |
|
$as_echo "found" >&6; } |
| 16983 |
|
fi |
| 16984 |
|
|
| 16985 |
|
|
| 16986 |
+ |
# Check whether --enable-wolfssl was given. |
| 16987 |
+ |
if test "${enable_wolfssl+set}" = set; then : |
| 16988 |
+ |
enableval=$enable_wolfssl; cf_enable_wolfssl=$enableval |
| 16989 |
+ |
else |
| 16990 |
+ |
cf_enable_wolfssl="auto" |
| 16991 |
+ |
fi |
| 16992 |
+ |
|
| 16993 |
+ |
|
| 16994 |
+ |
if test "$cf_enable_openssl" != "auto" && |
| 16995 |
+ |
test "$cf_enable_openssl" != "yes"; then |
| 16996 |
+ |
if test "$cf_enable_gnutls" = "no"; then |
| 16997 |
+ |
|
| 16998 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default" |
| 16999 |
+ |
if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then : |
| 17000 |
+ |
|
| 17001 |
+ |
if test "$cross_compiling" = yes; then : |
| 17002 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17003 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17004 |
+ |
as_fn_error $? "cannot run test program while cross compiling |
| 17005 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
| 17006 |
+ |
else |
| 17007 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17008 |
+ |
/* end confdefs.h. */ |
| 17009 |
+ |
|
| 17010 |
+ |
|
| 17011 |
+ |
#include <wolfssl/version.h> |
| 17012 |
+ |
#include <stdlib.h> |
| 17013 |
+ |
int |
| 17014 |
+ |
main () |
| 17015 |
+ |
{ |
| 17016 |
+ |
|
| 17017 |
+ |
exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000)); |
| 17018 |
+ |
; |
| 17019 |
+ |
return 0; |
| 17020 |
+ |
} |
| 17021 |
+ |
_ACEOF |
| 17022 |
+ |
if ac_fn_c_try_run "$LINENO"; then : |
| 17023 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5 |
| 17024 |
+ |
$as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; } |
| 17025 |
+ |
if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then : |
| 17026 |
+ |
$as_echo_n "(cached) " >&6 |
| 17027 |
+ |
else |
| 17028 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 17029 |
+ |
LIBS="-lwolfssl $LIBS" |
| 17030 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17031 |
+ |
/* end confdefs.h. */ |
| 17032 |
+ |
|
| 17033 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 17034 |
+ |
Use char because int might match the return type of a GCC |
| 17035 |
+ |
builtin and then its argument prototype would still apply. */ |
| 17036 |
+ |
#ifdef __cplusplus |
| 17037 |
+ |
extern "C" |
| 17038 |
+ |
#endif |
| 17039 |
+ |
char wolfSSL_X509_digest (); |
| 17040 |
+ |
int |
| 17041 |
+ |
main () |
| 17042 |
+ |
{ |
| 17043 |
+ |
return wolfSSL_X509_digest (); |
| 17044 |
+ |
; |
| 17045 |
+ |
return 0; |
| 17046 |
+ |
} |
| 17047 |
+ |
_ACEOF |
| 17048 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 17049 |
+ |
ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes |
| 17050 |
+ |
else |
| 17051 |
+ |
ac_cv_lib_wolfssl_wolfSSL_X509_digest=no |
| 17052 |
+ |
fi |
| 17053 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 17054 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 17055 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 17056 |
+ |
fi |
| 17057 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5 |
| 17058 |
+ |
$as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; } |
| 17059 |
+ |
if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then : |
| 17060 |
+ |
cat >>confdefs.h <<_ACEOF |
| 17061 |
+ |
#define HAVE_LIBWOLFSSL 1 |
| 17062 |
+ |
_ACEOF |
| 17063 |
+ |
|
| 17064 |
+ |
LIBS="-lwolfssl $LIBS" |
| 17065 |
+ |
|
| 17066 |
+ |
fi |
| 17067 |
+ |
|
| 17068 |
+ |
fi |
| 17069 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17070 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17071 |
+ |
fi |
| 17072 |
+ |
|
| 17073 |
+ |
fi |
| 17074 |
+ |
|
| 17075 |
+ |
|
| 17076 |
+ |
|
| 17077 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5 |
| 17078 |
+ |
$as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; } |
| 17079 |
+ |
if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then : |
| 17080 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 17081 |
+ |
$as_echo "found" >&6; } |
| 17082 |
+ |
else |
| 17083 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5 |
| 17084 |
+ |
$as_echo "no - wolfSSL support disabled" >&6; } |
| 17085 |
+ |
fi |
| 17086 |
+ |
|
| 17087 |
+ |
fi |
| 17088 |
+ |
fi |
| 17089 |
+ |
|
| 17090 |
+ |
|
| 17091 |
|
# Disable -Wformat-truncation |
| 17092 |
|
|
| 17093 |
|
|
| 19008 |
|
cat <<_LT_EOF >> "$cfgfile" |
| 19009 |
|
#! $SHELL |
| 19010 |
|
# Generated automatically by $as_me ($PACKAGE) $VERSION |
| 18872 |
– |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19011 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 19012 |
|
|
| 19013 |
|
# Provide generalized library-building support services. |