Artifact
a679608cfdd02218399ac72bb35c7fd78b75a97c:
0000: 41 43 5f 44 45 46 55 4e 28 5b 54 43 4c 54 4c 53 AC_DEFUN([TCLTLS
0010: 5f 53 53 4c 5f 4f 50 45 4e 53 53 4c 5d 2c 20 5b _SSL_OPENSSL], [
0020: 0a 09 41 43 5f 41 52 47 5f 57 49 54 48 28 5b 6f ..AC_ARG_WITH([o
0030: 70 65 6e 73 73 6c 2d 64 69 72 5d 2c 0a 09 09 41 penssl-dir],...A
0040: 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28 0a 09 S_HELP_STRING(..
0050: 09 09 5b 2d 2d 77 69 74 68 2d 6f 70 65 6e 73 73 ..[--with-openss
0060: 6c 2d 64 69 72 3d 3c 64 69 72 3e 5d 2c 0a 09 09 l-dir=<dir>],...
0070: 09 5b 70 61 74 68 20 74 6f 20 72 6f 6f 74 20 64 .[path to root d
0080: 69 72 65 63 74 6f 72 79 20 6f 66 20 4f 70 65 6e irectory of Open
0090: 53 53 4c 20 6f 72 20 4c 69 62 72 65 53 53 4c 20 SSL or LibreSSL
00a0: 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 5d 0a 09 09 installation]...
00b0: 29 2c 20 5b 0a 09 09 09 69 66 20 74 65 73 74 20 ), [....if test
00c0: 2d 65 20 22 24 77 69 74 68 76 61 6c 2f 6c 69 62 -e "$withval/lib
00d0: 73 73 6c 2e 24 53 48 4f 42 4a 45 58 54 22 3b 20 ssl.$SHOBJEXT";
00e0: 74 68 65 6e 0a 09 09 09 09 54 43 4c 54 4c 53 5f then.....TCLTLS_
00f0: 53 53 4c 5f 4c 49 42 53 3d 22 2d 4c 24 77 69 74 SSL_LIBS="-L$wit
0100: 68 76 61 6c 20 2d 6c 73 73 6c 20 2d 6c 63 72 79 hval -lssl -lcry
0110: 70 74 6f 22 0a 09 09 09 09 77 69 74 68 76 61 6c pto".....withval
0120: 3d 22 60 41 53 5f 44 49 52 4e 41 4d 45 28 5b 22 ="`AS_DIRNAME(["
0130: 24 77 69 74 68 76 61 6c 22 5d 29 60 22 0a 09 09 $withval"])`"...
0140: 09 65 6c 73 65 0a 09 09 09 09 54 43 4c 54 4c 53 .else.....TCLTLS
0150: 5f 53 53 4c 5f 4c 49 42 53 3d 22 2d 4c 24 77 69 _SSL_LIBS="-L$wi
0160: 74 68 76 61 6c 2f 6c 69 62 20 2d 6c 73 73 6c 20 thval/lib -lssl
0170: 2d 6c 63 72 79 70 74 6f 22 0a 09 09 09 66 69 0a -lcrypto"....fi.
0180: 09 09 09 54 43 4c 54 4c 53 5f 53 53 4c 5f 43 46 ...TCLTLS_SSL_CF
0190: 4c 41 47 53 3d 22 2d 49 24 77 69 74 68 76 61 6c LAGS="-I$withval
01a0: 2f 69 6e 63 6c 75 64 65 22 0a 09 09 09 54 43 4c /include"....TCL
01b0: 54 4c 53 5f 53 53 4c 5f 43 50 50 46 4c 41 47 53 TLS_SSL_CPPFLAGS
01c0: 3d 22 2d 49 24 77 69 74 68 76 61 6c 2f 69 6e 63 ="-I$withval/inc
01d0: 6c 75 64 65 22 0a 09 09 5d 0a 09 29 0a 0a 09 64 lude"...]..)...d
01e0: 6e 6c 20 55 73 65 20 70 6b 67 2d 63 6f 6e 66 69 nl Use pkg-confi
01f0: 67 20 74 6f 20 66 69 6e 64 20 74 68 65 20 6c 69 g to find the li
0200: 62 72 61 72 69 65 73 0a 09 41 43 5f 41 52 47 5f braries..AC_ARG_
0210: 56 41 52 28 5b 54 43 4c 54 4c 53 5f 53 53 4c 5f VAR([TCLTLS_SSL_
0220: 4c 49 42 53 5d 2c 20 5b 6c 69 62 72 61 72 69 65 LIBS], [librarie
0230: 73 20 74 6f 20 70 61 73 73 20 74 6f 20 74 68 65 s to pass to the
0240: 20 6c 69 6e 6b 65 72 20 66 6f 72 20 4f 70 65 6e linker for Open
0250: 53 53 4c 20 6f 72 20 4c 69 62 72 65 53 53 4c 5d SSL or LibreSSL]
0260: 29 0a 09 41 43 5f 41 52 47 5f 56 41 52 28 5b 54 )..AC_ARG_VAR([T
0270: 43 4c 54 4c 53 5f 53 53 4c 5f 43 46 4c 41 47 53 CLTLS_SSL_CFLAGS
0280: 5d 2c 20 5b 43 20 63 6f 6d 70 69 6c 65 72 20 66 ], [C compiler f
0290: 6c 61 67 73 20 66 6f 72 20 4f 70 65 6e 53 53 4c lags for OpenSSL
02a0: 20 6f 72 20 4c 69 62 72 65 53 53 4c 5d 29 0a 09 or LibreSSL])..
02b0: 41 43 5f 41 52 47 5f 56 41 52 28 5b 54 43 4c 54 AC_ARG_VAR([TCLT
02c0: 4c 53 5f 53 53 4c 5f 43 50 50 46 4c 41 47 53 5d LS_SSL_CPPFLAGS]
02d0: 2c 20 5b 43 20 70 72 65 70 72 6f 63 65 73 73 6f , [C preprocesso
02e0: 72 20 66 6c 61 67 73 20 66 6f 72 20 4f 70 65 6e r flags for Open
02f0: 53 53 4c 20 6f 72 20 4c 69 62 72 65 53 53 4c 5d SSL or LibreSSL]
0300: 29 0a 09 69 66 20 74 65 73 74 20 2d 7a 20 22 24 )..if test -z "$
0310: 54 43 4c 54 4c 53 5f 53 53 4c 5f 4c 49 42 53 22 TCLTLS_SSL_LIBS"
0320: 3b 20 74 68 65 6e 0a 09 09 54 43 4c 54 4c 53 5f ; then...TCLTLS_
0330: 53 53 4c 5f 4c 49 42 53 3d 22 60 22 24 7b 50 4b SSL_LIBS="`"${PK
0340: 47 43 4f 4e 46 49 47 7d 22 20 6f 70 65 6e 73 73 GCONFIG}" openss
0350: 6c 20 2d 2d 6c 69 62 73 60 22 20 7c 7c 20 41 43 l --libs`" || AC
0360: 5f 4d 53 47 5f 45 52 52 4f 52 28 5b 55 6e 61 62 _MSG_ERROR([Unab
0370: 6c 65 20 74 6f 20 67 65 74 20 4f 70 65 6e 53 53 le to get OpenSS
0380: 4c 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 5d L Configuration]
0390: 29 0a 09 66 69 0a 09 69 66 20 74 65 73 74 20 2d )..fi..if test -
03a0: 7a 20 22 24 54 43 4c 54 4c 53 5f 53 53 4c 5f 43 z "$TCLTLS_SSL_C
03b0: 46 4c 41 47 53 22 3b 20 74 68 65 6e 0a 09 09 54 FLAGS"; then...T
03c0: 43 4c 54 4c 53 5f 53 53 4c 5f 43 46 4c 41 47 53 CLTLS_SSL_CFLAGS
03d0: 3d 22 60 22 24 7b 50 4b 47 43 4f 4e 46 49 47 7d ="`"${PKGCONFIG}
03e0: 22 20 6f 70 65 6e 73 73 6c 20 2d 2d 63 66 6c 61 " openssl --cfla
03f0: 67 73 2d 6f 6e 6c 79 2d 6f 74 68 65 72 60 22 20 gs-only-other`"
0400: 7c 7c 20 41 43 5f 4d 53 47 5f 45 52 52 4f 52 28 || AC_MSG_ERROR(
0410: 5b 55 6e 61 62 6c 65 20 74 6f 20 67 65 74 20 4f [Unable to get O
0420: 70 65 6e 53 53 4c 20 43 6f 6e 66 69 67 75 72 61 penSSL Configura
0430: 74 69 6f 6e 5d 29 0a 09 66 69 0a 09 69 66 20 74 tion])..fi..if t
0440: 65 73 74 20 2d 7a 20 22 24 54 43 4c 54 4c 53 5f est -z "$TCLTLS_
0450: 53 53 4c 5f 43 50 50 46 4c 41 47 53 22 3b 20 74 SSL_CPPFLAGS"; t
0460: 68 65 6e 0a 09 09 54 43 4c 54 4c 53 5f 53 53 4c hen...TCLTLS_SSL
0470: 5f 43 50 50 46 4c 41 47 53 3d 22 60 22 24 7b 50 _CPPFLAGS="`"${P
0480: 4b 47 43 4f 4e 46 49 47 7d 22 20 6f 70 65 6e 73 KGCONFIG}" opens
0490: 73 6c 20 2d 2d 63 66 6c 61 67 73 2d 6f 6e 6c 79 sl --cflags-only
04a0: 2d 49 60 22 20 7c 7c 20 41 43 5f 4d 53 47 5f 45 -I`" || AC_MSG_E
04b0: 52 52 4f 52 28 5b 55 6e 61 62 6c 65 20 74 6f 20 RROR([Unable to
04c0: 67 65 74 20 4f 70 65 6e 53 53 4c 20 43 6f 6e 66 get OpenSSL Conf
04d0: 69 67 75 72 61 74 69 6f 6e 5d 29 0a 09 66 69 0a iguration])..fi.
04e0: 0a 09 64 6e 6c 20 53 61 76 65 20 63 6f 6d 70 69 ..dnl Save compi
04f0: 6c 65 2d 61 6c 74 65 72 69 6e 67 20 76 61 72 69 le-altering vari
0500: 61 62 6c 65 73 20 77 65 20 61 72 65 20 63 68 61 ables we are cha
0510: 6e 67 69 6e 67 0a 09 53 41 56 45 5f 4c 49 42 53 nging..SAVE_LIBS
0520: 3d 22 24 7b 4c 49 42 53 7d 22 0a 09 53 41 56 45 ="${LIBS}"..SAVE
0530: 5f 43 46 4c 41 47 53 3d 22 24 7b 43 46 4c 41 47 _CFLAGS="${CFLAG
0540: 53 7d 22 0a 09 53 41 56 45 5f 43 50 50 46 4c 41 S}"..SAVE_CPPFLA
0550: 47 53 3d 22 24 7b 43 50 50 46 4c 41 47 53 7d 22 GS="${CPPFLAGS}"
0560: 0a 0a 09 64 6e 6c 20 55 70 64 61 74 65 20 63 6f ...dnl Update co
0570: 6d 70 69 6c 65 2d 61 6c 74 65 72 69 6e 67 20 76 mpile-altering v
0580: 61 72 69 61 62 6c 65 73 20 74 6f 20 69 6e 63 6c ariables to incl
0590: 75 64 65 20 74 68 65 20 4f 70 65 6e 53 53 4c 20 ude the OpenSSL
05a0: 6c 69 62 72 61 72 69 65 73 0a 09 4c 49 42 53 3d libraries..LIBS=
05b0: 22 24 7b 53 41 56 45 5f 4c 49 42 53 7d 20 24 7b "${SAVE_LIBS} ${
05c0: 54 43 4c 54 4c 53 5f 53 53 4c 5f 4c 49 42 53 7d TCLTLS_SSL_LIBS}
05d0: 22 0a 09 43 46 4c 41 47 53 3d 22 24 7b 53 41 56 "..CFLAGS="${SAV
05e0: 45 5f 43 46 4c 41 47 53 7d 20 24 7b 54 43 4c 54 E_CFLAGS} ${TCLT
05f0: 4c 53 5f 53 53 4c 5f 43 46 4c 41 47 53 7d 22 0a LS_SSL_CFLAGS}".
0600: 09 43 50 50 46 4c 41 47 53 3d 22 24 7b 53 41 56 .CPPFLAGS="${SAV
0610: 45 5f 43 50 50 46 4c 41 47 53 7d 20 24 7b 54 43 E_CPPFLAGS} ${TC
0620: 4c 54 4c 53 5f 53 53 4c 5f 43 50 50 46 4c 41 47 LTLS_SSL_CPPFLAG
0630: 53 7d 22 0a 0a 09 64 6e 6c 20 56 65 72 69 66 79 S}"...dnl Verify
0640: 20 74 68 61 74 20 62 61 73 69 63 20 66 75 6e 63 that basic func
0650: 74 69 6f 6e 61 6c 69 74 79 20 69 73 20 74 68 65 tionality is the
0660: 72 65 0a 09 41 43 5f 4c 41 4e 47 5f 50 55 53 48 re..AC_LANG_PUSH
0670: 28 43 29 0a 09 41 43 5f 4d 53 47 5f 43 48 45 43 (C)..AC_MSG_CHEC
0680: 4b 49 4e 47 28 5b 69 66 20 61 20 62 61 73 69 63 KING([if a basic
0690: 20 4f 70 65 6e 53 53 4c 20 70 72 6f 67 72 61 6d OpenSSL program
06a0: 20 77 6f 72 6b 73 5d 29 0a 09 41 43 5f 4c 49 4e works])..AC_LIN
06b0: 4b 5f 49 46 45 4c 53 45 28 5b 41 43 5f 4c 41 4e K_IFELSE([AC_LAN
06c0: 47 5f 50 52 4f 47 52 41 4d 28 5b 0a 23 69 6e 63 G_PROGRAM([.#inc
06d0: 6c 75 64 65 20 3c 6f 70 65 6e 73 73 6c 2f 73 73 lude <openssl/ss
06e0: 6c 2e 68 3e 0a 23 69 66 20 28 53 53 4c 45 41 59 l.h>.#if (SSLEAY
06f0: 5f 56 45 52 53 49 4f 4e 5f 4e 55 4d 42 45 52 20 _VERSION_NUMBER
0700: 3e 3d 20 30 78 30 39 30 37 30 30 30 4c 29 0a 23 >= 0x0907000L).#
0710: 20 69 6e 63 6c 75 64 65 20 3c 6f 70 65 6e 73 73 include <openss
0720: 6c 2f 63 6f 6e 66 2e 68 3e 0a 23 65 6e 64 69 66 l/conf.h>.#endif
0730: 0a 09 09 5d 2c 20 5b 0a 20 20 28 76 6f 69 64 29 ...], [. (void)
0740: 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 SSL_library_init
0750: 28 29 3b 0a 20 20 53 53 4c 5f 6c 6f 61 64 5f 65 ();. SSL_load_e
0760: 72 72 6f 72 5f 73 74 72 69 6e 67 73 28 29 3b 0a rror_strings();.
0770: 20 20 4f 50 45 4e 53 53 4c 5f 63 6f 6e 66 69 67 OPENSSL_config
0780: 28 4e 55 4c 4c 29 3b 0a 09 09 5d 29 5d 2c 20 5b (NULL);...])], [
0790: 0a 09 09 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 ...AC_MSG_RESULT
07a0: 28 5b 79 65 73 5d 29 0a 09 5d 2c 20 5b 0a 09 09 ([yes])..], [...
07b0: 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 28 5b 6e AC_MSG_RESULT([n
07c0: 6f 5d 29 0a 09 09 41 43 5f 4d 53 47 5f 45 52 52 o])...AC_MSG_ERR
07d0: 4f 52 28 5b 55 6e 61 62 6c 65 20 74 6f 20 63 6f OR([Unable to co
07e0: 6d 70 69 6c 65 20 61 20 62 61 73 69 63 20 70 72 mpile a basic pr
07f0: 6f 67 72 61 6d 20 75 73 69 6e 67 20 4f 70 65 6e ogram using Open
0800: 53 53 4c 5d 29 0a 09 5d 29 0a 09 41 43 5f 4c 41 SSL])..])..AC_LA
0810: 4e 47 5f 50 4f 50 28 5b 43 5d 29 0a 0a 09 64 6e NG_POP([C])...dn
0820: 6c 20 44 65 74 65 72 6d 69 6e 65 20 69 66 20 53 l Determine if S
0830: 53 4c 76 32 20 69 73 20 73 75 70 70 6f 72 74 65 SLv2 is supporte
0840: 64 0a 09 69 66 20 74 65 73 74 20 22 24 74 63 6c d..if test "$tcl
0850: 74 6c 73 5f 73 73 6c 5f 73 73 6c 32 22 20 3d 20 tls_ssl_ssl2" =
0860: 22 74 72 75 65 22 3b 20 74 68 65 6e 0a 09 09 41 "true"; then...A
0870: 43 5f 43 48 45 43 4b 5f 46 55 4e 43 28 53 53 4c C_CHECK_FUNC(SSL
0880: 76 32 5f 6d 65 74 68 6f 64 2c 2c 20 5b 0a 09 09 v2_method,, [...
0890: 09 74 63 6c 74 6c 73 5f 73 73 6c 5f 73 73 6c 32 .tcltls_ssl_ssl2
08a0: 3d 27 66 61 6c 73 65 27 0a 09 09 5d 29 0a 09 66 ='false'...])..f
08b0: 69 0a 0a 09 69 66 20 74 65 73 74 20 22 24 74 63 i...if test "$tc
08c0: 6c 74 6c 73 5f 73 73 6c 5f 73 73 6c 32 22 20 3d ltls_ssl_ssl2" =
08d0: 20 22 66 61 6c 73 65 22 3b 20 74 68 65 6e 0a 09 "false"; then..
08e0: 09 41 43 5f 44 45 46 49 4e 45 28 4e 4f 5f 53 53 .AC_DEFINE(NO_SS
08f0: 4c 32 2c 20 5b 31 5d 2c 20 5b 44 65 66 69 6e 65 L2, [1], [Define
0900: 20 74 68 69 73 20 74 6f 20 64 69 73 61 62 6c 65 this to disable
0910: 20 53 53 4c 76 32 20 69 6e 20 4f 70 65 6e 53 53 SSLv2 in OpenSS
0920: 4c 20 73 75 70 70 6f 72 74 5d 29 0a 09 66 69 0a L support])..fi.
0930: 0a 09 64 6e 6c 20 44 65 74 65 72 6d 69 6e 65 20 ..dnl Determine
0940: 69 66 20 53 53 4c 76 33 20 69 73 20 73 75 70 70 if SSLv3 is supp
0950: 6f 72 74 65 64 0a 09 69 66 20 74 65 73 74 20 22 orted..if test "
0960: 24 74 63 6c 74 6c 73 5f 73 73 6c 5f 73 73 6c 33 $tcltls_ssl_ssl3
0970: 22 20 3d 20 22 74 72 75 65 22 3b 20 74 68 65 6e " = "true"; then
0980: 0a 09 09 41 43 5f 43 48 45 43 4b 5f 46 55 4e 43 ...AC_CHECK_FUNC
0990: 28 53 53 4c 76 33 5f 6d 65 74 68 6f 64 2c 2c 20 (SSLv3_method,,
09a0: 5b 0a 09 09 09 74 63 6c 74 6c 73 5f 73 73 6c 5f [....tcltls_ssl_
09b0: 73 73 6c 33 3d 27 66 61 6c 73 65 27 0a 09 09 5d ssl3='false'...]
09c0: 29 0a 09 66 69 0a 0a 09 69 66 20 74 65 73 74 20 )..fi...if test
09d0: 22 24 74 63 6c 74 6c 73 5f 73 73 6c 5f 73 73 6c "$tcltls_ssl_ssl
09e0: 33 22 20 3d 20 22 66 61 6c 73 65 22 3b 20 74 68 3" = "false"; th
09f0: 65 6e 0a 09 09 41 43 5f 44 45 46 49 4e 45 28 4e en...AC_DEFINE(N
0a00: 4f 5f 53 53 4c 33 2c 20 5b 31 5d 2c 20 5b 44 65 O_SSL3, [1], [De
0a10: 66 69 6e 65 20 74 68 69 73 20 74 6f 20 64 69 73 fine this to dis
0a20: 61 62 6c 65 20 53 53 4c 76 33 20 69 6e 20 4f 70 able SSLv3 in Op
0a30: 65 6e 53 53 4c 20 73 75 70 70 6f 72 74 5d 29 0a enSSL support]).
0a40: 09 66 69 0a 0a 09 64 6e 6c 20 44 65 74 65 72 6d .fi...dnl Determ
0a50: 69 6e 65 20 69 66 20 54 4c 53 76 31 2e 30 20 69 ine if TLSv1.0 i
0a60: 73 20 73 75 70 70 6f 72 74 65 64 0a 09 69 66 20 s supported..if
0a70: 74 65 73 74 20 22 24 74 63 6c 74 6c 73 5f 73 73 test "$tcltls_ss
0a80: 6c 5f 74 6c 73 31 5f 30 22 20 3d 20 22 74 72 75 l_tls1_0" = "tru
0a90: 65 22 3b 20 74 68 65 6e 0a 09 09 41 43 5f 43 48 e"; then...AC_CH
0aa0: 45 43 4b 5f 46 55 4e 43 28 54 4c 53 76 31 5f 6d ECK_FUNC(TLSv1_m
0ab0: 65 74 68 6f 64 2c 2c 20 5b 0a 09 09 09 74 63 6c ethod,, [....tcl
0ac0: 74 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 30 3d 27 tls_ssl_tls1_0='
0ad0: 66 61 6c 73 65 27 0a 09 09 5d 29 0a 09 66 69 0a false'...])..fi.
0ae0: 0a 09 69 66 20 74 65 73 74 20 22 24 74 63 6c 74 ..if test "$tclt
0af0: 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 30 22 20 3d ls_ssl_tls1_0" =
0b00: 20 22 66 61 6c 73 65 22 3b 20 74 68 65 6e 0a 09 "false"; then..
0b10: 09 41 43 5f 44 45 46 49 4e 45 28 4e 4f 5f 54 4c .AC_DEFINE(NO_TL
0b20: 53 31 2c 20 5b 31 5d 2c 20 5b 44 65 66 69 6e 65 S1, [1], [Define
0b30: 20 74 68 69 73 20 74 6f 20 64 69 73 61 62 6c 65 this to disable
0b40: 20 54 4c 53 76 31 2e 30 20 69 6e 20 4f 70 65 6e TLSv1.0 in Open
0b50: 53 53 4c 20 73 75 70 70 6f 72 74 5d 29 0a 09 66 SSL support])..f
0b60: 69 0a 0a 09 64 6e 6c 20 44 65 74 65 72 6d 69 6e i...dnl Determin
0b70: 65 20 69 66 20 54 4c 53 76 31 2e 31 20 69 73 20 e if TLSv1.1 is
0b80: 73 75 70 70 6f 72 74 65 64 0a 09 69 66 20 74 65 supported..if te
0b90: 73 74 20 22 24 74 63 6c 74 6c 73 5f 73 73 6c 5f st "$tcltls_ssl_
0ba0: 74 6c 73 31 5f 31 22 20 3d 20 22 74 72 75 65 22 tls1_1" = "true"
0bb0: 3b 20 74 68 65 6e 0a 09 09 41 43 5f 43 48 45 43 ; then...AC_CHEC
0bc0: 4b 5f 46 55 4e 43 28 54 4c 53 76 31 5f 31 5f 6d K_FUNC(TLSv1_1_m
0bd0: 65 74 68 6f 64 2c 2c 20 5b 0a 09 09 09 74 63 6c ethod,, [....tcl
0be0: 74 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 31 3d 27 tls_ssl_tls1_1='
0bf0: 66 61 6c 73 65 27 0a 09 09 5d 29 0a 09 66 69 0a false'...])..fi.
0c00: 0a 09 69 66 20 74 65 73 74 20 22 24 74 63 6c 74 ..if test "$tclt
0c10: 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 31 22 20 3d ls_ssl_tls1_1" =
0c20: 20 22 66 61 6c 73 65 22 3b 20 74 68 65 6e 0a 09 "false"; then..
0c30: 09 41 43 5f 44 45 46 49 4e 45 28 4e 4f 5f 54 4c .AC_DEFINE(NO_TL
0c40: 53 31 5f 31 2c 20 5b 31 5d 2c 20 5b 44 65 66 69 S1_1, [1], [Defi
0c50: 6e 65 20 74 68 69 73 20 74 6f 20 64 69 73 61 62 ne this to disab
0c60: 6c 65 20 54 4c 53 76 31 2e 31 20 69 6e 20 4f 70 le TLSv1.1 in Op
0c70: 65 6e 53 53 4c 20 73 75 70 70 6f 72 74 5d 29 0a enSSL support]).
0c80: 09 66 69 0a 0a 09 64 6e 6c 20 44 65 74 65 72 6d .fi...dnl Determ
0c90: 69 6e 65 20 69 66 20 54 4c 53 76 31 2e 32 20 69 ine if TLSv1.2 i
0ca0: 73 20 73 75 70 70 6f 72 74 65 64 0a 09 69 66 20 s supported..if
0cb0: 74 65 73 74 20 22 24 74 63 6c 74 6c 73 5f 73 73 test "$tcltls_ss
0cc0: 6c 5f 74 6c 73 31 5f 32 22 20 3d 20 22 74 72 75 l_tls1_2" = "tru
0cd0: 65 22 3b 20 74 68 65 6e 0a 09 09 41 43 5f 43 48 e"; then...AC_CH
0ce0: 45 43 4b 5f 46 55 4e 43 28 54 4c 53 76 31 5f 32 ECK_FUNC(TLSv1_2
0cf0: 5f 6d 65 74 68 6f 64 2c 2c 20 5b 0a 09 09 09 74 _method,, [....t
0d00: 63 6c 74 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 32 cltls_ssl_tls1_2
0d10: 3d 27 66 61 6c 73 65 27 0a 09 09 5d 29 0a 09 66 ='false'...])..f
0d20: 69 0a 0a 09 69 66 20 74 65 73 74 20 22 24 74 63 i...if test "$tc
0d30: 6c 74 6c 73 5f 73 73 6c 5f 74 6c 73 31 5f 32 22 ltls_ssl_tls1_2"
0d40: 20 3d 20 22 66 61 6c 73 65 22 3b 20 74 68 65 6e = "false"; then
0d50: 0a 09 09 41 43 5f 44 45 46 49 4e 45 28 4e 4f 5f ...AC_DEFINE(NO_
0d60: 54 4c 53 31 5f 32 2c 20 5b 31 5d 2c 20 5b 44 65 TLS1_2, [1], [De
0d70: 66 69 6e 65 20 74 68 69 73 20 74 6f 20 64 69 73 fine this to dis
0d80: 61 62 6c 65 20 54 4c 53 76 31 2e 32 20 69 6e 20 able TLSv1.2 in
0d90: 4f 70 65 6e 53 53 4c 20 73 75 70 70 6f 72 74 5d OpenSSL support]
0da0: 29 0a 09 66 69 0a 0a 09 64 6e 6c 20 52 65 73 74 )..fi...dnl Rest
0db0: 6f 72 65 20 63 6f 6d 70 69 6c 65 2d 61 6c 74 65 ore compile-alte
0dc0: 72 69 6e 67 20 76 61 72 69 61 62 6c 65 73 0a 09 ring variables..
0dd0: 4c 49 42 53 3d 22 24 7b 53 41 56 45 5f 4c 49 42 LIBS="${SAVE_LIB
0de0: 53 7d 22 0a 09 43 46 4c 41 47 53 3d 22 24 7b 53 S}"..CFLAGS="${S
0df0: 41 56 45 5f 43 46 4c 41 47 53 7d 22 0a 09 43 50 AVE_CFLAGS}"..CP
0e00: 50 46 4c 41 47 53 3d 22 24 7b 53 41 56 45 5f 43 PFLAGS="${SAVE_C
0e10: 50 50 46 4c 41 47 53 7d 22 0a 5d 29 0a PPFLAGS}".]).