|
From: <tim...@en...> - 2006-06-19 16:43:10
|
Ethan Merritt wrote:
> I'm sure glad someone around here understands the autotools,
> because I sure don't.
>
> Timoth=E9e, can you make a patch for this change and submit it
> to cvs after testing?
>
> Ethan
> =20
Sure, I can. (I hope explaining the idea on the list was pedagogical ;-) =
)
Best regards,
Timoth=E9e
>> This is a bug, but instead of fixing this bug by another hack with
>> the autotools, I propose to change the whole GNUPLOT_PS_DIR is
>> defined to make it more autotools-compliant :
>>
>> In configure.in, remove the following lines, because no path should
>> be determined at ./configure time (because you should still be able
>> to do 'make --prefix=3D...' or something like that later, and because
>> it needs an ugly hack when --prefix=3D... is not specified by the user=
)
>> :
>>
>> dnl location of PostScript prolog and adjunct files
>> GNUPLOT_PS_DIR=3D"$pkgdatadir/$VERSION_MAJOR/PostScript"
>> eval GNUPLOT_PS_DIR=3D${GNUPLOT_PS_DIR}
>> AC_DEFINE_UNQUOTED(GNUPLOT_PS_DIR,"${GNUPLOT_PS_DIR}",
>> [ Directory for PostScript prolog and associated files ])
>>
>> and remove also :
>>
>> AC_SUBST(GNUPLOT_PS_DIR)
>>
>> In term/Makefile.am, remove the following lines :
>>
>> # For Unix and MSDOS only
>> install-data-local:
>> $(mkinstalldirs) $(DESTDIR)$(GNUPLOT_PS_DIR)
>> $(INSTALL_DATA) $(srcdir)/PostScript/*.ps
>> $(DESTDIR)$(GNUPLOT_PS_DIR)
>>
>> uninstall-local:
>> @$(NORMAL_UNINSTALL)
>> echo " rm -f $(DESTDIR)$(GNUPLOT_PS_DIR)/*.ps"
>> rm -f $(DESTDIR)$(GNUPLOT_PS_DIR)/*.ps
>>
>> In favor of the automake way of doing that :
>>
>> postscriptdir =3D $(pkgdatadir)/$(VERSION_MAJOR)/PostScript
>> postscript_DATA =3D 8859-15.ps 8859-1.ps\
>> 8859-2.ps cp1250.ps cp437.ps\
>> cp850.ps cp852.ps koi8r.ps koi8u.ps\
>> prologue.ps
>>
>> And finally, in src/Makefile.am, add to AM_CPPFLAGS :
>> =20
>> -DGNUPLOT_PS_DIR=3D\"$(pkgdatadir)/$(VERSION_MAJOR)/PostScript\"
>>
>>
>> These changes will prevent any problem with the expansions as
>> Johannes experienced (in addition to a lower number of lines !).
>>
>> Best regards,
>>
>> Timoth=E9e
>> =20
|