Configure: Moved check for Math lib to a dedicated M4 macro

Took the opportunity to rewrite the check using autoconf macros
to generate a more compatible configure script.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2013-06-17 01:16:51 +01:00
1 parent a6410d61e5
commit f68ec6c913
2 files changed
+33 -6

No files matched your search

+1 -6
View File
@@ -477,12 +477,7 @@ dnl
dnl libWINGS uses math functions, check whether usage requires linking
dnl against libm
dnl
AC_CHECK_FUNC(atan,[mathneedslibm=no;LIBM=],[mathneedslibm=dunno])
if test "x$mathneedslibm" = "xdunno" ; then
AC_CHECK_LIB(m, atan, [LIBM=-lm])
fi
AC_SUBST(LIBM)
WM_CHECK_LIBM
dnl
dnl libWINGS uses FcPatternDel from libfontconfig