From f1000ee3b4d504c7f1390a7af2e4c247676b9293 Mon Sep 17 00:00:00 2001 From: sof Date: Fri, 4 Mar 2005 18:26:49 +0000 Subject: [PATCH] [project @ 2005-03-04 18:26:46 by sof] Temper 'libm' testing -- if 'atan' is available straight from libc, no need to include libm. Merge to STABLE --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d243fa2..0a41966 100644 --- a/configure.ac +++ b/configure.ac @@ -1121,7 +1121,10 @@ else fi dnl ** check for math library -AC_CHECK_LIB([m], [atan], [LIBS="-lm $LIBS"; LIBM="-lm"], [LIBM=]) +AC_CHECK_FUNC(atan,[fp_libm_not_needed=yes;LIBM=],[fp_libm_not_needed=dunno]) +if test x"$fp_libm_not_needed" = xdunno; then + AC_CHECK_LIB([m], [atan], [LIBS="-lm $LIBS"; LIBM="-lm"],[LIBM=]) +fi AC_SUBST([LIBM]) dnl ################################################################ @@ -1263,6 +1266,7 @@ AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");], [Define to 1 if Apple-style dead-stripping is supported.]) ], [ + AC_MSG_RESULT(no) AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[0], [Define to 1 if Apple-style dead-stripping is supported.]) ]) -- 1.7.10.4