The CHECK_MATH_FUNC() m4 macro needs work. It should use
AC_RUN_IFELSE(), not just AC_LINK_IFELSE(), and it should #define
_GNU_SOURCE and/or other such feature macros in the prologue to get
non-standard math functions (alternatvely jq should only support
standard math functions).
AC_CHECK_MATH_FUNC(y0, [.5])
AC_CHECK_MATH_FUNC(y1, [.5])
AC_CHECK_MATH_FUNC(pow, [2,2])
-AC_CHECK_MATH_FUNC(pow10, [2])
AC_CHECK_MATH_FUNC(atan2, [.5,.5])
AC_CHECK_MATH_FUNC(hypot, [.5,.5])
AC_CHECK_MATH_FUNC(remainder, [3,2])
#else
LIBM_DDD_NO(pow)
#endif
-#ifdef HAVE_POW10
-LIBM_DD(pow10)
-#else
-LIBM_DD_NO(pow10)
-#endif
#ifdef HAVE_JN
LIBM_DID(jn)
#endif