From: Alan W. I. <ir...@be...> - 2003-01-27 06:36:41
|
On Sun, 26 Jan 2003, Alan W. Irwin wrote: > Thus, I believe the complete solution is simply to do the following changes > in configure.ac: > > AM_CONFIG_HEADER(include/plConfig.h include/plDevs.h) ==> > AM_CONFIG_HEADER(include/plConfig.h) > > src/Makefile > include/Makefile > > ==> > src/Makefile > include/Makefile > include/plDevs.h > > i.e, Remove the generation of plDevs.h.in from autoheader control and put > the generation of plDevs.h under autoconf control. > > Maurice and Rafael, do you agree with this analysis? Well, I tried the above change (see CVS HEAD where I committed the change for discussion purposes), but it didn't work, and I think Maurice has just run into the same problem. I assumed that all you had to do above was mention plDevs.h, in AC_OUTPUT, and autoconf would take care of the rest, but all it did was simply copy plDevs.h.in to plDevs.h, which of course isn't what we want. I believe a quick workaround for the original date problem that causes this mess is to revert back configure.ac to what we had before and simply touch include/plDevs.h.in right before bootstrap.sh is invoked and the tarball created. But I would much prefer this problem to be solved at a fundamental level rather than with such a workaround which is bound to come back and haunt us. One question that springs to mind is why do we have all the device #define's both in plConfig.h and PlDevs.h? Could we just drop plDevs.h altogether (at least for Linux/Unix systems) and use only plConfig.h? That would require some big but straightforward changes to our hierarchy of PLplot includes, but I think it would work. Alternatively, if we really want PlDevs.h created separately, then somebody has to figure out the autoconf commands to process Pldevs.h.in into PlDevs.h properly without using the AM_CONFIG_HEADER macro (which would run you into the date problems which started this thread). Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |