summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-10-04 15:42:25 -0600
committerunknown <sasha@mysql.sashanet.com>2001-10-04 15:42:25 -0600
commit5ee900d38a1d20247823ab23a441cbb78ac9942a (patch)
tree52920ad20ad4c024921ea3c2bcf4c346c403290e /acinclude.m4
parent07ccd64e7425f3bd09f7de05200835583f206c4a (diff)
downloadmariadb-git-5ee900d38a1d20247823ab23a441cbb78ac9942a.tar.gz
changes to make things work in the max version
acinclude.m4: automatically detect installation paths of OpenSSL instead of hard-coding automatically enable --with-vio if --with-openssl is enabled client/mysqltest.c: fixes for embedded library libmysqld/Makefile.am: md5 is now in mysys libmysqld/libmysqld.c: added my_connect(), but now can be removed - will do in the next changeset mysql-test/include/have_bdb.inc: disable query log so that result file will not have unneeded show variables mysql-test/include/have_gemini.inc: disable query log so that result file will not have unneeded show variables mysql-test/include/have_innodb.inc: disable query log so that result file will not have unneeded show variables mysql-test/include/have_openssl.inc: disable query log so that result file will not have unneeded show variables mysql-test/include/have_openssl_1.inc: disable query log so that result file will not have unneeded show variables mysql-test/include/have_openssl_2.inc: disable query log so that result file will not have unneeded show variables mysql-test/r/bdb.result: fix for new format mysql-test/r/have_openssl.require: ssl->openssl mysql-test/r/innodb.result: fix for query logging
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m444
1 files changed, 35 insertions, 9 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index b7f43fcb8e6..d9ffb382896 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -707,6 +707,32 @@ AC_DEFUN(MYSQL_CHECK_VIO, [
AC_SUBST([vio_libs])
])
+AC_DEFUN(MYSQL_FIND_OPENSSL, [
+ for d in /usr/ssl/include /usr/local/ssl/include /usr/include/openssl \
+/usr/include/ssl /opt/ssl/include /opt/openssl/include ; do
+ if test -f $d/ssl.h ; then
+ OPENSSL_INCLUDE=$d
+ fi
+ done
+
+ for d in /usr/ssl/lib /usr/local/ssl/lib /usr/lib/openssl \
+/usr/lib /opt/ssl/lib /opt/openssl/lib ; do
+ if test -f $d/libssl.a -o -f $d/libssl.so ; then
+ OPENSSL_LIB=$d
+ fi
+ done
+
+ if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INCLUDE" ; then
+ echo "Could not find an installation of OpenSSL"
+ if test -n "$OPENSSL_LIB" ; then
+ if test "$IS_LINUX" = "true"; then
+ echo "Looks like you've forgotted to install OpenSSL development RPM"
+ fi
+ fi
+ exit 1
+ fi
+
+])
AC_DEFUN(MYSQL_CHECK_OPENSSL, [
AC_MSG_CHECKING(for OpenSSL)
@@ -719,15 +745,15 @@ AC_MSG_CHECKING(for OpenSSL)
openssl_includes=""
if test "$openssl" = "yes"
then
- if test -n "$vio_dir"
- then
- AC_MSG_RESULT(yes)
- openssl_libs="-L/usr/local/ssl/lib -lssl -lcrypto"
- openssl_includes="-I/usr/local/ssl/include"
- AC_DEFINE(HAVE_OPENSSL)
- else
- AC_MSG_RESULT(disabled because --with-vio wasn not used)
- fi
+ MYSQL_FIND_OPENSSL
+ #force VIO use
+ vio_dir="vio"
+ vio_libs="../vio/libvio.la"
+ AC_DEFINE(HAVE_VIO)
+ AC_MSG_RESULT(yes)
+ openssl_libs="-L$OPENSSL_LIB -lssl -lcrypto"
+ openssl_includes="-I$OPENSSL_INCLUDE"
+ AC_DEFINE(HAVE_OPENSSL)
else
AC_MSG_RESULT(no)
fi