Add option --with-additional-vms, build once, get them all [patch] fix for running autogen.sh with m4 1.4.10

Xerxes Rånby xerxes at zafena.se
Mon May 4 04:03:45 PDT 2009


Matthias Klose skrev:
> The attached patch adds a configure option --with-additional-vms, which allows
> passing of --with-additional-vms=cacao,shark to build two additional vm's on an
> architecture where hotspot is the default. Allowed values are cacao, shark and
> zero. Shark is not a separate build, but the zero build configured for shark.
>
> The VM's can then be used with `java -cacao', or `java -zero'.
>
> - cacao is just built in a separate build directory, without touching the
>   main build.
>
> - zero/shark is built by calling the icedtea configure again, and then just
>   building the hotspot configured for zero.
>
> The patch doesn't touch the regular build, so it should be safe to apply, but I
> would be happy if somebody could test it.
>
>   Matthias
>
> PS: Requires cacao-0.99.4, will update this in a separate patch.
>
>   

m4 on my machine backfired when trying to parse  
AC_HELP_STRING([--with-additional-vms=vm1,vm2,...] when running autogen.sh.
The attached patch fixes this issue on my machine.

What are the lowest version of m4/autoconf that icedtea6 should support?

log:
xerxes at labbserver:~/icedtea6$ ./autogen.sh
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 32 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 43 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 51 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 61 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 67 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 73 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 76 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 78 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 84 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 94 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 101 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 106 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 110 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 118 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 124 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 133 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 140 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 144 > vm2
/usr/bin/m4:configure.ac:504: bad expression in eval (bad input): 153 > vm2
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

xerxes at labbserver:~/icedtea6$ m4 --version
m4 (GNU M4) 1.4.10

Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-additional-vms.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090504/a9802995/fix-additional-vms.patch 


More information about the distro-pkg-dev mailing list