diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-20 10:56:03 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-20 10:56:03 +0000 |
commit | 8107df0103bd082eac252bea5ed557342f766614 (patch) | |
tree | 909bd2bee333bdd9ac96c826838879d1e06a98eb /ext/digest/sha2/extconf.rb | |
parent | df856da4812b9a33e2677e0269a81552e61a889a (diff) | |
download | ruby-8107df0103bd082eac252bea5ed557342f766614.tar.gz ruby-8107df0103bd082eac252bea5ed557342f766614.tar.xz ruby-8107df0103bd082eac252bea5ed557342f766614.zip |
* ext/digest/sha2/extconf.rb: fix support for cross-compiling.
* mkconfig.rb: fix support for autoconf 2.52.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r-- | ext/digest/sha2/extconf.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index f593c7911..c982aa64d 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -17,18 +17,12 @@ have_header("inttypes.h") have_header("unistd.h") -if try_run(<<SRC, $defs.join(' ')) +if try_cpp(<<SRC, $defs.join(' ')) #include "defs.h" -int main(void) { #ifdef NO_UINT64_T - return 1; -#else - return 0; + #error ** Cannot find a 64bit integer type - skipping the SHA2 module. #endif -} SRC then create_makefile("digest/sha2") -else - puts "** Cannot find a 64bit integer type - skipping the SHA2 module." end |