2005-04-28 15:23:27 +02:00
|
|
|
AC_CONFIG_FILES(extra/yassl/Makefile dnl
|
|
|
|
extra/yassl/taocrypt/Makefile dnl
|
|
|
|
extra/yassl/taocrypt/src/Makefile dnl
|
|
|
|
extra/yassl/src/Makefile)
|
|
|
|
|
|
|
|
AC_DEFUN([MYSQL_CHECK_YASSL], [
|
|
|
|
AC_MSG_CHECKING(for yaSSL)
|
2005-06-18 16:10:53 +02:00
|
|
|
AC_ARG_WITH([yassl], [ --with-yassl Include the yaSSL support],,)
|
2005-04-28 15:23:27 +02:00
|
|
|
|
2005-06-18 16:10:53 +02:00
|
|
|
if test "$with_yassl" = "yes"
|
2005-04-28 15:23:27 +02:00
|
|
|
then
|
|
|
|
if test "$openssl" != "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot configure MySQL to use yaSSL and OpenSSL simultaneously.])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([using bundled yaSSL])
|
|
|
|
yassl_dir="extra/yassl"
|
|
|
|
openssl_libs="\
|
2005-06-02 21:28:18 +02:00
|
|
|
-L\$(top_builddir)/extra/yassl/src -lyassl\
|
|
|
|
-L\$(top_builddir)/extra/yassl/taocrypt/src -ltaocrypt"
|
2005-04-28 15:23:27 +02:00
|
|
|
openssl_includes="-I\$(top_srcdir)/extra/yassl/include"
|
|
|
|
AC_DEFINE([HAVE_OPENSSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
|
|
|
|
else
|
|
|
|
yassl_dir=""
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AC_SUBST(openssl_libs)
|
|
|
|
AC_SUBST(openssl_includes)
|
|
|
|
AC_SUBST(yassl_dir)
|
2005-06-18 16:10:53 +02:00
|
|
|
AM_CONDITIONAL([HAVE_YASSL], [ test "with_yassl" = "yes" ])
|
2005-04-28 15:23:27 +02:00
|
|
|
])
|