Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 583126 | Differences between
and this patch

Collapse All | Expand All

(-)libprelude-3.0.0/m4/am_path_ruby.m4 (-3 / +3 lines)
Lines 96-106 Link Here
96
  dnl   (shared libraries)
96
  dnl   (shared libraries)
97
  AC_CACHE_CHECK([for $am_display_RUBY extension module directory],
97
  AC_CACHE_CHECK([for $am_display_RUBY extension module directory],
98
    [am_cv_ruby_rbexecdir],
98
    [am_cv_ruby_rbexecdir],
99
    [am_cv_ruby_rbexecdir=`$RUBY -rrbconfig -e "drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/; prefix = Regexp.new('\\A' + Regexp.quote(RbConfig::CONFIG[['prefix']])); \\$prefix = RbConfig::CONFIG[['prefix']].sub(drive, ''); \\$sitearchdir = RbConfig::CONFIG[['sitearchdir']].sub(prefix, '\\$(prefix)').sub(drive, ''); print \\$sitearchdir;" 2>/dev/null || echo "${RUBY_EXEC_PREFIX}/local/lib/site_ruby/${RUBY_VERSION}/${RUBY_PLATFORM}"`])
99
    [am_cv_ruby_rbexecdir=`$RUBY -r rbconfig -e "print RbConfig::CONFIG[['vendorarchdir']]"`])
100
  AC_SUBST([rbexecdir], [$am_cv_ruby_rbexecdir])
100
  AC_SUBST([rbexecdir], [$am_cv_ruby_rbexecdir])
101
101
102
  RUBY_INCLUDES=`$RUBY -r rbconfig -e 'if RbConfig::CONFIG[["archdir"]] then print " -I" + RbConfig::CONFIG[["archdir"]] end
102
  RUBY_VER=`$RUBY -rrbconfig -e "print RbConfig::CONFIG[['ruby_pc']]" | sed 's/.pc//g'`
103
                                       if RbConfig::CONFIG[["rubyhdrdir"]] then print " -I" + RbConfig::CONFIG[["rubyhdrdir"]] end'`
103
  RUBY_INCLUDES=`pkg-config $RUBY_VER --cflags`
104
  AC_SUBST([RUBY_INCLUDES])
104
  AC_SUBST([RUBY_INCLUDES])
105
105
106
  dnl pkgrbexecdir -- $(rbexecdir)/$(PACKAGE)
106
  dnl pkgrbexecdir -- $(rbexecdir)/$(PACKAGE)

Return to bug 583126