mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
f6892cba23
extension libraries. * bignum.c (bignew_1, bigadd): K&R style argument actually can't be defined as char. * missing/vsnprintf.c: ANSI compiler supports const keyword. * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h but no 64bit integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
421 B
Ruby
24 lines
421 B
Ruby
# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
|
|
# $Id$
|
|
|
|
require "mkmf"
|
|
|
|
$CPPFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
|
|
|
|
$objs = [
|
|
"sha2.#{$OBJEXT}",
|
|
"sha2hl.#{$OBJEXT}",
|
|
"sha2init.#{$OBJEXT}",
|
|
]
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
have_header("inttypes.h")
|
|
|
|
have_header("unistd.h")
|
|
|
|
$preload = %w[digest]
|
|
|
|
if have_type("uint64_t", "defs.h", $defs.join(' '))
|
|
create_makefile("digest/sha2")
|
|
end
|