[前][次][番号順一覧][スレッド一覧]

ruby-changes:15530

From: akr <ko1@a...>
Date: Wed, 21 Apr 2010 21:25:52 +0900 (JST)
Subject: [ruby-changes:15530] Ruby:r27433 (trunk): * ext/digest/sha2/extconf.rb: check SHA256_CTX and SHA512_CTX to fix

akr	2010-04-21 21:25:29 +0900 (Wed, 21 Apr 2010)

  New Revision: 27433

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27433

  Log:
    * ext/digest/sha2/extconf.rb: check SHA256_CTX and SHA512_CTX to fix
      compilation failure on OpenBSD 4.4.

  Modified files:
    trunk/ChangeLog
    trunk/ext/digest/sha2/extconf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27432)
+++ ChangeLog	(revision 27433)
@@ -1,3 +1,8 @@
+Wed Apr 21 21:24:20 2010  Tanaka Akira  <akr@f...>
+
+	* ext/digest/sha2/extconf.rb: check SHA256_CTX and SHA512_CTX to fix
+	  compilation failure on OpenBSD 4.4.
+
 Wed Apr 21 15:13:10 2010  NARUSE, Yui  <naruse@r...>
 
 	* io.c (io_getc): fix incomplete character immediately before EOF
Index: ext/digest/sha2/extconf.rb
===================================================================
--- ext/digest/sha2/extconf.rb	(revision 27432)
+++ ext/digest/sha2/extconf.rb	(revision 27433)
@@ -12,7 +12,8 @@
 
 if !with_config("bundled-sha2") &&
     have_library("crypto") &&
-    %w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")}
+    %w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")} &&
+    %w[SHA256 SHA512].all? {|d| have_type("#{d}_CTX", "openssl/sha.h")}
   $objs << "sha2ossl.#{$OBJEXT}"
   $defs << "-DSHA2_USE_OPENSSL"
 else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]