Call AC_CONFIG_MACRO_DIR unconditionally

Since we now require autoconf 2.62 (via AC_PREREQ) and
AC_CONFIG_MACRO_DIR was introduced in autoconf 2.58, we can safely
assume AC_CONFIG_MACRO_DIR is present and call it directly.
Simplify configuration checks for math functions