Sha256: ecacb42f24be470569bc5b517486cc1e127c1fc861bce97571126a94145c8ca7

Contents?: true

Size: 869 Bytes

Versions: 17

Compression:

Stored size: 869 Bytes

Contents

# -*- coding: us-ascii -*-
# frozen_string_literal: false
require 'mkmf'
require 'fileutils'

# :stopdoc:

dir_config 'libyaml'

if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
  # Embed libyaml since we could not find it.

  $VPATH << "$(srcdir)/yaml"
  $INCFLAGS << " -I$(srcdir)/yaml"

  $srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}

  if have_macro("_WIN32")
    $CPPFLAGS << " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
  end

  have_header 'dlfcn.h'
  have_header 'inttypes.h'
  have_header 'memory.h'
  have_header 'stdint.h'
  have_header 'stdlib.h'
  have_header 'strings.h'
  have_header 'string.h'
  have_header 'sys/stat.h'
  have_header 'sys/types.h'
  have_header 'unistd.h'

  find_header 'yaml.h'
  have_header 'config.h'
end

create_makefile 'psych'

# :startdoc:

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
psych-3.0.0.beta2-java ext/psych/extconf.rb
psych-3.0.0.beta2 ext/psych/extconf.rb
psych-2.2.4-java ext/psych/extconf.rb
psych-2.2.4 ext/psych/extconf.rb
psych-2.2.3-java ext/psych/extconf.rb
psych-2.2.3 ext/psych/extconf.rb
ruby-compiler-0.1.1 vendor/ruby/ext/psych/extconf.rb
psych-2.2.2-java ext/psych/extconf.rb
psych-2.2.2 ext/psych/extconf.rb
psych-2.2.1-java ext/psych/extconf.rb
psych-2.2.1 ext/psych/extconf.rb
psych-2.2.0-java ext/psych/extconf.rb
psych-2.2.0 ext/psych/extconf.rb
psych-2.1.1-java ext/psych/extconf.rb
psych-2.1.1 ext/psych/extconf.rb
psych-2.1.0-java ext/psych/extconf.rb
psych-2.1.0 ext/psych/extconf.rb