summaryrefslogtreecommitdiff
path: root/trunk/ext/zlib/extconf.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-25 15:13:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-25 15:13:14 +0000
commitd0233291bc8a5068e52c69c210e5979e5324b5bc (patch)
tree7d9459449c33792c63eeb7baa071e76352e0baab /trunk/ext/zlib/extconf.rb
parent0dc342de848a642ecce8db697b8fecd83a63e117 (diff)
parent72eaacaa15256ab95c3b52ea386f88586fb9da40 (diff)
re-adding tag v1_9_0_4 as an alias of trunk@18848v1_9_0_4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'trunk/ext/zlib/extconf.rb')
-rw-r--r--trunk/ext/zlib/extconf.rb61
1 files changed, 0 insertions, 61 deletions
diff --git a/trunk/ext/zlib/extconf.rb b/trunk/ext/zlib/extconf.rb
deleted file mode 100644
index 53b971b189..0000000000
--- a/trunk/ext/zlib/extconf.rb
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# extconf.rb
-#
-# $Id$
-#
-
-require 'mkmf'
-require 'rbconfig'
-
-dir_config 'zlib'
-
-
-if %w'z libz zlib1 zlib zdll'.find {|z| have_library(z, 'deflateReset')} and
- have_header('zlib.h') then
-
- defines = []
-
- message 'checking for kind of operating system... '
- os_code = with_config('os-code') ||
- case RUBY_PLATFORM.split('-',2)[1]
- when 'amigaos' then
- os_code = 'AMIGA'
- when /\Aos2[\-_]emx\z/ then
- os_code = 'OS2'
- when /mswin|mingw|bccwin/ then
- # NOTE: cygwin should be regarded as Unix.
- os_code = 'WIN32'
- else
- os_code = 'UNIX'
- end
- os_code = 'OS_' + os_code.upcase
-
- OS_NAMES = {
- 'OS_MSDOS' => 'MS-DOS',
- 'OS_AMIGA' => 'Amiga',
- 'OS_VMS' => 'VMS',
- 'OS_UNIX' => 'Unix',
- 'OS_ATARI' => 'Atari',
- 'OS_OS2' => 'OS/2',
- 'OS_MACOS' => 'MacOS',
- 'OS_TOPS20' => 'TOPS20',
- 'OS_WIN32' => 'Win32',
- 'OS_VMCMS' => 'VM/CMS',
- 'OS_ZSYSTEM' => 'Z-System',
- 'OS_CPM' => 'CP/M',
- 'OS_QDOS' => 'QDOS',
- 'OS_RISCOS' => 'RISCOS',
- 'OS_UNKNOWN' => 'Unknown',
- }
- unless OS_NAMES.key? os_code then
- puts "invalid OS_CODE `#{os_code}'"
- exit
- end
- message "#{OS_NAMES[os_code]}\n"
- defines << "OS_CODE=#{os_code}"
-
- $defs.concat(defines.collect{|d|' -D'+d})
-
- create_makefile('zlib')
-
-end