diff --git a/ChangeLog b/ChangeLog index c0f87a0a1d..4f3d50f820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 27 16:47:12 2009 Nobuyoshi Nakada + + * configure.in (ruby_version): uses sed instead of grep if the + result is need, to get rid of GREP_OPTIONS. [ruby-dev:38336] + Mon Apr 27 01:25:11 2009 Nobuyoshi Nakada * ext/readline/readline.c (readline_getc): use rl_getc_function if diff --git a/configure.in b/configure.in index fe99222ba4..e11316af42 100644 --- a/configure.in +++ b/configure.in @@ -2305,7 +2305,7 @@ if test ${RUBY_LIB_VERSION_STYLE+set}; then echo '#include "version.h"' echo 'ruby_version=RUBY_LIB_VERSION' } > conftest.c - ruby_version="`$CPP -I"${srcdir}" conftest.c | grep '^ruby_version=' | tr -d ' '`" + ruby_version="`$CPP -I"${srcdir}" conftest.c | sed '/^ruby_version=/!d;s/ //g'`" eval $ruby_version else RUBY_LIB_VERSION="\"${ruby_version}\""