STAR_CNF_COMPATIBLE_SYMBOLS
Work out what is required to have the Fortran compiler
produce library symbols which are compatible with those
expected by the CNF package. If you are building a
library which includes Fortran code, then you should call
this macro, which possibly adjusts the
FCFLAGS
variable.
At present, all this macro has to do is simply work out
whether it needs to stop g77 adding a second underscore to
generated symbol names (it adds a single underscore to
most Fortran symbols, but by default adds two when the
symbol name already contains an underscore); the other
Fortran compilers we use don't need any extra options, as
it happens. However this could potentially be much more
complicated. The autoconf AC_F77_WRAPPERS
macro detects more possibilities, but probably not a
completely exhaustive set. In future it might be
necessary to extend the CNF macros, by somehow merging the
results of AC_F77_WRAPPERS
into it, and at
that point it might be necessary to extend this macro.
This macro is designed to work with CNF, however it
does not require the cnf.h
headers
to be installed, because it should remain callable at
configuration time before anything has been
installed. Instead we fake the functionality of the
definition F77_EXTERNAL_NAME
in
cnf.h
, which appends an underscore (just one)
to the end of C symbols.