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 /ext/digest/sha2 | |
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
Diffstat (limited to 'ext/digest/sha2')
-rw-r--r-- | ext/digest/sha2/extconf.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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") |