From 0ce6372dc1b24ae821689d0999a058978484a487 Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 15 Dec 2004 19:02:42 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/ripper/extconf.rb | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71b544831e..7b31839bdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 16 04:02:28 2004 Minero Aoki + + * ext/ripper/extconf.rb: bison is not needed if ripper.c exists. + [ruby-dev:25191] + Thu Dec 16 03:27:10 2004 Minero Aoki * lib/net/http.rb: remove junk. diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index f1716b84c0..fd9370c337 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)