Setting BOOT_RTJAR: rt.jar vs. 'sun.boot.class.path'

Dave Pointon dpointo8 at linux.vnet.ibm.com
Fri Nov 22 15:32:25 UTC 2013


Hiya Volker ,

On Thu, 2013-11-14 at 17:35 +0100, Volker Simonis wrote:
<snip>

> 
> So my question is, if there are any objectives if I'd change the
> current BOOT_RTJAR detection to the following lines:
> 
>   # Parse the settings of the 'sun.boot.class.path' property
>   # The tricky thing is that we must quote AWK field references (i.e.
> $1, $2, ..)
>   # and the name 'index' which is a M4-buildin function by placing brackets
>   # (i.e. '[]') into the corresponding names.
>   BOOT_RTJAR=`$BOOT_JDK/bin/java -XshowSettings 2>&1 | $NAWK ' \
>       /path.separator/      { path_separator = $[]3} \
>       /sun.boot.class.path/ { sun_boot_class_path = $[]3; \
>                               while (getline && !in[]dex($[]0,"=")) { \
>                                 sun_boot_class_path =
> sun_boot_class_path "\n" $[]1 \
>                               } \
>                             } \
>       END { gsub("\n", path_separator, sun_boot_class_path); print
> sun_boot_class_path }'`
> 

<snip>

Much as though I like and indeed applaud, this change, on a more general
note, it surprises me that more use isn't made of the power of perl since
it [perl] is a fundamental part of autotools and thus has to be present
on the system when configure is run.

Rgds



-- 

Dave Pointon FIAP MBCS

Now I saw, tho' too late, the folly of beginning a work before we count
the cost and before we we judge rightly of our strength to go thro'
with it - Robinson Crusoe



More information about the build-dev mailing list