Trying to run ./configure on Arduino YUN

Hi all,
my Linux knowledge is very basic, but if all goes well I can make quite some effort.
But.. not all is well.
I'm trying to compile jamvm. When running ./configure I get the error that build architecture (cname?) couldn't be guessed.

checking build system type... ./config.guess: unable to guess system type

This script, last modified 2010-04-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2010-04-03

uname -m = mips
uname -r = 3.8.3
uname -s = Linux
uname -v = #8 Mon Aug 19 16:22:39 CEST 2013

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              =
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = mips
UNAME_RELEASE = 3.8.3
UNAME_SYSTEM  = Linux
UNAME_VERSION = #8 Mon Aug 19 16:22:39 CEST 2013
configure: error: cannot guess build type; you must specify one

I already tried newest config.guess and config.sub files I could find (2013-11-29) but no luck until now.
Would be happy if any one can help me out.

Thank you!

There is no toolchain (gcc) for the yun. You need to cross compile: you compile on your pc and upload on the yun

btw, jamvm is already available as an additional package

where? I couldn't find it!! Please help!

Edit: Found something http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/ ...
Now I need more space...

use opkg