From: Nicolas Williams Date: Sat, 4 Jul 2015 02:13:13 +0000 (-0500) Subject: Remove `pow10` for now; CHECK_MATH_FUNC needs work X-Git-Tag: jq-1.5rc2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c350c67d76444e6d169a782dd53a5b2a74035d9;p=jq Remove `pow10` for now; CHECK_MATH_FUNC needs work 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). --- diff --git a/configure.ac b/configure.ac index 7b59029..beccf1e 100644 --- a/configure.ac +++ b/configure.ac @@ -189,7 +189,6 @@ AC_CHECK_MATH_FUNC(tgamma, [.5]) 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]) diff --git a/libm.h b/libm.h index 9b1fae9..d8cfe18 100644 --- a/libm.h +++ b/libm.h @@ -128,11 +128,6 @@ LIBM_DDD(pow) #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