Permalink
Browse files

* Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load

  extension libraries.

* bignum.c (bignew_1, bigadd): K&R style argument actually can't be
  defined as char.

* missing/vsnprintf.c: ANSI compiler supports const keyword.

* ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h
  but no 64bit integer.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent b93482c commit 7e1363abf17ef73a4bcfef3b5eb5e98be5439acf @nobu nobu committed Sep 6, 2005
Showing with 22 additions and 13 deletions.
  1. +13 −0 ChangeLog
  2. +1 −0 Makefile.in
  3. +3 −3 bignum.c
  4. +3 −0 configure.in
  5. +0 −2 cygwin/GNUmakefile.in
  6. +1 −7 ext/digest/sha2/extconf.rb
  7. +1 −1 missing/vsnprintf.c
View
@@ -1,3 +1,16 @@
+Wed Sep 7 08:22:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
+ extension libraries.
+
+ * bignum.c (bignew_1, bigadd): K&R style argument actually can't be
+ defined as char.
+
+ * missing/vsnprintf.c: ANSI compiler supports const keyword.
+
+ * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h
+ but no 64bit integer.
+
Mon Sep 5 17:03:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>
View
@@ -43,6 +43,7 @@ LDSHARED = @LIBRUBY_LDSHARED@
DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
SOLIBS = @SOLIBS@
MAINLIBS = @MAINLIBS@
+MINIOBJS = @MINIOBJS@
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
RUBY_SO_NAME=@RUBY_SO_NAME@
View
@@ -42,11 +42,11 @@ static VALUE
bignew_1(klass, len, sign)
VALUE klass;
long len;
- char sign;
+ int sign;
{
NEWOBJ(big, struct RBignum);
OBJSETUP(big, klass, T_BIGNUM);
- big->sign = sign;
+ big->sign = (char)sign;
big->len = len;
big->digits = ALLOC_N(BDIGIT, len);
@@ -1112,7 +1112,7 @@ bigsub(x, y)
static VALUE
bigadd(x, y, sign)
VALUE x, y;
- char sign;
+ int sign;
{
VALUE z;
BDIGIT_DBL num;
View
@@ -1356,6 +1356,7 @@ case "$target_os" in
LIBRUBY='lib$(RUBY_SO_NAME).a'
LIBRUBYARG='-l$(RUBY_SO_NAME)'
fi
+ MINIOBJS=dmydln.o
;;
hpux*)
case "$YACC" in
@@ -1364,6 +1365,7 @@ case "$target_os" in
YACC="$YACC -Nl40000 -Nm40000"
;;
esac
+ MINIOBJS=dmydln.o
;;
*)
;;
@@ -1396,6 +1398,7 @@ AC_SUBST(COMMON_LIBS)
AC_SUBST(COMMON_MACROS)
AC_SUBST(COMMON_HEADERS)
AC_SUBST(EXPORT_PREFIX)
+AC_SUBST(MINIOBJS)
MAKEFILES="Makefile `echo $FIRSTMAKEFILE | sed 's/:.*//'`"
MAKEFILES="`echo $MAKEFILES`"
@@ -1,5 +1,3 @@
-MINIOBJS = dmydln.o
-
include Makefile
ENABLE_SHARED=@ENABLE_SHARED@
@@ -17,12 +17,6 @@
have_header("unistd.h")
-if try_cpp(<<SRC, $defs.join(' '))
-#include "defs.h"
-#ifdef NO_UINT64_T
- #error ** Cannot find a 64bit integer type - skipping the SHA2 module.
-#endif
-SRC
-then
+if have_type("uint64_t", "defs.h", $defs.join(' '))
create_makefile("digest/sha2")
end
View
@@ -95,7 +95,7 @@
# endif
#endif
-#if defined(__hpux) && !defined(__GNUC__)
+#if defined(__hpux) && !defined(__GNUC__) && !defined(__STDC__)
#define const
#endif

0 comments on commit 7e1363a

Please sign in to comment.