summaryrefslogtreecommitdiff
path: root/ext/ripper/extconf.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-15 19:02:42 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-15 19:02:42 +0000
commit0ce6372dc1b24ae821689d0999a058978484a487 (patch)
tree7685754fb2ee40b6c1e2ecadd3b4b154d530f008 /ext/ripper/extconf.rb
parent64b5b2b1a249b4901396692cea5ccd4239e219ed (diff)
* ext/ripper/extconf.rb: bison is not needed if ripper.c exists. [ruby-dev:25191]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/extconf.rb')
-rw-r--r--ext/ripper/extconf.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb
index f1716b84c01..fd9370c3376 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)