AWT library for WinNT

Edward Llewellyn ELlewellyn at wayne.com
Wed Jan 12 11:31:08 PST 2000


I looked in configure.in and found the following lines related to
awt:

dnl If we have X then include AWT support.
if test "$have_x" = "yes" ; then
  AWT_DIR=X
fi

dnl Checks for libraries for X related libraries.
AC_PATH_XTRA
if test x"$no_x" = x"yes"; then
  AWT_LIBS=
else
  dnl Csup is needed for IRIX libraries such as libjpeg and libpng
  dnl Instead of adding it to both JPEG_LIBS and PNG_LIBS, use X_LIBS
  AC_CHECK_LIBRARY(Csup,__T_9__nothrow,X_LIBS)
  OLIBS=$LIBS
  LIBS="$ZIP_LIBS $M_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $OLIBS"
  AC_CHECK_LIBRARY(Xext,XShmQueryExtension,X_PRE_LIBS)
  LIBS="$ZIP_LIBS $M_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $OLIBS"
  AC_CHECK_LIBRARY(jpeg,jpeg_read_header,JPEG_LIBS)
  AC_CHECK_LIBRARY(png,png_create_info_struct,PNG_LIBS)
  AC_CACHE_CHECK([for a usable version of gif_lib.h],
    kaffe_cv_gif_lib_version, [dnl
	AC_TRY_COMPILE([
#include <gif_lib.h>
], [
	((GifFileType *)0)->UserData;
], [kaffe_cv_gif_lib_version=yes],
   [kaffe_cv_gif_lib_version=no])])
  if test x"$kaffe_cv_gif_lib_version" = x"yes"; then
    AC_DEFINE(HAVE_GIF_LIB_H, 1, [Do we have the right version of libungif])
    AC_CHECK_LIBRARY(ungif,DGifOpen,GIF_LIBS)
  fi

So, it looks like awt support isn't there for win32 in the configure.in
file.  

This despite the fact that there is a clib/awt/win32 directory with 24
source files
in it.  Can we get an updated configure.in?  Or should I try to hack it
myself?

> -----Original Message-----
> From:	Archie Cobbs [SMTP:archie at whistle.com]
> Sent:	Wednesday, January 12, 2000 11:33 AM
> To:	kaffe at rufus.w3.org
> Subject:	Re: AWT library for WinNT
> 
> 
> Edward Llewellyn writes:
> > I think I know why I'm getting the error message when trying to run an
> AWT
> > program on 
> > WinNT.  Unlike all the other libraries under kaffe-snap/libraries/clib,
> no
> > libawt.la file is generated.
> > I see in my /kaffe/lib/kaffe directory libio.la, libmanagement.la,
> > libnative.la, and so on,
> > one for each subdirectory under clib, but none for awt.  Upon further
> > investigation,
> > the Makefile for the awt directory doesn't even have a target of
> libawt.la
> > (or any .la for
> > that matter).
> > 
> > I'll try modifying the make file to actually make the awt directory's
> .la
> > file.
> > 
> > Is that right?  Is awt for WinNT disabled for some reason?
> 
> There might be some problem with "configure" disabling AWT because
> it didn't find the right stuff installed on your site.  I would try
> to trace the tests in configure.in (search for 'AWT').
> 
> -Archie
> 
> __________________________________________________________________________
> _
> Archie Cobbs   *   Whistle Communications, Inc.  *
> http://www.whistle.com


More information about the kaffe mailing list