On 2004-08-20 10:01+0200 Rafael Laboissiere wrote:
> * Alan W. Irwin <irwin@...> [2004-08-19 09:51]:
>> Could you do a configuration test in PLplot for the presence of the correct
>> pdl version? If so, then I can change plplot-test.sh.in such that whenever
>> the correct pdl version is installed, plplot-test.sh will run a new
>> test_perl.sh script which in turn runs the perl examples.
> I committed an implementation of your idea above. There is now a AC_SUBST
> variable called HAS_PDL that can be used in plplot-test.sh. This variable
> is set to "no" if either PDL is not installed or it does not have the
> minimal required version. A test_perl.sh script should be extremely
> straightforward to write.
> I must say that the minimal version test is a bit silly right now because it
> requires PDL 2.4.2, which is not yet release. Even worse, in a Debian
> testing system with 2.4.1-1 installed, the test will fail, although this
> version of the package has PLplot support. You might change the variable
> PDL_VERSION_MICRO in cf/pdl.ac to test your future changes in
Thanks, Rafael. I have now followed up on your work with a variety of
committed changes to allow plplot-test.sh to exercise the perl/pdl examples.
More testing is required; at this point I have only checked the un-separated
build tree builds and the installed examples work. Follow-up tests with
'make check' for an unseparated and separated build tree and testing of
installed examples built using a separated build tree are requested.
I temporarily changed PDL_MICRO_VERSION (not PDL_VERSION_MICRO) so that the
Debian testing version of pdl would pass the test.
Rafael, I suggest further changes to cf/pdl.ac to enable user control over
the pdl option. This option should be turned off by default (since this only
works for Debian pdl 2.4.1 until pdl 2.4.2 is released), but of course the
user should also be able to turn it on by specifying the appropriate
./configure option (subject to the current tests for pdl and pdl version).
Furthermore, I think you should reconsider the name of the option (currently
HAS_PDL). Currently we have macros PL_ARG_ENABLE and PL_ARG_WITH to handle
enable_* and with_* forms of options set by users, and I think we should
continue to stick to those two forms if at all possible.
Once the name is finalized in cf/pdl.ac, an entry for it should be put into
cf/summary.ac. Furthermore, tests/Makefile.am (currently uses has_pdl
conditional) and tests/plplot-test.sh.in (currently uses HAS_PDL) will also
have to be changed.
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the PLplot scientific plotting software
package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the
Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project