diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-22 07:37:14 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-22 07:37:14 +0000 |
commit | 9d0bba43bb79cf7d37fa93af66f2a70600f73fec (patch) | |
tree | 43c72baac1de723b74f182f5b6b34b899501e84b /mkconfig.rb | |
parent | 6aa451b9dd7f7890078dae1f69169b02155f7dc4 (diff) | |
download | ruby-9d0bba43bb79cf7d37fa93af66f2a70600f73fec.tar.gz |
* mkconfig.rb: autoconf 2.49 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
-rw-r--r-- | mkconfig.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkconfig.rb b/mkconfig.rb index 63a7351799..7deb6cef15 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -28,11 +28,11 @@ has_srcdir = false has_version = false File.foreach "config.status" do |line| next if /^#/ =~ line - if /^s%@program_transform_name@%s,(.*)%g$/ =~ line + if /^s[%,]@program_transform_name@[%,]s,(.*)[%,]/ =~ line next if $install_name ptn = $1.sub(/\$\$/, '$').split(/,/) #' v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(ptn[0],ptn[1]) + "\"\n" - elsif /^s%@(\w+)@%(.*)%g/ =~ line + elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line name = $1 val = $2 || "" next if /^(INSTALL|DEFS|configure_input|srcdir|top_srcdir)$/ =~ name |