make autotools happy
add a test target
convert from SOFA to ERFA

mostly chaged function names and macros. comments have been left alone