I agree, I've run into this problem. Depending on the
compiler and options this may end up being a fatal
compile error.

It would be better to use:
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION
#endif ! PACKAGE_VERSION

trt

Dear all,
This is not really a bug but I wonder if you have any remedy to the
following problem. If you use autoconf/automake for several packages
which interact with each other and for each package you generate a
configuration file config.h you migh end up with redefinition warning
message if config.h's are read "together".

... warning: "PACKAGE_VERSION" redefined
... warning: this is the location of the previous definition

... warning: "VERSION" redefined
... warning: this is the location of the previous definition

My concern is how to avoid this? Shouldn't these macro defintion be unique
for each package? Should there be a protection mechanism?


Sincerely, Patrick




--
Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611





Reply via email to