isinf and isnan are macros, not functions; fix configure script