Looking at the following code in AC_F77_NAME_MANGLING:
AC_TRY_LINK_FUNC(foobar,
f77_case=lower
f77_underscore=no
ac_foo_bar=foo_bar_,
[ other alternatives ... ]
)
AC_TRY_LINK_FUNC(${ac_foo_bar}, f77_underscore=double)
I have the following question: To my understanding, if linking
"foobar" succeeds, $f77_underscore=no, and $ac_foo_bar=foo_bar_.
Now, if linking foo_bar_ succeeds as well in the second AC_LINK_FUNC
statement, f77_underscore will be overwritten with "double".
Thus, if a compiler normally adds no underscore, but adds one underscore
to symbol names containing one already, f77_underscore will have the
wrong value "double" and AC_F77_WRAPPERS will produce incorrect code.
Please correct me if I'm wrong!
--
Martin Wilck <[EMAIL PROTECTED]>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germany
Tel. +49-341-2352151 / Fax +49-341-2352361