Thanks Kazuki. I have worked around the pndconfigure problem using ./configure --host="$TARGET_SYS", but I'll try your suggestion if I have more problems with this.
Using this approach I have compiled most of the dependencies: freetype, jpegturbo, nasm, yasm, png, sdl, sdl_image, sdl_ttl and...