AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++

2003-02-05 Thread Bob Friesenhahn
I posted a detailed message to [EMAIL PROTECTED] and [EMAIL PROTECTED] but there has been no response at all so I will post again. CVS libtool.m4 contains lines like AC_CHECK_LIB(m, main, LIBM="-lm") and AC_CHECK_LIB(ltdl, main, ... blah Unfortunately, these result in Autoconf generati

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

2003-02-05 Thread Albert Chin
On Wed, Feb 05, 2003 at 03:00:39PM -0600, Bob Friesenhahn wrote: > I posted a detailed message to [EMAIL PROTECTED] and > [EMAIL PROTECTED] but there has been no response at all so I will > post again. > > CVS libtool.m4 contains lines like > > AC_CHECK_LIB(m, main, LIBM="-lm") > > and >

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

2003-02-05 Thread Bob Friesenhahn
On Wed, 5 Feb 2003, Bob Friesenhahn wrote: > > The solution seems to be to either fix autoconf so that it emmits a > different test program for the special case where 'main' is tested for > (which is in fact a valid test!), or to fix libtool.m4 so that it > requests a known symbol from the library

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

2003-02-05 Thread Robert Boehne
How about this patch? The math library is not actually used by anything but the test suite in Libtool, so as long as the C standard and common practice put "cos" in -lm it's all good. ChangeLog entry: 2003-02-05 Robert Boehne <[EMAIL PROTECTED]> * libtool.m4 (AC_CHECK_LIBM): Search for

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

2003-02-05 Thread Bob Friesenhahn
On Wed, 5 Feb 2003, Robert Boehne wrote: > How about this patch? The patch looks great to me. Bob > The math library is not actually used by anything but the > test suite in Libtool, so as long as the C standard and > common practice put "cos" in -lm it's all good. > > ChangeLog entry: > > 2003

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

2003-02-05 Thread Albert Chin
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.m45 Feb 2003 07:0

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

2003-02-05 Thread Robert Boehne
Albert Chin wrote: > > 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 ([EMAIL PROTECTED]) Yeah, I think this is too much. 's/main/cos/' fixes the problem w

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

2003-02-05 Thread Bob Friesenhahn
On Wed, 5 Feb 2003, Robert Boehne wrote: > > Yeah, I think this is too much. 's/main/cos/' fixes the problem > without risking anything. > With Bob's approval I'm going to check this patch in. Approved! :-) Bob == Bob Friesenhahn [EMAIL PROTECTED] http://www.s