File pow10.patch of Package aranym
Index: aranym-1.1.0/config.h.in
===================================================================
--- aranym-1.1.0.orig/config.h.in
+++ aranym-1.1.0/config.h.in
@@ -369,6 +369,9 @@
/* Define to 1 if you have the `pathconf' function. */
#undef HAVE_PATHCONF
+/* Define to 1 if you have the `pow10' function. */
+#undef HAVE_POW10
+
/* Define to 1 if you have the `pow10l' function. */
#undef HAVE_POW10L
Index: aranym-1.1.0/configure
===================================================================
--- aranym-1.1.0.orig/configure
+++ aranym-1.1.0/configure
@@ -12488,7 +12488,7 @@ _ACEOF
fi
done
- for ac_func in logl log10l expl powl exp2l pow2l exp10l pow10l fabsl sqrtl log1pl expm1l exp2 pow2
+ for ac_func in logl log10l expl powl exp2l pow2l exp10l pow10l fabsl sqrtl log1pl expm1l exp2 pow2 pow10
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Index: aranym-1.1.0/configure.ac
===================================================================
--- aranym-1.1.0.orig/configure.ac
+++ aranym-1.1.0/configure.ac
@@ -1486,7 +1486,7 @@ for fpe in $FPE_CORE_TEST_ORDER; do
dnl Math functions required by C99 standard, but probably not
dnl implemented everywhere. In that case, we fall back to the
dnl regular variant for doubles.
- AC_CHECK_FUNCS(logl log10l expl powl exp2l pow2l exp10l pow10l fabsl sqrtl log1pl expm1l exp2 pow2)
+ AC_CHECK_FUNCS(logl log10l expl powl exp2l pow2l exp10l pow10l fabsl sqrtl log1pl expm1l exp2 pow2 pow10)
AC_CHECK_FUNCS(sinl cosl tanl sinhl coshl tanhl)
AC_CHECK_FUNCS(asinl acosl atanl asinhl acoshl atanhl)
AC_CHECK_FUNCS(floorl ceill truncl roundl)
Index: aranym-1.1.0/src/uae_cpu/fpu/mathlib.h
===================================================================
--- aranym-1.1.0.orig/src/uae_cpu/fpu/mathlib.h
+++ aranym-1.1.0/src/uae_cpu/fpu/mathlib.h
@@ -756,7 +756,11 @@ PRIVATE inline uae_u32 FFPU get_quotient
# define fp_pow pow
#endif
#ifndef fp_pow10
-# define fp_pow10 pow10
+# ifdef HAVE_POW10
+# define fp_pow10 pow10
+# else
+# define fp_pow10 exp10
+# endif
#endif
#ifndef fp_pow2
# ifdef HAVE_POW2