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 << "-DHAVE_CONFIG_H" 8$INCFLAGS << " -I$(srcdir)/.." 9 10$objs = [ "md5init.#{$OBJEXT}" ] 11 12dir_config("openssl") 13pkg_config("openssl") 14require File.expand_path('../../../openssl/deprecation', __FILE__) 15 16if !with_config("bundled-md5") && 17 have_library("crypto") && OpenSSL.check_func("MD5_Transform", "openssl/md5.h") 18 $objs << "md5ossl.#{$OBJEXT}" 19 20else 21 $objs << "md5cc.#{$OBJEXT}" 22end 23 24have_header("sys/cdefs.h") 25 26$preload = %w[digest] 27 28create_makefile("digest/md5") 29