RE: Defining Macros With Literal Values

From:

Eric Lemings

Subject:

RE: Defining Macros With Literal Values

Date:

Fri, 11 Nov 2005 12:17:21 -0700

> -----Original Message-----
> From: Andreas Schwab [mailto:address@hidden
> Sent: Wednesday, October 26, 2005 2:28 PM
> To: Eric Lemings
> Cc: 'address@hidden'; 'address@hidden'
> Subject: Re: Defining Macros With Literal Values
>
>
> Eric Lemings <address@hidden> writes:
>
> > Greetings,
> >
> > I have a tricky little problem I was hoping someone could help me
> > with. I am trying to write an Autotools macro that
> extracts the value
> > of a macro from a system header file and defines another
> preprocessor
> > macro with the same value.
>
> You can use AC_DEFINE_UNQUOTED to define a macro to the
> result of a shell substitution. You can easily extract the
> value from the output of the preprocessor.
Well it sounds easy? I've been trying to use AC_PREPROC_IFELSE but
it does not look like the macro captures the preprocessed output.
Or should I just use the $ac_cpp variable directly?
Eric.