The package builds on arm64 if you comment out the "HAVE_SSE2" line in configure.ac, so replacing the unconditional AC_DEFINE with an actual test seems like a good first step.
- Bug#862919: traildb: FTBFS on non-x86: emmintrin.h ab... Aaron M. Ucko
- Bug#862919: traildb: FTBFS on non-x86: emmintrin... Edmund Grimley Evans