2012-11-26 19:58:52 -05:00
|
|
|
# -*- coding: us-ascii -*-
|
2001-08-14 16:05:21 -04:00
|
|
|
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
|
2001-07-13 16:06:14 -04:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
require "mkmf"
|
|
|
|
|
2006-05-25 19:44:08 -04:00
|
|
|
$defs << "-DHAVE_CONFIG_H"
|
|
|
|
$INCFLAGS << " -I$(srcdir)/.."
|
2001-07-13 16:06:14 -04:00
|
|
|
|
2002-09-26 12:27:23 -04:00
|
|
|
$objs = [ "md5init.#{$OBJEXT}" ]
|
|
|
|
|
|
|
|
dir_config("openssl")
|
2012-04-30 17:03:38 -04:00
|
|
|
pkg_config("openssl")
|
2012-11-26 19:58:52 -05:00
|
|
|
require File.expand_path('../../../openssl/deprecation', __FILE__)
|
2002-09-26 12:27:23 -04:00
|
|
|
|
|
|
|
if !with_config("bundled-md5") &&
|
2012-04-30 17:03:38 -04:00
|
|
|
have_library("crypto") && OpenSSL.check_func("MD5_Transform", "openssl/md5.h")
|
2002-09-26 12:27:23 -04:00
|
|
|
$objs << "md5ossl.#{$OBJEXT}"
|
|
|
|
|
|
|
|
else
|
|
|
|
$objs << "md5.#{$OBJEXT}"
|
|
|
|
end
|
2001-07-13 16:06:14 -04:00
|
|
|
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
|
2004-01-07 17:06:38 -05:00
|
|
|
$preload = %w[digest]
|
|
|
|
|
2001-07-13 16:06:14 -04:00
|
|
|
create_makefile("digest/md5")
|