logo       

Re: AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++ [PATCH]: msg#00066

gnu.libtool.general

Subject: Re: AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++ [PATCH]

On Wed, Feb 05, 2003 at 08:57:08PM -0600, Robert Boehne wrote:
> Index: libtool.m4
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/libtool.m4,v
> retrieving revision 1.297
> diff -u -r1.297 libtool.m4
> --- libtool.m4 5 Feb 2003 07:03:55 -0000 1.297
> +++ libtool.m4 6 Feb 2003 02:50:39 -0000
> @@ -2246,10 +2246,10 @@
> ;;
> *-ncr-sysv4.3*)
> AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
> - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
> + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")

Is this too much:
AC_CHECK_FUNC(cos, , AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm"))

We could do the same for:
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw").

--
albert chin (china@xxxxxxxxxxxxxxxxxx)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise