1# -*- coding: us-ascii -*-
2# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
3# $Id: extconf.rb 37878 2012-11-27 00:58:52Z nobu $
4
5require "mkmf"
6
7$defs << "-DNDEBUG" << "-DHAVE_CONFIG_H"
8$INCFLAGS << " -I$(srcdir)/.."
9
10$objs = [ "rmd160init.#{$OBJEXT}" ]
11
12dir_config("openssl")
13pkg_config("openssl")
14require File.expand_path('../../../openssl/deprecation', __FILE__)
15
16if !with_config("bundled-rmd160") &&
17    have_library("crypto") && OpenSSL.check_func("RMD160_Transform", "openssl/ripemd.h")
18  $objs << "rmd160ossl.#{$OBJEXT}"
19else
20  $objs << "rmd160.#{$OBJEXT}"
21end
22
23have_header("sys/cdefs.h")
24
25$preload = %w[digest]
26
27create_makefile("digest/rmd160")
28