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

Diff of /ircd-hybrid-8/configure

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 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # From configure.ac Id: configure.ac 1292 2012-02-12 20:36:27Z michael .  # From configure.ac Id: configure.ac 1302 2012-03-21 17:48:54Z michael .
3  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
4  # Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1.  # Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1.
5  #  #
# Line 13755  if test "$cf_enable_openssl" != "no"; th Line 13755  if test "$cf_enable_openssl" != "no"; th
13755    fi    fi
13756    
13757        if test ! -z "$cf_openssl_basedir"; then        if test ! -z "$cf_openssl_basedir"; then
     LIBS="-lcrypto -lssl $LIBS"  
13758      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13759  $as_echo "$cf_openssl_basedir" >&6; }  $as_echo "$cf_openssl_basedir" >&6; }
13760      cf_enable_openssl="yes"      cf_enable_openssl="yes"
   
 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h  
   
13761    else    else
13762      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13763  $as_echo "not found. Please check your path." >&6; }  $as_echo "not found. Please check your path." >&6; }
# Line 13774  $as_echo "disabled" >&6; } Line 13770  $as_echo "disabled" >&6; }
13770  fi  fi
13771    
13772  if test "$cf_enable_openssl" != "no"; then :  if test "$cf_enable_openssl" != "no"; then :
13773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13774  $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }  $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13775    if test "$cross_compiling" = yes; then :    if test "$cross_compiling" = yes; then :
13776    cf_openssl_version_ok=no    cf_openssl_version_ok=no
13777  else  else
# Line 13788  else Line 13784  else
13784  int  int
13785  main ()  main ()
13786  {  {
13787   exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));   exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13788    ;    ;
13789    return 0;    return 0;
13790  }  }
# Line 13807  fi Line 13803  fi
13803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13804  $as_echo "found" >&6; }  $as_echo "found" >&6; }
13805    
13806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13807    $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13808    if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13809      $as_echo_n "(cached) " >&6
13810    else
13811      ac_check_lib_save_LIBS=$LIBS
13812    LIBS="-lssl  $LIBS"
13813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814    /* end confdefs.h.  */
13815    
13816    /* Override any GCC internal prototype to avoid an error.
13817       Use char because int might match the return type of a GCC
13818       builtin and then its argument prototype would still apply.  */
13819    #ifdef __cplusplus
13820    extern "C"
13821    #endif
13822    char SSL_connect ();
13823    int
13824    main ()
13825    {
13826    return SSL_connect ();
13827      ;
13828      return 0;
13829    }
13830    _ACEOF
13831    if ac_fn_c_try_link "$LINENO"; then :
13832      ac_cv_lib_ssl_SSL_connect=yes
13833    else
13834      ac_cv_lib_ssl_SSL_connect=no
13835    fi
13836    rm -f core conftest.err conftest.$ac_objext \
13837        conftest$ac_exeext conftest.$ac_ext
13838    LIBS=$ac_check_lib_save_LIBS
13839    fi
13840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13841    $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13842    if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13843      cat >>confdefs.h <<_ACEOF
13844    #define HAVE_LIBSSL 1
13845    _ACEOF
13846    
13847      LIBS="-lssl $LIBS"
13848    
13849    fi
13850    
13851        if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
13852      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13853  $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }  $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13854  if ${ac_cv_lib_crypto_RSA_free+:} false; then :  if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13855    $as_echo_n "(cached) " >&6    $as_echo_n "(cached) " >&6
# Line 13852  _ACEOF Line 13894  _ACEOF
13894    
13895  fi  fi
13896    
     if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :  
   for ac_func in EVP_bf_cfb           \  
                       EVP_cast5_cfb        \  
                       EVP_idea_cfb         \  
                       EVP_rc5_32_12_16_cfb \  
                       EVP_des_ede3_cfb     \  
                       EVP_des_cfb  
 do :  
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`  
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"  
 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :  
   cat >>confdefs.h <<_ACEOF  
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1  
 _ACEOF  
   
 fi  
 done  
   
13897  fi  fi
13898    
13899  else  else
# Line 13879  $as_echo "no - OpenSSL support disabled" Line 13903  $as_echo "no - OpenSSL support disabled"
13903  fi  fi
13904  fi  fi
13905    
13906   if test "$cf_enable_openssl" = yes; then   if test "$ac_cv_lib_crypto_RSA_free" = yes; then
13907    ENABLE_SSL_TRUE=    ENABLE_SSL_TRUE=
13908    ENABLE_SSL_FALSE='#'    ENABLE_SSL_FALSE='#'
13909  else  else

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

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