diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-14 12:15:21 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-14 12:15:21 +0000 |
commit | 5b63fc556fd06f8c6c170df359a854d3e504806f (patch) | |
tree | 39ea0f370ed876bbf2d07503e5e92a681310ee98 | |
parent | 04a8e85bc5d305d1c227ca9d3ccc0794e07fafc1 (diff) | |
download | ruby-5b63fc556fd06f8c6c170df359a854d3e504806f.tar.gz |
* ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit
integer type is detected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/digest/sha2/extconf.rb | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Aug 14 21:14:07 2001 Akinori MUSHA <knu@iDaemons.org> + + * ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit + integer type is detected. + Tue Aug 14 17:09:12 2001 Yukihiro Matsumoto <matz@ruby-lang.org> * range.c (range_step): new method. diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index fcbc1ddd8b..144f266b20 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -17,4 +17,12 @@ have_header("inttypes.h") have_header("unistd.h") +unless try_link(<<SRC, $defs.join(' ')) +#include "../defs.h" +main(){} +SRC + puts "** Cannot find a 64bit integer type - skipping the SHA2 module." + exit 1 +end + create_makefile("digest/sha2") |