diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Jun 23 16:16:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (ruby_version): defaults revision to 0 when no + revision.h exists. + Tue Jun 23 16:04:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * file.c (rb_find_file_ext, rb_find_file): no needs to expand diff --git a/configure.in b/configure.in index 565db9934e..f4e9a60db2 100644 --- a/configure.in +++ b/configure.in @@ -2335,6 +2335,7 @@ 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 "version.h"' echo 'ruby_version=RUBY_LIB_VERSION' } > conftest.c |