diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
commit | d0233291bc8a5068e52c69c210e5979e5324b5bc (patch) | |
tree | 7d9459449c33792c63eeb7baa071e76352e0baab /trunk/ext/iconv/extconf.rb | |
parent | 0dc342de848a642ecce8db697b8fecd83a63e117 (diff) | |
parent | 72eaacaa15256ab95c3b52ea386f88586fb9da40 (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/iconv/extconf.rb')
-rw-r--r-- | trunk/ext/iconv/extconf.rb | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/trunk/ext/iconv/extconf.rb b/trunk/ext/iconv/extconf.rb deleted file mode 100644 index 9632bf4db9..0000000000 --- a/trunk/ext/iconv/extconf.rb +++ /dev/null @@ -1,53 +0,0 @@ -require 'mkmf' - -dir_config("iconv") - -conf = File.exist?(File.join($srcdir, "config.charset")) -conf = with_config("config-charset", enable_config("config-charset", conf)) - -if have_func("iconv", "iconv.h") or - have_library("iconv", "iconv", "iconv.h") - if checking_for("const of iconv() 2nd argument") do - create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---") - src = xpopen(cpp_command("")) {|f|f.read} - if !(func = src[/^--->\s*(\w+).*\s*<---/, 1]) - Logging::message "iconv function name not found" - false - elsif !(second = src[%r"\b#{func}\s*\(.*?,(.*?),.*?\)\s*;"m, 1]) - Logging::message "prototype for #{func}() not found" - false - else - Logging::message $&+"\n" - /\bconst\b/ =~ second - end - end - $defs.push('-DICONV_INPTR_CONST') - end - have_func("iconvlist", "iconv.h") - have_func("__iconv_free_list", "iconv.h") - if conf - prefix = '$(srcdir)' - prefix = $nmake ? "{#{prefix}}" : "#{prefix}/" - if $extout - wrapper = "$(RUBYARCHDIR)/iconv.rb" - else - wrapper = "./iconv.rb" - $INSTALLFILES = [[wrapper, "$(RUBYARCHDIR)"]] - end - if String === conf - require 'uri' - scheme = URI.parse(conf).scheme - else - conf = "$(srcdir)/config.charset" - end - $cleanfiles << wrapper - end - create_makefile("iconv") - if conf - open("Makefile", "a") do |mf| - mf.print("\nall: #{wrapper}\n\n#{wrapper}: #{prefix}charset_alias.rb") - mf.print(" ", conf) unless scheme - mf.print("\n\t$(RUBY) $(srcdir)/charset_alias.rb #{conf} $@\n") - end - end -end |