This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fixed check for sinl in acinclude.m4


On Thu, 22 Jun 2000, Benjamin Kosnik wrote:
> in. Please take a look at the new builtin code. It's substantially different.
> In particular, it only checks for the builtins that gcc is capable of 
> producing....

  I though about that, but didnt figure it'd hurt to try to catch any future
additions.  Anyway, it does appear neccessary to link against libm for
the builtins

2000-06-22 Steven King <sxking@uswest.net>

	* acinclude.m4: Link against libm for builtin math checks.

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.37
diff -c -p -r1.37 acinclude.m4
*** acinclude.m4	2000/06/22 23:59:03	1.37
--- acinclude.m4	2000/06/23 00:32:12
*************** dnl GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
*** 425,430 ****
--- 425,436 ----
  AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
    dnl Test for builtin math functions.
    dnl These are made in gcc/c-common.c 
+ 
+   dnl Check libm
+   AC_CHECK_LIB(m, sin, libm="-lm")
+   ac_save_LIBS="$LIBS"
+   LIBS="$LIBS $libm"
+ 
    GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs)
    GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_fabsf)
    GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_fabs)

-- 
Steven King
sxking@uswest.net

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]