autotools: Add autotools support for cross-compilation

Signed-off-by: Alex Lennon <ajlennon@dynamicdevices.co.uk>