| 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!
I think you are right. Maybe the author meant
AC_TRY_LINK_FUNC($ac_foo_bar, [], [f77_underscore=double])
Patches are welcome :)