add AM_CONDITIONAL to choose x86_64/arm architecture automatically