diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 19:02:42 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 19:02:42 +0000 |
commit | 2a91e513f2b37b6dbe706b07549a11dcc86f8a40 (patch) | |
tree | 7685754fb2ee40b6c1e2ecadd3b4b154d530f008 | |
parent | 9dc7b143b847a4e8441473b99cf3d6033c3adec6 (diff) | |
download | ruby-2a91e513f2b37b6dbe706b07549a11dcc86f8a40.tar.gz ruby-2a91e513f2b37b6dbe706b07549a11dcc86f8a40.tar.xz ruby-2a91e513f2b37b6dbe706b07549a11dcc86f8a40.zip |
* ext/ripper/extconf.rb: bison is not needed if ripper.c exists. [ruby-dev:25191]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/ripper/extconf.rb | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Dec 16 04:02:28 2004 Minero Aoki <aamine@loveruby.net> + + * ext/ripper/extconf.rb: bison is not needed if ripper.c exists. + [ruby-dev:25191] + Thu Dec 16 03:27:10 2004 Minero Aoki <aamine@loveruby.net> * lib/net/http.rb: remove junk. diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index f1716b84c..fd9370c33 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -5,8 +5,10 @@ require 'rbconfig' def main unless have_command('bison') - $stderr.puts 'Ripper requires bison; abort' - exit 1 + unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") + $stderr.puts 'missing bison; abort' + exit 1 + end end $objs = %w(ripper.o) $cleanfiles.concat %w(ripper.y ripper.c ripper.E ripper.output eventids1.c ids1 ids2) |