From 79f2ee2f0411c1d10ceefc869a32925d39171b1a Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 24 May 2001 07:13:56 +0000 Subject: * mkconfig.rb: autoconf 2.50 support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mkconfig.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkconfig.rb') diff --git a/mkconfig.rb b/mkconfig.rb index 721cd3f67d..14e5829f53 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -48,7 +48,7 @@ File.foreach "config.status" do |line| v_others << v end has_version = true if name == "MAJOR" - elsif /^ac_given_srcdir=(.*)/ =~ line + elsif /^(?:ac_given_)srcdir=(.*)/ =~ line v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path($1) + "\"\n" has_srcdir = true elsif /^ac_given_INSTALL=(.*)/ =~ line @@ -58,7 +58,7 @@ File.foreach "config.status" do |line| end if not has_srcdir - v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path(srcdir) + "\"\n" + v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path(srcdir || '.') + "\"\n" end if not has_version -- cgit v1.2.3