Add m4 files for java autotool support