From: Joao C. <jc...@fe...> - 2003-02-17 00:56:33
|
On Sunday 16 February 2003 22:31, Rafael Laboissiere wrote: > Update of /cvsroot/plplot/plplot/bindings/octave/PLplot > In directory sc8-pr-cvs1:/tmp/cvs-serv6975/bindings/octave/PLplot > > Added Files: > =09plplot_octave_path.m.in > Removed Files: > =09plplot_octave_path.m > Log Message: > Since the advent of the Autotools configuration scheme, the replacement= of > the string PLPLOT_OCTAVE_DIR in file plplot_octave_path.m is not done > anymore. The necessary code to do it was in cf/pkg_octave.in, which wa= s > included in one of the old Octave bindings Makefile. > > The simplest way that I found to circumvent this problem is to take > advantage of the AC_SUBST mechanism of Autoconf. Therefore, I cvs remo= ved > the plplot_octave_path.m file and added plplot_octave_path.m.in, which > contains the string @OCTAVE_DIR@ that gets replaced when AC_OUTPUT is > called. > > Joao, if you are hearing to this and disagree with my changes, please > manifest yourself. Without this change, or something functionally > equivalent, the Octave bindings are unusable. I don't disagree, but I don't think that "Without this change, or somethi= ng=20 functionally equivalent, the Octave bindings are unusable." is accurate,= as=20 you said in another e-mail. Indeed, plplot_octave_path is only used by=20 use_plplot, which is buggy and don't work. Also you might want to know that octave-plplot does not depends by itself= on=20 octave-2.1, as Alan makes its testing with octave-2.0.16 and promptly rep= orts=20 incompatibilities he founds and that I'm happy to fix. Does Debian-stable use the octave-2.1 series? I think that RH-8.0 uses=20 octave-2.1.3?. Suse-8.1 don't has octave! (but suse-8.0 had 2.0.16). As you have expertise that I lack, could you comment on the following set= up to=20 avoid rebuilding the .o file whenever a "make install" or plain make com= mand=20 is issued? This works for both octave-2.1.36 and 2.0.16. Remember that mkoctfile-2.0= =2E16=20 does not supports the -c option. plplot_octave.oct: plplot_octave.o # this compiles (slow) and links, generating .o and .oct, # but links with the wrong LD_RUN_PATH (doesn't matter) plplot_octave.o: plplot_octave.cc =09@MKOCTFILE@ -v -I. \ =09-L../../src/.libs plplot_octave.cc $(octave_libs) # relinks unconditionally, fast all-local: plplot_octave.o =09LD_RUN_PATH=3D`pwd`/../../src/.libs/ @MKOCTFILE@ -v -I. \ =09plplot_octave.o -L../../src/.libs $(octave_libs) # relinks unconditionally, fast install-exec-local: plplot_octave.o =09LD_RUN_PATH=3D$(libdir) @MKOCTFILE@ -v -I. \ =09plplot_octave.o -L$(libdir) $(octave_libs) Joao |