mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: do not create unnecessary verconf.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba692a488e
commit
847654a3c8
1 changed files with 0 additions and 2 deletions
|
@ -4282,11 +4282,9 @@ if test ${RUBY_LIB_VERSION_STYLE+set}; then
|
|||
echo "#define RUBY_LIB_VERSION_STYLE $RUBY_LIB_VERSION_STYLE"
|
||||
echo '#define STRINGIZE(x) x'
|
||||
test -f revision.h -o -f "${srcdir}/revision.h" || echo '#define RUBY_REVISION 0'
|
||||
echo '#include "verconf.h"'
|
||||
echo '#include "version.h"'
|
||||
echo 'ruby_version=RUBY_LIB_VERSION'
|
||||
} > conftest.c
|
||||
test -f verconf.h || > verconf.h
|
||||
ruby_version="`$CPP -I. -I"${srcdir}" -I"${srcdir}/include" conftest.c | sed '/^ruby_version=/!d;s/ //g'`"
|
||||
eval $ruby_version
|
||||
elif test -z "${ruby_version}"; then
|
||||
|
|
Loading…
Add table
Reference in a new issue