This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

current [lib]gcj on solaris2.5



this is a quick and dirty patch (proposal) for compiling [lib]gcj on solaris2.5.
I finally find out that my problems where coming from iconv and lang_info
providing not enough functionality. This close my PR java/651 (sorry, I
don't know how to do this myself).

BTW, I manually put -lstdc++ to libgcj.spec.

Arno

######## cut ##########
Index: gcc/configure
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure,v
retrieving revision 1.440
diff -u -r1.440 configure
--- configure	2000/10/18 19:57:53	1.440
+++ configure	2000/10/20 15:53:02
@@ -2236,6 +2236,16 @@
 fi
 rm -f conftest*
 fi
+
+# Solaris2.5 iconv and langinfo are to old to function correctly
+# FIX ME: this should be replaced by testing minimum functionality
+case $target in
+	sparc-*-solaris2.5)
+		ac_cv_header_iconv_h=no
+		ac_cv_header_langinfo_h=no
+                ;;
+esac
+
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6
     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
@@ -2594,6 +2604,15 @@
 fi
 rm -f conftest*
 fi
+
+# Solaris2.5 iconv and langinfo are to old to function correctly
+# FIX ME: this should be replaced by testing minimum functionality
+case $target in
+	sparc-*-solaris2.5)
+		ac_cv_func_iconv=no
+		ac_cv_func_nl_langinfo=no
+                ;;
+esac
 
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
   echo "$ac_t""yes" 1>&6
Index: libgcj/libjava/configure
===================================================================
RCS file: /cvs/java/libgcj/libjava/configure,v
retrieving revision 1.68
diff -u -r1.68 configure
--- configure	2000/10/09 17:19:48	1.68
+++ configure	2000/10/20 15:53:13
@@ -3446,6 +3446,15 @@
 rm -f conftest*
 fi
 
+# Solaris2.5 iconv and langinfo are to old to function correctly
+# FIX ME: this should be replaced by testing minimum functionality
+case $target in
+	sparc-*-solaris2.5)
+		ac_cv_func_iconv=no
+		ac_cv_func_nl_langinfo=no
+                ;;
+esac
+
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
   echo "$ac_t""yes" 1>&6
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
@@ -5193,6 +5202,16 @@
 fi
 rm -f conftest*
 fi
+
+# Solaris2.5 iconv and langinfo are to old to function correctly
+# FIX ME: this should be replaced by testing minimum functionality
+case $target in
+	sparc-*-solaris2.5)
+		ac_cv_header_iconv_h=no
+		ac_cv_header_langinfo_h=no
+                ;;
+esac
+
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6
     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
######## cut ##########

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]