mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/digest/sha2/extconf.rb: fix support for cross-compiling.
* mkconfig.rb: fix support for autoconf 2.52. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba294ad060
commit
e15efe7733
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue