mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 02:23:59 +02:00

-- * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an off-by-one bug in SHA-256 hashing. Reduce differences from the original while at it. [Bug #1799] -- * ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as necessary. [ruby-dev:39029] -- * ext/digest/sha2/sha2.c (*_Final): typos. -- * ext/digest/sha2/lib/sha2.eb: should require sha2.so. -- * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be checked here. [ruby-dev:39032] -- * ext/digest/sha2/sha2.c: The ULL suffix is not supported by pre-C99 compilers, so resurrect the ULL() macro to regain portability. [ruby-dev:39032] -- Fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
475 B
Ruby
24 lines
475 B
Ruby
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
|
|
# $Id$
|
|
|
|
require "mkmf"
|
|
|
|
$defs << "-DNDEBUG" << "-DHAVE_CONFIG_H"
|
|
$INCFLAGS << " -I$(srcdir)/.."
|
|
|
|
$objs = [ "rmd160init.#{$OBJEXT}" ]
|
|
|
|
dir_config("openssl")
|
|
|
|
if !with_config("bundled-rmd160") &&
|
|
have_library("crypto") && have_header("openssl/ripemd.h")
|
|
$objs << "rmd160ossl.#{$OBJEXT}"
|
|
else
|
|
$objs << "rmd160.#{$OBJEXT}"
|
|
end
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
$preload = %w[digest]
|
|
|
|
create_makefile("digest/rmd160")
|