Hello Klaas,

* Klaas Vantournhout wrote on Sat, Mar 08, 2008 at 10:55:10PM CET:
> 
> I need to use complex functions from a fortran library in a c/c++ code.

First off, do you know cfortran.h?  While it's not in the Autoconf
spirit of using tests to find out about unknown systems, AFAIK it's
quite comprehensive.  I don't know whether it covers C++, though.

> As I have seen there are two calling conventions for complex functions.
[...]
> I am wondering if it is possible for autoconf to check the above calling
> convention of a library.

I see two possibilities: First, try matching declarations: compile a
code snippet that includes the library header, then re-declare the
function using each way in turn.  The matching one will not trigger a
conflicting declaration error.

Second, you can try to link a small program using one or the other
convention against the library.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to