meson: Add sha1 library options

v2: Set the define for xha1.c programatically, rather than using loads
of conditionals.
4 jobs for meson-sha1-options in 6 minutes and 25 seconds (queued for 4 seconds)