diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 16:45:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 16:45:28 +0000 |
commit | db49143cdaa0ff3504531bd32297be9ecb9a2bc3 (patch) | |
tree | 9ab565021fd15809c8b4166dcd182757965520c2 /configure.in | |
parent | c3cbb209caf8ac434063f0a1cc6370b92da63a58 (diff) |
* configure.in (stdint.h): check if presence.
* configure.in (uint32_t): check if defined.
* string.c (hash): fix for portability. [ruby-dev:34020]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index c17821011f..a33b5a9fc7 100644 --- a/configure.in +++ b/configure.in @@ -582,7 +582,7 @@ AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h sys/ fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ syscall.h pwd.h grp.h a.out.h utime.h memory.h direct.h sys/resource.h \ sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h pthread.h \ - ucontext.h intrinsics.h langinfo.h locale.h) + ucontext.h intrinsics.h langinfo.h locale.h stdint.h) dnl Check additional types. AC_CHECK_SIZEOF(rlim_t, 0, [ @@ -620,6 +620,18 @@ AC_CHECK_TYPES(struct timespec) AC_CHECK_TYPE(fd_mask, [AC_DEFINE(HAVE_RB_FD_INIT, 1)]) +test ${rb_cv_type_uint32_t+set} && ac_cv_type_uint32_t=yes +AC_CHECK_TYPE(uint32_t) +if test ${ac_cv_type_uint32_t} != yes; then + AC_CACHE_CHECK([unsigned 32bit int], + rb_cv_type_uint32_t, + [for type in short int long; do + AC_COMPILE_IFELSE(AC_LANG_BOOL_COMPILE_TRY([], [sizeof($type) == 4]), + [rb_cv_type_uint32_t=$type; break], []) + done]) + AC_DEFINE(uint32_t, $rb_cv_type_uint32_t) +fi + AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address, [rb_cv_stack_end_address=no for addr in __libc_stack_end _SEND; do |