/[svn]/ircd-hybrid-8/configure.ac
ViewVC logotype

Diff of /ircd-hybrid-8/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1303 by michael, Wed Mar 21 17:48:54 2012 UTC revision 1304 by michael, Fri Mar 23 12:03:56 2012 UTC
# Line 133  if test "$cf_enable_openssl" != "no"; th Line 133  if test "$cf_enable_openssl" != "no"; th
133    dnl If we have a basedir defined, then everything is okay.  Otherwise,    dnl If we have a basedir defined, then everything is okay.  Otherwise,
134    dnl we have a problem.    dnl we have a problem.
135    if test ! -z "$cf_openssl_basedir"; then    if test ! -z "$cf_openssl_basedir"; then
     LIBS="-lcrypto -lssl $LIBS"  
136      AC_MSG_RESULT([$cf_openssl_basedir])      AC_MSG_RESULT([$cf_openssl_basedir])
137      cf_enable_openssl="yes"      cf_enable_openssl="yes"
     AC_DEFINE(HAVE_LIBCRYPTO, 1, [If we support ssl])  
138    else    else
139      AC_MSG_RESULT([not found. Please check your path.])      AC_MSG_RESULT([not found. Please check your path.])
140      cf_enable_openssl="no"      cf_enable_openssl="no"
# Line 148  else Line 146  else
146  fi  fi
147    
148  AS_IF([test "$cf_enable_openssl" != "no"],  AS_IF([test "$cf_enable_openssl" != "no"],
149   [AC_MSG_CHECKING(for OpenSSL 0.9.7 or above)   [AC_MSG_CHECKING(for OpenSSL 0.9.8 or above)
150    AC_RUN_IFELSE([    AC_RUN_IFELSE([
151      AC_LANG_PROGRAM([      AC_LANG_PROGRAM([
152      #include <openssl/opensslv.h>      #include <openssl/opensslv.h>
153      #include <stdlib.h>],      #include <stdlib.h>],
154      [[ exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000)); ]])],      [[ exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); ]])],
155    [cf_openssl_version_ok=yes],    [cf_openssl_version_ok=yes],
156    [cf_openssl_version_ok=no],    [cf_openssl_version_ok=no],
157    [cf_openssl_version_ok=no])    [cf_openssl_version_ok=no])
# Line 161  AS_IF([test "$cf_enable_openssl" != "no" Line 159  AS_IF([test "$cf_enable_openssl" != "no"
159    AS_IF([test "$cf_openssl_version_ok" = "yes"],    AS_IF([test "$cf_openssl_version_ok" = "yes"],
160      [AC_MSG_RESULT(found)      [AC_MSG_RESULT(found)
161    
162      AC_CHECK_LIB(crypto, RSA_free)      AC_CHECK_LIB(ssl, SSL_connect)
163      AS_IF([test "$ac_cv_lib_crypto_RSA_free" = "yes"],      AS_IF([test "$ac_cv_lib_ssl_SSL_connect" = "yes"],
164        [AC_CHECK_FUNCS(EVP_bf_cfb           \        [AC_CHECK_LIB(crypto, RSA_free)])
                       EVP_cast5_cfb        \  
                       EVP_idea_cfb         \  
                       EVP_rc5_32_12_16_cfb \  
                       EVP_des_ede3_cfb     \  
                       EVP_des_cfb)])  
165      ],[AC_MSG_RESULT(no - OpenSSL support disabled)      ],[AC_MSG_RESULT(no - OpenSSL support disabled)
166      cf_enable_openssl="no"])])      cf_enable_openssl="no"])])
167    
168  AM_CONDITIONAL(ENABLE_SSL, [test "$cf_enable_openssl" = yes])  AM_CONDITIONAL(ENABLE_SSL, [test "$ac_cv_lib_crypto_RSA_free" = yes])
169    
170    
171  AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],  AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],

Legend:
Removed from v.1303  
changed lines
  Added in v.1304

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28