diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-12 14:33:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-12 14:33:10 +0000 |
commit | d00d9606d123616fd7696c2e9bb26cc640fccc79 (patch) | |
tree | b3cee5980307bf14514734f0908f0f4e3e9059ad | |
parent | b224f1987b8539a38f82a163ec41edab026381d9 (diff) | |
download | ruby-d00d9606d123616fd7696c2e9bb26cc640fccc79.tar.gz |
* lib/mkmf.rb: keep curdir unexpanded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/mkmf.rb | 7 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Jul 12 23:32:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/mkmf.rb: keep curdir unexpanded. + Mon Jul 11 23:50:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c, intern.h (rb_proc_call, rb_obj_method, rb_method_call): diff --git a/lib/mkmf.rb b/lib/mkmf.rb index f1ce3f41e4..157f20ce83 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1242,8 +1242,11 @@ end Config::CONFIG["srcdir"] = CONFIG["srcdir"] = $srcdir = arg_config("--srcdir", File.dirname($0)) $configure_args["--topsrcdir"] ||= $srcdir -$curdir = arg_config("--curdir", Dir.pwd) -Config.expand(curdir = $curdir.dup) +if $curdir = arg_config("--curdir") + Config.expand(curdir = $curdir.dup) +else + curdir = $curdir = "." +end unless File.expand_path(Config::CONFIG["topdir"]) == File.expand_path(curdir) CONFIG["topdir"] = $curdir Config::CONFIG["topdir"] = curdir |