The exp10 function that was introduced by commit
aae1a8f067ddd9c09
in the find-dialog is not available on MacOS. I added a check
and replace it with pow if exp10 is not available.
AC_DEFINE(DEBUGGING, 1, [Define to 1 if debugging is enabled.])
fi
+# exp10 is not available on all systems (MacOS)
+AC_CHECK_LIB(m, exp10, [AC_DEFINE([HAVE_EXP10],[1],[Define to 1 if your system has 'exp10'.])])
+
# iconv is required
AM_ICONV
if test "$am_cv_func_iconv" != "yes"; then
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
+/* Some systems like MacOS do not have exp10 */
+#ifndef HAVE_EXP10
+inline static double exp10(double x)
+{
+ return pow(10.0, x);
+}
+#endif
struct find_dialog
{