From c8d45bdd595e9db3bca93300be5574560c1e9028 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Oct 2017 03:08:02 +0000 Subject: [PATCH] verconf.h.tmpl: site and vendor directories * template/verconf.h.tmpl: disable site and vendor directories when removed. based on the path by arnoldwald (arnold w) at [ruby-core:81563]. [Bug #13631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/verconf.h.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/verconf.h.tmpl b/template/verconf.h.tmpl index 9325aee0ff..3b8a8aad76 100644 --- a/template/verconf.h.tmpl +++ b/template/verconf.h.tmpl @@ -21,13 +21,13 @@ #define RUBY_SITEARCH_PREFIX_FOR(arch) "${rubysitearchprefix}" #define RUBY_LIB "${rubylibdir}" #define RUBY_ARCH_LIB_FOR(arch) "${rubyarchdir}" -% if C["sitedir"] == "no" +% if !C["sitedir"] || C["sitedir"] == "no" #define NO_RUBY_SITE_LIB 1 % else #define RUBY_SITE_LIB "${sitedir}" #define RUBY_SITE_ARCH_LIB_FOR(arch) "${sitearchdir}" % end -% if C["vendordir"] == "no" +% if !C["vendordir"] || C["vendordir"] == "no" #define NO_RUBY_VENDOR_LIB 1 % else #define RUBY_VENDOR_LIB "${vendordir}"