diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.in | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Sep 11 14:17:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (RUBY_REPLACE_TYPE): define typename to defaul + type if the latter is found. + Fri Sep 11 13:57:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * include/ruby/win32.h (fstat): override if large file support is diff --git a/configure.in b/configure.in index bc0a2c0e2..36162dce1 100644 --- a/configure.in +++ b/configure.in @@ -524,7 +524,8 @@ AC_DEFUN([RUBY_REPLACE_TYPE], [dnl t=INT;; esac rb_cv_[$1]_convertible=${u}${t}]) - m4_ifval([$2], AC_DEFINE_UNQUOTED(rb_[$1], $n)) + test "${AS_TR_SH(ac_cv_type_[$1])}" = "yes" && n="$1" + AC_DEFINE_UNQUOTED(rb_[$1], $n) AC_DEFINE_UNQUOTED([$3]2NUM[(v)], [${rb_cv_[$1]_convertible}2NUM(v)]) AC_DEFINE_UNQUOTED(NUM2[$3][(v)], [NUM2${rb_cv_[$1]_convertible}(v)]) AC_DEFINE_UNQUOTED(PRI_[$3]_PREFIX, |
