Overview
| Comment: | Updated to deal better with pkg-config OpenSSL and newer versions of TclTLS | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 534f2d1839dacf600a2347da095829a1 | 
| User & Date: | rkeene on 2017-09-06 02:08:51 | 
| Other Links: | manifest | tags | 
Context
| 2017-10-13 | ||
| 01:52 | Compile tcc4tcl with stubs enabled (should be optional?) check-in: 204d6385f0 user: rkeene tags: trunk | |
| 2017-09-06 | ||
| 02:08 | Updated to deal better with pkg-config OpenSSL and newer versions of TclTLS check-in: 534f2d1839 user: rkeene tags: trunk | |
| 2017-09-01 | ||
| 00:31 | Upgraded to latest TclTLS check-in: 742088eb80 user: rkeene tags: trunk | |
Changes
Modified tls/build.sh from [c263581111] to [ca779f9fb2].
| ︙ | ︙ | |||
| 48 49 50 51 52 53 54 | 
		${MAKE:-make} V=1 install || exit 1
	) || return 1
	# We always statically link
	KC_TLS_LINKSSLSTATIC='1'
 | | < < < > > > > > > > > | > > < | > | > > | > | | | > > > | > | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | 
		${MAKE:-make} V=1 install || exit 1
	) || return 1
	# We always statically link
	KC_TLS_LINKSSLSTATIC='1'
	SSLPKGCONFIGDIR="$(pwd)/libressl-${version}/INST/lib/pkgconfig"
	return 0
}
function preconfigure() {
	# Determine SSL directory
	if [ -z "${CPP}" ]; then
		CPP="${CC:-cc} -E"
	fi
	SSLPKGCONFIGDIR=''
	SSLDIR=''
	if [ -n "${KC_TLS_SSLDIR}" ]; then
		case "${KC_TLS_SSLDIR}" in
			*/pkgconfig|*/pkgconfig/)
				SSLPKGCONFIGDIR="${KC_TLS_SSLDIR}"
				;;
			*)
				SSLDIR="${KC_TLS_SSLDIR}"
				;;
		esac
	else
		SSLGUESS='0'
		if [ -z "${KC_TLS_BUILDSSL}" ]; then
			if ! "${PKG_CONFIG:-pkg-config}" --exists openssl >/dev/null 2>/dev/null; then
				SSLDIR="$(echo '#include <openssl/ssl.h>' 2>/dev/null | ${CPP} - 2> /dev/null | awk '/# 1 "\/.*\/ssl\.h/{ print $3; exit }' | sed 's@^"@@;s@"$@@;s@/include/openssl/ssl\.h$@@')"
			else
				SSLGUESS='1'
			fi
		fi
		if [ -z "${SSLDIR}" -a "${SSLGUESS}" = '0' ]; then
			buildSSLLibrary || SSLPKGCONFIGDIR=''
		fi
		if [ -z "${SSLPKGCONFIGDIR}" -a -z "${SSLDIR}" -a "${SSLGUESS}" = '0' ]; then
			echo "Unable to find OpenSSL, aborting." >&2
			return 1
		fi
	fi
	# Add SSL library to configure options
	if [ -n "${SSLPKGCONFIGDIR}" ]; then
		configure_extra=("${configure_extra[@]}" --with-openssl-pkgconfig="${SSLPKGCONFIGDIR}")
	elif [ -n "${SSLDIR}" ]; then
		configure_extra=("${configure_extra[@]}" --with-openssl-dir="${SSLDIR}")
	fi
	# If we are statically linking to libssl, let tcltls know so it asks for the right
	# packages
	if [ "${KC_TLS_LINKSSLSTATIC}" = '1' ]; then
		configure_extra=("${configure_extra[@]}" --enable-static-ssl)
	fi
}
 | 
| ︙ | ︙ |