Ability to override compiler from environment

Mark Wielaard mark at klomp.org
Thu Jun 26 06:31:10 UTC 2008


Hi Thorbjørn,

On Wed, 2008-06-25 at 23:53 +0200, Thorbjørn Ravn Andersen wrote:
> I gave it a try again, just to see what happens.
> 
> The script first looks for an awk and finds /usr/bin/nawk, and then 
> explicitly later looks for gawk.  export GAWK=/usr/bin/nawk got me over 
> that test.

It explicitly tests for gawk since that is what the build says it
requires.

dnl OpenJDK's README-builds.html lists gawk as a build dependency so we
dnl check for it explicitly rather than using AC_PROG_AWK.
FIND_TOOL([GAWK], [gawk])

> It requires both an ecj.jar and a libgcj.jar.  Are both necessary?

Yes, one is a compiler and one is a core class library set.

> A "-bash-3.2$ ./configure 
> --with-ecj-jar=/export/home/ravn/download/ecj.jar --with-ecj 
> --with-libgcj-jar=/export/home/ravn/download/ecj.jar 
> --with-xalan2-jar=/export/home/ravn/download/ecj.jar 
> --with-xalan2-serializer-jar=/export/home/ravn/download/ecj.jar 
> --with-xerces2-jar=/export/home/ravn/download/ecj.jar" got me to
> configure: error: "motif headers were not found -
>         try installing lesstif-devel."
> 
> which I now remember to be the place where I gave up the last time as 
> apparently Motif is not available under OpenSolaris and "pkg search 
> lesstif" did not show any packages.
> 
> I'll look at building lesstif and see what happens then...

This really shouldn't be necessary anymore. At least not for
icedtea/jdk7, there might still be some header constants used in
icedtea6/openjdk6, but if so we should backport the fixes to remove them
and remove this check.

Cheers,

Mark




More information about the build-dev mailing list