The macros/am_path_gcj.m4 macros file for the jg-common and glib-java packages have gcj/gij hardcoded into them instead of using variables the user can override. These should be replaced with $GCJ/$GIJ variables.
The mentioned files have been modified and patches generated for the frysk package. Will see about getting these applied upstream.