1
AC_CONFIG_FILES(extra/yassl/Makefile dnl
2
extra/yassl/taocrypt/Makefile dnl
3
extra/yassl/taocrypt/src/Makefile dnl
4
extra/yassl/src/Makefile dnl
5
extra/yassl/testsuite/Makefile dnl
6
extra/yassl/taocrypt/test/Makefile dnl
7
extra/yassl/taocrypt/benchmark/Makefile)
9
AC_DEFUN([MYSQL_CHECK_YASSL], [
10
AC_MSG_CHECKING(for yaSSL)
11
AC_ARG_WITH([yassl], [ --with-yassl Include the yaSSL support],,)
13
if test "$with_yassl" = "yes"
15
if test "$openssl" != "no"
17
AC_MSG_ERROR([Cannot configure MySQL to use yaSSL and OpenSSL simultaneously.])
19
AC_MSG_RESULT([using bundled yaSSL])
20
yassl_dir="extra/yassl"
21
yassl_libs="\$(top_builddir)/extra/yassl/src/libyassl.la \
22
\$(top_builddir)/extra/yassl/taocrypt/src/libtaocrypt.la"
23
AC_DEFINE([HAVE_OPENSSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
24
AC_DEFINE([HAVE_YASSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
25
# System specific checks
26
yassl_integer_extra_cxxflags=""
27
case $host_cpu--$CXX_VERSION in
28
sparc*--*Sun*C++*5.6*)
29
# Disable inlining when compiling taocrypt/src/
30
yassl_taocrypt_extra_cxxflags="+d"
31
AC_MSG_NOTICE([disabling inlining for yassl/taocrypt/src/])
34
AC_SUBST([yassl_taocrypt_extra_cxxflags])
35
# Link extra/yassl/include/openssl subdir to include/
36
yassl_h_ln_cmd="\$(LN) -s \$(top_srcdir)/extra/yassl/include/openssl openssl"
37
AC_SUBST(yassl_h_ln_cmd)
44
AM_CONDITIONAL([HAVE_YASSL], [ test "$with_yassl" = "yes" ])