> -----Original Message----- > From: Andreas Schwab [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 26, 2005 2:28 PM > To: Eric Lemings > Cc: 'autoconf@gnu.org'; 'automake@gnu.org' > Subject: Re: Defining Macros With Literal Values > > > Eric Lemings <[EMAIL PROTECTED]> 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.