︙ | | | ︙ | |
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
AC_MSG_CHECKING([for static linking of openSSL libraries])
AC_MSG_RESULT([$TCLEXT_TLS_STATIC_SSL])
dnl Set SSL files root path
AC_ARG_WITH([openssl-dir],
AS_HELP_STRING([--with-openssl-dir=<dir>],
[path to root directory of OpenSSL or LibreSSL installation]
), [
openssldir="$withval"
], [
openssldir=''
]
)
AC_MSG_CHECKING([for OpenSSL directory])
AC_MSG_RESULT($openssldir)
dnl Set SSL include files path
AC_ARG_WITH([openssl-includedir],
AS_HELP_STRING([--with-openssl-includedir=<dir>],
[path to include directory of OpenSSL or LibreSSL installation]
), [
opensslincludedir="$withval"
], [
if test -n "$openssldir"; then
opensslincludedir="${openssldir}/include"
else
opensslincludedir=''
|
|
|
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
AC_MSG_CHECKING([for static linking of openSSL libraries])
AC_MSG_RESULT([$TCLEXT_TLS_STATIC_SSL])
dnl Set SSL files root path
AC_ARG_WITH([openssl-dir],
AS_HELP_STRING([--with-openssl-dir=<dir>],
[path to root directory of OpenSSL installation]
), [
openssldir="$withval"
], [
openssldir=''
]
)
AC_MSG_CHECKING([for OpenSSL directory])
AC_MSG_RESULT($openssldir)
dnl Set SSL include files path
AC_ARG_WITH([openssl-includedir],
AS_HELP_STRING([--with-openssl-includedir=<dir>],
[path to include directory of OpenSSL installation]
), [
opensslincludedir="$withval"
], [
if test -n "$openssldir"; then
opensslincludedir="${openssldir}/include"
else
opensslincludedir=''
|
︙ | | | ︙ | |
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
AC_MSG_ERROR([Unable to locate ssl.h])
fi
fi
dnl Set SSL lib files path
AC_ARG_WITH([openssl-libdir],
AS_HELP_STRING([--with-openssl-libdir=<dir>],
[path to lib directory of OpenSSL or LibreSSL installation]
), [
openssllibdir="$withval"
], [
if test -n "$openssldir"; then
if test "$do64bit" == 'yes' -a -d ${openssldir}/lib64; then
openssllibdir="$openssldir/lib64"
else
|
|
|
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
AC_MSG_ERROR([Unable to locate ssl.h])
fi
fi
dnl Set SSL lib files path
AC_ARG_WITH([openssl-libdir],
AS_HELP_STRING([--with-openssl-libdir=<dir>],
[path to lib directory of OpenSSL installation]
), [
openssllibdir="$withval"
], [
if test -n "$openssldir"; then
if test "$do64bit" == 'yes' -a -d ${openssldir}/lib64; then
openssllibdir="$openssldir/lib64"
else
|
︙ | | | ︙ | |
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
AC_MSG_ERROR([Unable to locate libssl${LIBEXT}])
fi
fi
dnl Set location of pkgconfig files
AC_ARG_WITH([openssl-pkgconfig],
AS_HELP_STRING([--with-openssl-pkgconfig=<dir>],
[path to pkgconfigdir directory for OpenSSL or LibreSSL]
), [
opensslpkgconfigdir="$withval"
], [
if test -d ${libdir}/../pkgconfig; then
opensslpkgconfigdir="$libdir/../pkgconfig"
else
opensslpkgconfigdir=''
|
|
|
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
AC_MSG_ERROR([Unable to locate libssl${LIBEXT}])
fi
fi
dnl Set location of pkgconfig files
AC_ARG_WITH([openssl-pkgconfig],
AS_HELP_STRING([--with-openssl-pkgconfig=<dir>],
[path to pkgconfigdir directory for OpenSSL]
), [
opensslpkgconfigdir="$withval"
], [
if test -d ${libdir}/../pkgconfig; then
opensslpkgconfigdir="$libdir/../pkgconfig"
else
opensslpkgconfigdir=''
|
︙ | | | ︙ | |
264
265
266
267
268
269
270
271
272
273
274
|
# Linux and Solaris
TCLTLS_SSL_LIBS="$SSL_LIBS_PATH -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic"
# HPUX: -Wl,-a,archive ... -Wl,-a,shared_archive
fi
fi
dnl Include config variables in --help list and make available to be substituted via AC_SUBST.
AC_ARG_VAR([TCLTLS_SSL_CFLAGS], [C compiler flags for OpenSSL or LibreSSL])
AC_ARG_VAR([TCLTLS_SSL_INCLUDES], [C compiler include paths for OpenSSL or LibreSSL])
AC_ARG_VAR([TCLTLS_SSL_LIBS], [libraries to pass to the linker for OpenSSL or LibreSSL])
])
|
|
|
|
|
264
265
266
267
268
269
270
271
272
273
274
|
# Linux and Solaris
TCLTLS_SSL_LIBS="$SSL_LIBS_PATH -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic"
# HPUX: -Wl,-a,archive ... -Wl,-a,shared_archive
fi
fi
dnl Include config variables in --help list and make available to be substituted via AC_SUBST.
AC_ARG_VAR([TCLTLS_SSL_CFLAGS], [C compiler flags for OpenSSL])
AC_ARG_VAR([TCLTLS_SSL_INCLUDES], [C compiler include paths for OpenSSL])
AC_ARG_VAR([TCLTLS_SSL_LIBS], [libraries to pass to the linker for OpenSSL])
])
|