AC_CHECK_LIB and C++ libraries

2006-03-29 Thread Magnus Fromreide
Hello. I have a C++ program and a library written in C++ that I wish to AC_CHECK_LIB for, when trying that AC_CHECK_LIB fails miserably since the name mangling hides the function name. It would be nice if the following were true: a) AC_CHECK_LIB takes a PROLOGUE argument, just like AC_LANG_CALL a

Re: AC_CHECK_LIB and C++ classes

2005-04-23 Thread Bob Friesenhahn
On Sat, 23 Apr 2005, f18m_217828 wrote: obviously the compilation fails because the test program needs to be compiled with some additional C flags (e.g. -I/usr/local/include, -L/usr/local/lib -lwx -lwxbase ). However, I could not find any way to modify the options used by autoconf to c

AC_CHECK_LIB and C++ classes

2005-04-23 Thread f18m_217828
Hi, I'm trying to write a test program to use in my configure.ac file which I process with autoconf 2.57. I would like to create a check for testing the presence of the wxXml2 library which is based on turn on the wxWidgets library. So I wrote in my configure.ac: [...] AC_LANG(C++) # MY CHECK

Re: AC_CHECK_LIB and C++

2000-08-29 Thread Morten Eriksen
Bram Stolk <[EMAIL PROTECTED]> writes: > I want to check for simple global C++ func. However, even if I set > the language to C++, the conftest.C is created in such a way, that > the func I am looking for is prototyped in "extern C", thereby > causing the check to fail. You're probably running

AC_CHECK_LIB and C++

2000-08-29 Thread Bram Stolk
Hello, I know this has been discussed before: doing checks on c++ libs, and being able to check for memberfuncs. However, I have a more modest problem: I want to check for simple global C++ func. However, even if I set the language to C++, the conftest.C is created in such a way, that the fun