> From: Alexander Konovalenko <[EMAIL PROTECTED]> > Date: Fri, 31 May 2002 06:04:50 -0700 (PDT) > > I have a C++ program using autoconf and automake, and I > would like to generate a config.h that will include my > package meta-info as const char* variables instead of > C macros.
I don't offhand know how to suppress the #undef's, but can't you do something like this? myconfig.h: #include "config.h" static char const my_PACKAGE[] = PACKAGE; and then use "myconfig.h" and my_PACKAGE in the rest of your source? There is a style of C++ that prefers not to use the C preprocessor at all; is that what's going on here? If so, it seems to me that you'd need to modify Autoconf quite a bit.
