aboutsummaryrefslogtreecommitdiffstats
path: root/extconf.rb
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2001-11-29 13:03:08 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2001-11-29 13:03:08 +0000
commit622142fe5f864ad3964a6f30ffe6af7361515e83 (patch)
tree3132d2cafa7c712ee6fff1fbd3e4e9c2fec4ae11 /extconf.rb
parenteec231c7350bda539d10564b723a124a7caeafa6 (diff)
downloadruby-openssl-history-622142fe5f864ad3964a6f30ffe6af7361515e83.tar.gz
* Make work under MS Windows (strptime added) + doc in README
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/extconf.rb b/extconf.rb
index b1b929e..fe9c414 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -10,11 +10,19 @@ This program is licenced under the same licence as Ruby.
require "mkmf"
-CRYPTOLIB="crypto"
-SSLLIB="ssl"
+if RUBY_PLATFORM =~ /mswin32/
+ CRYPTOLIB="libeay32"
+ SSLLIB="ssleay32"
+else
+ CRYPTOLIB="crypto"
+ SSLLIB="ssl"
+end
dir_config("openssl")
+have_func("strncasecmp", "string.h")
+have_func("strptime", "time.h")
+
if have_header("openssl/ssl.h")
if have_library(CRYPTOLIB, nil) and have_library(SSLLIB, nil) #"SSLv23_method")
create_makefile("openssl")