Commit f1000ee3 authored by sof's avatar sof
Browse files

[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
parent cbc72283
......@@ -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.])
])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment