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

Comparing ircd-hybrid/branches/8.2.x/configure (file contents):
Revision 9163 by michael, Fri Jan 17 19:07:00 2020 UTC vs.
Revision 9830 by michael, Sun Dec 20 03:54:31 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 8977 2019-05-18 20:53:40Z michael .
2 > # From configure.ac Id: configure.ac 9760 2020-11-30 11:34:48Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.26.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.36.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
# Line 593 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='8.2.26'
597 < PACKAGE_STRING='ircd-hybrid 8.2.26'
596 > PACKAGE_VERSION='8.2.36'
597 > PACKAGE_STRING='ircd-hybrid 8.2.36'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# Line 814 | Line 814 | enable_assert
814   enable_debugging
815   enable_warnings
816   enable_efence
817 < enable_openssl
818 < enable_gnutls
817 > with_tls
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 1379 | Line 1378 | if test "$ac_init_help" = "long"; then
1378    # Omit some internal or obsolete options to make the list less imposing.
1379    # This message is too long to be a string in the A/UX 3.1 sh.
1380    cat <<_ACEOF
1381 < \`configure' configures ircd-hybrid 8.2.26 to adapt to many kinds of systems.
1381 > \`configure' configures ircd-hybrid 8.2.36 to adapt to many kinds of systems.
1382  
1383   Usage: $0 [OPTION]... [VAR=VALUE]...
1384  
# Line 1450 | Line 1449 | fi
1449  
1450   if test -n "$ac_init_help"; then
1451    case $ac_init_help in
1452 <     short | recursive ) echo "Configuration of ircd-hybrid 8.2.26:";;
1452 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.36:";;
1453     esac
1454    cat <<\_ACEOF
1455  
# Line 1482 | Line 1481 | Optional Features:
1481    --enable-warnings       Enable compiler warnings.
1482    --enable-efence         Enable linking with Electric Fence 'efence' memory
1483                            debugger library.
1485  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1486  --disable-openssl            Disable LibreSSL/OpenSSL support.
1487  --enable-gnutls             Enable GnuTLS support.
1488  --disable-gnutls             Disable GnuTLS support.
1484  
1485   Optional Packages:
1486    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 1501 | 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 1586 | Line 1583 | fi
1583   test -n "$ac_init_help" && exit $ac_status
1584   if $ac_init_version; then
1585    cat <<\_ACEOF
1586 < ircd-hybrid configure 8.2.26
1586 > ircd-hybrid configure 8.2.36
1587   generated by GNU Autoconf 2.69
1588  
1589   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 2055 | Line 2052 | cat >config.log <<_ACEOF
2052   This file contains any messages produced by compilers while
2053   running configure, to aid debugging if configure makes a mistake.
2054  
2055 < It was created by ircd-hybrid $as_me 8.2.26, which was
2055 > It was created by ircd-hybrid $as_me 8.2.36, which was
2056   generated by GNU Autoconf 2.69.  Invocation command line was
2057  
2058    $ $0 $@
# Line 2335 | Line 2332 | $as_echo "$as_me: creating cache $cache_
2332    >$cache_file
2333   fi
2334  
2338 as_fn_append ac_func_list " accept4"
2339 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"
# Line 2927 | Line 2922 | fi
2922  
2923   # Define the identity of the package.
2924   PACKAGE='ircd-hybrid'
2925 < VERSION='8.2.26'
2925 > VERSION='8.2.36'
2926  
2927  
2928   cat >>confdefs.h <<_ACEOF
# Line 6155 | Line 6150 | esac
6150   fi
6151  
6152   : ${AR=ar}
6153 < : ${AR_FLAGS=cru}
6153 > : ${AR_FLAGS=cr}
6154  
6155  
6156  
# Line 7876 | Line 7871 | int forced_loaded() { return 2;}
7871   _LT_EOF
7872        echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7873        $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7874 <      echo "$AR cru libconftest.a conftest.o" >&5
7875 <      $AR cru libconftest.a conftest.o 2>&5
7874 >      echo "$AR cr libconftest.a conftest.o" >&5
7875 >      $AR cr libconftest.a conftest.o 2>&5
7876        echo "$RANLIB libconftest.a" >&5
7877        $RANLIB libconftest.a 2>&5
7878        cat > conftest.c << _LT_EOF
# Line 14191 | Line 14186 | done
14186  
14187  
14188  
14194
14195
14196
14197
14189   # Checks for header files.
14190  
14191  
# Line 16687 | Line 16678 | fi
16678   fi
16679  
16680  
16690 # Check whether --enable-openssl was given.
16691 if test "${enable_openssl+set}" = set; then :
16692  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16693 else
16694   cf_enable_openssl="auto"
16695 fi
16696
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16698 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16699 if test "$cf_enable_openssl" != "no"; then
16700  cf_openssl_basedir=""
16701  if test "$cf_enable_openssl" != "auto" &&
16702     test "$cf_enable_openssl" != "yes"; then
16703          cf_openssl_basedir="${cf_enable_openssl}"
16704  else
16705        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16706                /opt /opt/openssl /usr/local/openssl; do
16707      if test -f "${dirs}/include/openssl/opensslv.h"; then
16708        cf_openssl_basedir="${dirs}"
16709        break
16710      fi
16711    done
16712    unset dirs
16713  fi
16681  
16715    if test ! -z "$cf_openssl_basedir"; then
16716    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16717      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16718      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16719    else
16720                  cf_openssl_basedir=""
16721    fi
16722  else
16723                            if test -f "/usr/include/openssl/opensslv.h"; then
16724      cf_openssl_basedir="/usr"
16725    fi
16726  fi
16682  
16683 <      if test ! -z "$cf_openssl_basedir"; then
16684 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16685 < $as_echo "$cf_openssl_basedir" >&6; }
16731 <    cf_enable_openssl="yes"
16732 <  else
16733 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16734 < $as_echo "not found. Please check your path." >&6; }
16735 <    cf_enable_openssl="no"
16736 <  fi
16737 <  unset cf_openssl_basedir
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 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16740 < $as_echo "disabled" >&6; }
16687 >  with_tls=auto
16688   fi
16689  
16690 < if test "$cf_enable_openssl" != "no"; then :
16691 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16692 < $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16693 <  if test "$cross_compiling" = yes; then :
16694 <  cf_openssl_version_ok=no
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 >= 0x1010100fL));
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
16765 < else
16766 <  cf_openssl_version_ok=no
16767 < fi
16768 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16769 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16770 < fi
16771 <
16772 <
16773 <  if test "$cf_openssl_version_ok" = "yes"; then :
16774 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16775 < $as_echo "found" >&6; }
16776 <
16777 <    { $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 16819 | 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 16867 | 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; }
16873    cf_enable_openssl="no"
16874 fi
16828   fi
16829  
16877
16878 # Check whether --enable-gnutls was given.
16879 if test "${enable_gnutls+set}" = set; then :
16880  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16881 else
16882   cf_enable_gnutls="auto"
16830   fi
16831  
16832 <
16833 < if test "$cf_enable_openssl" != "auto" &&
16834 <   test "$cf_enable_openssl" != "yes"; then
16888 <  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 16912 | Line 16858 | main ()
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 16979 | 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 +    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_check_lib_save_LIBS=$LIBS
16964 + LIBS="-lwolfssl  $LIBS"
16965 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 + /* end confdefs.h.  */
16967 +
16968 + /* Override any GCC internal prototype to avoid an error.
16969 +   Use char because int might match the return type of a GCC
16970 +   builtin and then its argument prototype would still apply.  */
16971 + #ifdef __cplusplus
16972 + extern "C"
16973 + #endif
16974 + char wolfSSL_X509_digest ();
16975 + int
16976 + main ()
16977 + {
16978 + return wolfSSL_X509_digest ();
16979 +  ;
16980 +  return 0;
16981 + }
16982 + _ACEOF
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 conftest.$ac_ext
16990 + LIBS=$ac_check_lib_save_LIBS
16991 + fi
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 +
17001 + fi
17002 +
17003 + fi
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 "$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  
# Line 17706 | Line 17750 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17750   # report actual input values of CONFIG_FILES etc. instead of their
17751   # values after options handling.
17752   ac_log="
17753 < This file was extended by ircd-hybrid $as_me 8.2.26, which was
17753 > This file was extended by ircd-hybrid $as_me 8.2.36, which was
17754   generated by GNU Autoconf 2.69.  Invocation command line was
17755  
17756    CONFIG_FILES    = $CONFIG_FILES
# Line 17772 | Line 17816 | _ACEOF
17816   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17817   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17818   ac_cs_version="\\
17819 < ircd-hybrid config.status 8.2.26
17819 > ircd-hybrid config.status 8.2.36
17820   configured by $0, generated by GNU Autoconf 2.69,
17821    with options \\"\$ac_cs_config\\"
17822  

Diff Legend

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