diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-19 09:32:13 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-19 09:32:13 +0000 |
commit | f9747b7a571556b6b8add7cfd4e324ad316d50b3 (patch) | |
tree | 3971f82312c9b748dcf763fd24e91489657fb36c /configure.in | |
parent | 992923053cfb51dc04c6a7ee07ca6fff1b61d1a5 (diff) |
1.1b9_27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c8f534d556..40e082fa42 100644 --- a/configure.in +++ b/configure.in @@ -231,6 +231,25 @@ fi AC_C_BIGENDIAN AC_CHAR_UNSIGNED +AC_MSG_CHECKING(whether right shift preserve sign bit) +AC_CACHE_VAL(rb_cv_rshift_sign, + [AC_TRY_RUN([ +#define FIXNUM_FLAG 0x01 +int +main() +{ + return (-1!=(((-1)<<1)&FIXNUM_FLAG)>>1); +} +], + rb_cv_rshift_sign=yes, + rb_cv_rshift_sign=no)]) + AC_MSG_RESULT($rb_cv_rshift_sign) +if test "$rb_cv_rshift_sign" = yes; then + AC_DEFINE(RSHIFT(x,y), ((x)>>y)) +else + AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>y) : (x)>>y)) +fi + AC_MSG_CHECKING([count field in FILE structures]) AC_CACHE_VAL(rb_cv_fcnt, [AC_TRY_COMPILE([#include <stdio.h>], @@ -550,6 +569,11 @@ if test "$host_os" = "beos"; then esac fi +if test "$enable_shared" = 'yes'; then + LIBRUBY='libruby.so' + LIBRUBYARG='-L./ -lruby' +fi + if test "$host_os" = "rhapsody" ; then CFLAGS="$CFLAGS -no-precomp" fi |