* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / ext / digest / sha1 / extconf.rb
blob87b74c34af8ecc7f8def56b134a13f3c7433a70c
1 # $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
2 # $Id$
4 require "mkmf"
6 $defs << "-DHAVE_CONFIG_H"
7 $INCFLAGS << " -I$(srcdir)/.."
9 $objs = [ "sha1init.#{$OBJEXT}" ]
11 dir_config("openssl")
13 if !with_config("bundled-sha1") &&
14     have_library("crypto") && have_header("openssl/sha.h")
15   $objs << "sha1ossl.#{$OBJEXT}"
16 else
17   $objs << "sha1.#{$OBJEXT}"
18 end
20 have_header("sys/cdefs.h")
22 have_header("inttypes.h")
24 have_header("unistd.h")
26 $preload = %w[digest]
28 create_makefile("digest/sha1")