Re: [Iprdd-devel] [PATCH iprutils 2/3] configure.ac: use pow() instead of matherr() for libm check

2016-02-08 Thread Gabriel Krisman Bertazi
Thomas Petazzoni  writes:

> From: Bernd Kuhls 
>
> In certain configurations of uClibc, the matherr() function may not be
> provided by the C library, which makes the current configure.ac check
> for libm fail. However, iprutils does not use matherr(), so using this
> function for the test makes little sense.
>
> This patch adjusts configure.ac to test for pow() instead, which is
> actually used by iprutils, and more commonly available, including in
> uClibc.
>

Reviewed-by: Gabriel Krisman Bertazi 

-- 
Gabriel Krisman Bertazi


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel


[Iprdd-devel] [PATCH iprutils 2/3] configure.ac: use pow() instead of matherr() for libm check

2016-02-07 Thread Thomas Petazzoni
From: Bernd Kuhls 

In certain configurations of uClibc, the matherr() function may not be
provided by the C library, which makes the current configure.ac check
for libm fail. However, iprutils does not use matherr(), so using this
function for the test makes little sense.

This patch adjusts configure.ac to test for pow() instead, which is
actually used by iprutils, and more commonly available, including in
uClibc.

Signed-off-by: Bernd Kuhls 
Signed-off-by: Thomas Petazzoni 
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c1a4f70..e430554 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,7 +129,7 @@ save_LIBS="$LIBS"
 AC_CHECK_LIB([ncurses], [curses_version], [],
 [AC_ERROR("libncurses not found.")])
 AC_CHECK_LIB([form], [free_form], [], [AC_ERROR("libform not found.")])
-AC_CHECK_LIB([m], [matherr], [], [AC_ERROR("libm not found.")])
+AC_CHECK_LIB([m], [pow], [], [AC_ERROR("libm not found.")])
 AC_CHECK_LIB([menu], [new_menu], [], [AC_ERROR("libmenu not found.")])
 AC_CHECK_LIB([panel], [show_panel], [], [AC_ERROR("libpanel not found.")])
 IPRCONFIG_LIBS="$LIBS"
-- 
2.6.4


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel