2001-08-14 16:05:21 -04:00
|
|
|
# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
|
2001-07-13 16:06:14 -04:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
require "mkmf"
|
|
|
|
|
2004-02-22 00:58:10 -05:00
|
|
|
$CPPFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
|
2001-07-13 16:06:14 -04:00
|
|
|
|
|
|
|
$objs = [
|
|
|
|
"sha2.#{$OBJEXT}",
|
|
|
|
"sha2hl.#{$OBJEXT}",
|
|
|
|
"sha2init.#{$OBJEXT}",
|
|
|
|
]
|
|
|
|
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
|
|
|
|
have_header("inttypes.h")
|
|
|
|
|
|
|
|
have_header("unistd.h")
|
|
|
|
|
2004-01-07 17:06:38 -05:00
|
|
|
$preload = %w[digest]
|
|
|
|
|
2001-08-20 06:56:03 -04:00
|
|
|
if try_cpp(<<SRC, $defs.join(' '))
|
2001-08-14 16:05:21 -04:00
|
|
|
#include "defs.h"
|
2001-08-14 13:04:00 -04:00
|
|
|
#ifdef NO_UINT64_T
|
2001-08-20 06:56:03 -04:00
|
|
|
#error ** Cannot find a 64bit integer type - skipping the SHA2 module.
|
2001-08-14 13:04:00 -04:00
|
|
|
#endif
|
2001-08-14 08:15:21 -04:00
|
|
|
SRC
|
2001-08-14 13:04:00 -04:00
|
|
|
then
|
|
|
|
create_makefile("digest/sha2")
|
2001-08-14 08:15:21 -04:00
|
|
|
end
|