On 5 Oct 2000, Alexandre Oliva wrote:

> 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.

I've found that AC_TRY_LINK doesn't do enough (if I really want to know,
I'll use a test that tries to modify the data -- AC_TRY_RUN).

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com


Reply via email to