autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppressing default #defines created by autoheader


From: Paul Eggert
Subject: Re: Suppressing default #defines created by autoheader
Date: Fri, 31 May 2002 09:54:08 -0700 (PDT)

> From: Alexander Konovalenko <address@hidden>
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]