On Sat, Jun 04, 2011 at 09:40:16PM +0200, Arfrever Frehtes Taifersar Arahesis wrote:
> Some users might have multiple Ruby interpreters available (e.g. /usr/bin/ruby18 and /usr/bin/ruby19)
> and /usr/bin/ruby symlink pointing to e.g. ruby19. This revision breaks detection of requested Ruby
> interpreter in such situations.
> I suggest to use:
> AC_PATH_PROGS(RUBY, $RUBY ruby, none)
> AC_PATH_PROG(RDOC, $RDOC rdoc, none)
> OpenBSD packagers will have to set RUBY and RDOC variables when calling `./configure`.
> If versioned executables are still needed in the list, then following could be used:
> AC_PATH_PROGS(RUBY, $RUBY ruby ruby1.9 ruby19 ruby1.8 ruby18, none)
> AC_PATH_PROG(RDOC, $RDOC rdoc rdoc1.9 rdoc19 rdoc1.8 rdoc18, none)
> (Personally I prefer the variant without versioned executables.)
Yes, that sounds like a good solution to me, too.
Received on 2011-06-04 22:21:50 CEST