-dnl $Id: ssl-check.m4,v 1.4 2001-12-01 15:17:33 srittau Exp $
+dnl $Id: ssl-check.m4,v 1.8 2003-01-29 00:16:31 srittau Exp $
dnl Autoconf macro to check for SSL or OpenSSL
AC_DEFUN([AC_PATH_SSL], [
[
if test "x$withval" = "xno"; then
tryssl=no
+ elif test "x$withval" = "xyes"; then
+ tryssl=yes
+ tryssldir=
else
+ dnl FIXME: should only try in $withval
+ tryssl=yes
tryssldir="$withval"
fi
], [tryssl=yes]
dnl Check for "DES" library (for SSLeay, not openssl):
AC_CHECK_LIB(des, main)
- AC_DEFINE(OPENSSL_DHX, 1)
- AC_DEFINE(UAM_DHX, 1)
+ AC_DEFINE(OPENSSL_DHX, 1, [Define if the OpenSSL DHX modules should be built])
+ AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
compile_ssl=yes
break
fi