From e20a5fd252815a5799908598abdecb4dafa73389 Mon Sep 17 00:00:00 2001 From: eb Date: Sat, 5 Aug 2006 03:03:37 +0000 Subject: [PATCH] believed to have fixed ticket:7 git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3163 221aa14e-8319-0410-a670-987f0aec2ac5 --- configure.ac | 10 ++++++++++ gr-radar/src/lib/sim-airplane.cc | 3 +++ 2 files changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 68e8837c..810282a3 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 @@ -98,6 +100,14 @@ inline static double trunc(double x) return x >= 0 ? floor(x) : ceil(x); } #endif + +#ifndef HAVE_EXP10 +#include +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 9b27ff00..99ee9cca 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 +#endif #include #include #include -- 2.47.2