In message "[kaffe] libiconv cannot be automattically linked"
on 02/10/09, Ito Kazumitsu <[EMAIL PROTECTED]> writes:
> In message "kaffe.io.ByteToCharIconv makes wrong results"
> on 01/09/03, Ito Kazumitsu <[EMAIL PROTECTED]> writes:
>
> > I use kaffe-snap-20010819. In my environment, libiconv was not
> > automatically taken into kaffe, so I did the following:
> > Afer ./configure, I edited config/config.h to add "#define HAVE_ICONV 1"
> > and edited libraries/clib/native/Makefile to add "-liconv" to LIBS.
>
> The situation remains the same, and I still have to manually
> edit config/config.h and libraries/clib/native/Makefile.
This is what I did to make configure treat libiconv properly.
1. Append libiconv's extras/iconv.m4 to kaffe's aclocal.m4
$ cat $LIBICONV/extras/iconv.m4 >> aclocal.m4
2. Modify configure.in
--- configure.in.orig Sat Jun 29 10:05:15 2002
+++ configure.in Wed Oct 9 19:24:41 2002
@@ -931,8 +931,10 @@
mkdir dnl
getcwd chdir getwd gettimeofday ftime time uname getuid dnl
localtime dnl
-iconv dnl
])
+
+AM_ICONV
+LIBS="$LIBS $LIBICONV"
KSAVE_LIBS="$LIBS"
LIBS="$M_LIBS $LIBS"
3. autoconf
_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe