configure output ends with these lines:

checking which TLS library to use... openssl
checking if a basic OpenSSL program works... no
configure: error: Unable to compile a basic program using OpenSSL


relevant part from config-log:

configure:5303: checking which TLS library to use
configure:5305: result: openssl
configure:5547: checking if a basic OpenSSL program works
configure:5569: cc -o conftest   -g -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -W -Wno-self-assign -fstack-protector-all -fno-strict-overflow      conftest.c -lssl -lcrypto    -ltclstub8.6 -lssl -lcrypto   >&5
ld: fatal: option '-fstack-protector-all' is incompatible with building a dynamic executable
configure:5569: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tcltls"
| #define PACKAGE_TARNAME "tcltls"
| #define PACKAGE_VERSION "1.7.19"
| #define PACKAGE_STRING "tcltls 1.7.19"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define MODULE_SCOPE static
| #define USE_TCL_STUBS 1
| #define _FORTIFY_SOURCE 2
| /* end confdefs.h.  */
|
| #include <openssl/ssl.h>
| #include <openssl/opensslv.h>
| #if (SSLEAY_VERSION_NUMBER >= 0x0907000L)
| # include <openssl/conf.h>
| #endif
|
| int
| main ()
| {
|
|   SSL_library_init();
|   SSL_load_error_strings();
|
|   ;
|   return 0;
| }
configure:5576: result: no
configure:5578: error: Unable to compile a basic program using OpenSSL

Further information from config.log "on demand".