On Oct 5, 2000, Peter Eisentraut <[EMAIL PROTECTED]> wrote:
> Is it portable to do that?
I don't think so. IIRC, HP-UX's linker distinguishes data symbols
from code symbols.
> Does someone have a better idea (short of writing AC_TRY_LINK,
> etc. for each)?
There might be a macro able to do what you want. The problem is that
you'd have to supply the right type for the variable, and any headers
required to declare the types (and maybe the variable itself), so it's
not too much different from using AC_TRY_LINK directly.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me