diff options
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | gr-radar/src/lib/sim-airplane.cc | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 68e8837c5c..810282a37f 100644 --- a/configure.ac +++ b/configure.ac @@ -90,6 +90,8 @@ AC_CHECK_LIB(m, sincosf,[AC_DEFINE([HAVE_SINCOSF],[1],[Define to 1 if your syste AC_CHECK_LIB(m, sinf, [AC_DEFINE([HAVE_SINF],[1],[Define to 1 if your system has `sinf'.])]) AC_CHECK_LIB(m, cosf, [AC_DEFINE([HAVE_COSF],[1],[Define to 1 if your system has `cosf'.])]) AC_CHECK_LIB(m, trunc, [AC_DEFINE([HAVE_TRUNC],[1],[Define to 1 if your system has `trunc'.])]) +AC_CHECK_LIB(m, exp10, [AC_DEFINE([HAVE_EXP10],[1],[Define to 1 if your system has 'exp10'.])]) + AH_BOTTOM([ #ifndef HAVE_TRUNC #include <math.h> @@ -98,6 +100,14 @@ inline static double trunc(double x) return x >= 0 ? floor(x) : ceil(x); } #endif + +#ifndef HAVE_EXP10 +#include <math.h> +inline static double exp10(double x) +{ + return pow(10.0, x); +} +#endif ]) GR_CHECK_SHM_OPEN diff --git a/gr-radar/src/lib/sim-airplane.cc b/gr-radar/src/lib/sim-airplane.cc index 9b27ff0097..99ee9cca6c 100644 --- a/gr-radar/src/lib/sim-airplane.cc +++ b/gr-radar/src/lib/sim-airplane.cc @@ -24,6 +24,9 @@ #define _GNU_SOURCE #endif +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <iostream> #include <string> #include <fstream> |