diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-16 22:07:28 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-16 22:07:28 +0000 |
commit | 5348fd7d4afcc2ff5e3dba1bddc9fa50a3fb6ddd (patch) | |
tree | d41d9d8aa771f88e03aa78f63ebad3bf591bf9c1 /ext/sha1/extconf.rb | |
parent | 4202ff1a9fba06137f58c0c757ada7e5c11b3ac5 (diff) |
Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sha1/extconf.rb')
-rw-r--r-- | ext/sha1/extconf.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/sha1/extconf.rb b/ext/sha1/extconf.rb new file mode 100644 index 0000000000..0a293e1248 --- /dev/null +++ b/ext/sha1/extconf.rb @@ -0,0 +1,15 @@ +require 'mkmf' + +i = 0x01020304 + +case [i].pack('l') + when [i].pack('V') + $CFLAGS += " -DLITTLE_ENDIAN" + when [i].pack('N') + $CFLAGS += " -DBIG_ENDIAN" + else + p "Sorry, your machine has an unusual byte order which is not supported." + exit! +end + +create_makefile('sha1') |