build: add --enable-jni configure option

jni headers will be used if possible, otherwise jni support is disabled
build: cleanup jni m4

- Don't error if not found
- Don't use AC_CHECK_FILE which is disabled on cross
- Check for darwin path