diff options
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-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") |