I'm looking at modifying the gdal build to be able to enable building the java bindings using swig. One thing I've noticed is that there is some inconsistency in the naming of options in this script.