diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 05:17:34 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 05:17:34 +0000 |
| commit | 4b1b31262cb10998020fd561552a244b379d4175 (patch) | |
| tree | 019445f960cc81aba78fbfd3fac09d7bd8c93e56 | |
| parent | 35863f1946ea6c20e8d33f775e6e4bf7b8013a8d (diff) | |
| download | ruby-4b1b31262cb10998020fd561552a244b379d4175.tar.gz ruby-4b1b31262cb10998020fd561552a244b379d4175.tar.xz ruby-4b1b31262cb10998020fd561552a244b379d4175.zip | |
* configure.in (RUBY_REPLACE_TYPE): define typename to default
type if the latter is found.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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, |
